| /third_party/skia/tools/skqp/ |
| D | README_GENERATING_MODELS.md | 1 How SkQP Generates Render Test Models 15 COMMIT=$(python tools/skqp/find_commit_with_best_gold_results.py \ 16 origin/main ^origin/skqp/dev) 23 python tools/skqp/cut_release.py HEAD~10 HEAD 27 platform_tools/android/apps/skqp/src/main/assets/files.checksum 28 platform_tools/android/apps/skqp/src/main/assets/skqp/rendertests.txt 29 platform_tools/android/apps/skqp/src/main/assets/skqp/unittests.txt 32 `origin/skqp/dev` a parent of this commit (without merging it in), and 33 push this new commit to `origin/skqp/dev`, using this script: 35 sh tools/skqp/branch_skqp_dev.sh [all …]
|
| D | release.sh | 3 # Use of this source code is governed by a BSD-style license that can be 8 set -e -x 10 [ -f platform_tools/android/apps/skqp/src/main/assets/files.checksum ] || exit 1 11 [ -f platform_tools/android/apps/skqp/src/main/assets/skqp/rendertests.txt ] || exit 1 12 [ -f platform_tools/android/apps/skqp/src/main/assets/skqp/unittests.txt ] || exit 1 14 python tools/skqp/gn_to_bp.py 15 python tools/skqp/download_model 16 python tools/skqp/setup_resources 20 cat > platform_tools/android/apps/skqp/src/main/Android.mk <<- "EOM" 22 # Use of this source code is governed by a BSD-style license that can be [all …]
|
| D | README.md | 1 SkQP chapter 4 SkQP (Skia Quality Program) is a component of the Android CTS (Compatablity 5 Test Suite) that tests an Android device's GPU and OpenGLES & Vulkan drivers 8 See https://skia.org/dev/testing/skqp for pre-build APKs. 10 How to build and run the SkQP tests 11 ----------------------------------- 15 - You will need Java JDK 8, `git`, and `python`. 17 …- Install Chromium's [depot\_tools](http://commondatastorage.googleapis.com/chrome-infra-docs/fl… 22 - Install the [Android NDK](https://developer.android.com/ndk/downloads/). 24 ( cd ~; unzip ~/Downloads/android-ndk-*.zip ) [all …]
|
| D | README_ALGORITHM.md | 1 SkQP Render Test Algorithm 4 The following is a description of the render test validation algorithm that 5 will be used by the version of SkQP that will be released for Android Q-release. 11 First, look for a file named `skqp/rendertests.txt` in the 12 `platform_tools/android/apps/skqp/src/main/assets` directory. The format of 13 this file is: each line contains one render test name, followed by a comma, 14 followed by an integer. The integer is the `passing_threshold` for that test. 16 For each test, we have a `max_image` and a `min_image`. These are PNG-encoded 17 images stored in SkQP's APK's asset directory (in the paths `gmkb/${TEST}/min.png` 18 and `gmkb/${TEST}/max.png`). [all …]
|
| D | run_apk.sh | 3 # Use of this source code is governed by a BSD-style license that can be 10 if ! [ -f "$1" ] || ! [ -d "$2" ] ; then 15 SED_CMD='s/^.* org.skia.skqp: output written to "\([^"]*\)".*$/\1/p' 21 set -x 23 timeout 60 adb wait-for-device || exit 1 25 sleep ${SKQP_SLEEP:-0} 27 adb uninstall org.skia.skqp > /dev/null 2>&1 31 adb logcat -c 33 adb shell am instrument $SKQP_ARGS -w org.skia.skqp 2>&1 | tee "$DST"/stdout 35 adb logcat -d TestRunner org.skia.skqp skia DEBUG '*:S' > "$DST"/logcat [all …]
|
| D | jitter_gms.cpp | 2 // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. 6 // Re-execute rendering tests with slight translational changes and see if 7 // there is a significant change. Print `1` if the named test has no 21 #include "tools/skqp/src/skqp.h" 22 #include "tools/skqp/src/skqp_model.h" 49 SkASSERT(bm->dimensions() == gm->getISize()); in do_gm() 54 gm->draw(&canvas); in do_gm() 58 // Return true if passes jitter test. 61 SkISize size = gm->getISize(); in test_jitter() 70 SkQP::RenderOutcome result = skqp::Check( in test_jitter() [all …]
|
| D | find_commit_with_best_gold_results.py | 3 # Use of this source code is governed by a BSD-style license that can be 24 reg = re.compile('Test-(?P<os>[A-Za-z0-9_]+)-' 25 '(?P<compiler>[A-Za-z0-9_]+)-' 26 '(?P<model>[A-Za-z0-9_]+)-GPU-' 27 '(?P<cpu_or_gpu_value>[A-Za-z0-9_]+)-' 28 '(?P<arch>[A-Za-z0-9_]+)-' 29 '(?P<configuration>[A-Za-z0-9_]+)-' 30 'All(-(?P<extra_config>[A-Za-z0-9_]+)|)') 34 return s.encode('utf-8') if s is not None else '' 54 return 'https://public-gold.skia.org/json/export?' + urllib.urlencode(query) [all …]
|
| /third_party/mesa3d/docs/ci/ |
| D | skqp.rst | 1 skqp title 4 `skqp <https://skia.org/docs/dev/testing/skqp/>`_ stands for SKIA Quality 9 The rendering tests have support for GL, GLES and Vulkan backends and test some 14 ----- 19 It is worth noting that `rendertests.txt` can bring some detail about each test 20 expectation, so each test can have a max pixel error count, to tell skqp that it 21 is OK to have at most that number of errors for that test. See also: 22 https://github.com/google/skia/blob/c29454d1c9ebed4758a54a69798869fa2e7a36e0/tools/skqp/README_ALGO… 24 .. _test-location: 30 subdirectory inside skqp assets directory. [all …]
|
| /third_party/skia/tools/skqp/src/ |
| D | skqp.cpp | 4 * Use of this source code is governed by a BSD-style license that can be 8 #include "tools/skqp/src/skqp.h" 23 #include "tests/Test.h" 37 #include "tools/skqp/src/skqp_model.h" 48 static constexpr char kDefaultRenderTestsPath[] = "skqp/rendertests.txt"; 50 static constexpr char kUnitTestsPath[] = "skqp/unittests.txt"; 54 // F is [](const char*, size_t) -> void 62 size_t len = ptr - start; in readlines() 68 static void get_unit_tests(SkQPAssetManager* mgr, std::vector<SkQP::UnitTest>* unitTests) { in get_unit_tests() 72 if (l > 0 && s[l - 1] == '\n') { // strip line endings. in get_unit_tests() [all …]
|
| D | skqp_main.cpp | 4 * Use of this source code is governed by a BSD-style license that can be 11 #include "tools/skqp/src/skqp.h" 24 //TODO(halcanary): does this need to be changed if I run SkQP in Windows? in StdAssetManager() 62 matchLen--; in should_skip() 66 matchLen--; in should_skip() 68 if ((matchEnd = matchName[matchLen - 1] == '$')) { in should_skip() 69 matchLen--; in should_skip() 74 && strncmp(name + testLen - matchLen, matchName, matchLen) == 0 in should_skip() 89 args->assetDir = argv[1]; in parse_args() 90 args->renderTests = argv[2]; in parse_args() [all …]
|
| D | skqp_model.h | 4 * Use of this source code is governed by a BSD-style license that can be 15 #include "tools/skqp/src/skqp.h" 20 namespace skqp { 22 /** Prefered colortype for comparing test outcomes. */ 25 /** Prefered alphatype for comparing test outcomes. */ 37 SkQP::RenderOutcome fOutcome; 38 std::string fErrorString; // if non-empty, an error occured. 41 SkQP::RenderOutcome Check(const SkPixmap& minImg, 47 /** Check if the given test image matches the expected results. 49 @param name the name of the rendering test that produced the image [all …]
|
| D | skqp.h | 4 * Use of this source code is governed by a BSD-style license that can be 27 struct Test; 43 class SkQP { 51 using UnitTest = const skiatest::Test*; 60 SkQP(); 61 ~SkQP(); 64 Initialize Skia and the SkQP. Should be executed only once. 66 @param assetManager - provides assets for the models. Does not take ownership. 67 @param renderTests - file containing list of render tests. 68 @param reportDirectory - where to write out report. [all …]
|
| /third_party/mesa3d/.gitlab-ci/ |
| D | skqp-runner.sh | 27 # Copy either unit test or render test files from a specific driver given by 29 # If there is no test file at the expected location, this function will 32 SKQP_FILE_PREFIX="${INSTALL}/${GPU_VERSION}-skqp" 34 if echo "${SKQP_BACKEND}" | grep -qE 'vk|gl(es)?' 36 SKQP_RENDER_TESTS_FILE="${SKQP_FILE_PREFIX}-${SKQP_BACKEND}_rendertests.txt" 37 [ -f "${SKQP_RENDER_TESTS_FILE}" ] || return 1 38 cp "${SKQP_RENDER_TESTS_FILE}" "${SKQP_ASSETS_DIR}"/skqp/rendertests.txt 44 if echo "${SKQP_BACKEND}" | grep -qE "unitTest" 47 [ -f "${SKQP_UNIT_TESTS_FILE}" ] || return 1 48 cp "${SKQP_UNIT_TESTS_FILE}" "${SKQP_ASSETS_DIR}"/skqp/unittests.txt [all …]
|
| D | test-source-dep.yml | 5 .scheduled_pipeline-rules: 7 - if: &is-scheduled-pipeline '$CI_PIPELINE_SOURCE == "schedule"' 12 .no_scheduled_pipelines-rules: 14 - if: *is-scheduled-pipeline 17 # Mesa core source file dependencies that may impact any test job 18 # --------------------------------------------------------------- 19 .core-rules: 21 - !reference [.no_scheduled_pipelines-rules, rules] 22 - changes: &core_file_list 23 - .gitlab-ci.yml [all …]
|
| /third_party/skia/site/docs/dev/testing/ |
| D | skqp.md | 2 --- 3 title: "SkQP" 4 linkTitle: "SkQP" 6 --- 9 Development APKs of SkQP are kept in Google storage. Each file in named 13 These are universal APKs that contain native libraries for armeabi-v7a, 14 arm64-v8a, x86, and x86\_64 architectures. The most recent is listed first. 17 [https://storage.googleapis.com/skia-skqp/apklist](https://storage.googleapis.com/skia-skqp/apklist) 20 `origin/skqp/release` branch. 24 adb install -r skqp-universal-{APK_SHA_HERE}.apk [all …]
|
| /third_party/mesa3d/src/intel/ci/ |
| D | gitlab-ci.yml | 1 .intel-common-test: 3 - .lava-test:amd64 8 FLAKES_CHANNEL: "#intel-ci" 11 .anv-test: 13 - .intel-common-test 14 - .anv-rules 18 .iris-test: 20 - .intel-common-test 21 - .iris-rules 25 .intel-test: [all …]
|
| /third_party/skia/platform_tools/android/apps/skqp/src/main/java/org/skia/skqp/ |
| D | SkQPActivity.java | 1 package org.skia.skqp; 26 // Note: /sdcard/Android/data/<package-name> is a location an app is allowed to write to. in run() 32 SkQP impl = new SkQP(); in run() 34 Log.i(SkQP.LOG_PREFIX, "Output Dir: " + outputDirPath); in run() 39 Log.e(SkQP.LOG_PREFIX, "ensureEmtpyDirectory:" + e.getMessage()); in run() 47 String classname = SkQP.kSkiaGM + impl.mBackends[backend]; in run() 49 String testName = SkQP.kSkiaGM + impl.mBackends[backend] + "_" + impl.mGMs[gm]; in run() 52 Log.i(SkQP.LOG_PREFIX, "Running: " + testName); in run() 59 Log.w(SkQP.LOG_PREFIX, "Error: " + testName + " " + error); in run() 61 Log.w(SkQP.LOG_PREFIX, String.format("Fail: %s %f", testName, value)); in run() [all …]
|
| D | SkQP.java | 4 * Use of this source code is governed by a BSD-style license that can be 8 package org.skia.skqp; 13 This class does the heavy lifting for SkQP and provides the JNI interface 16 public class SkQP { class 19 protected native String[] nExecuteUnitTest(int test); in nExecuteUnitTest() argument 28 protected static final String LOG_PREFIX = "org.skia.skqp";
|
| D | SkQPRunner.java | 4 * Use of this source code is governed by a BSD-style license that can be 8 package org.skia.skqp; 14 import androidx.test.InstrumentationRegistry; 35 private SkQP mImpl; 36 private static final String TAG = SkQP.LOG_PREFIX; 45 mImpl = new SkQP(); in SkQPRunner() 47 String now = (new SimpleDateFormat("yyyy-MM-dd'T'HHmmss")).format(new Date()); in SkQPRunner() 76 mDescription = Description.createSuiteDescription(SkQP.class); in updateDescription() 133 Log.i(TAG, String.format("Rendering Test '%s' complete (%d/%d). [%s]", in run() 148 Log.w(TAG, String.format("[FAIL] Test '%s' had %d failures.", name, errors.length)); in run() [all …]
|
| /third_party/skia/platform_tools/android/apps/skqp/src/main/ |
| D | AndroidManifest.xml | 1 <?xml version="1.0" encoding="utf-8"?> 3 package="org.skia.skqp" 7 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 12 android:label="SkQP"> 17 <intent-filter> 20 </intent-filter> 27 <intent-filter> 31 </intent-filter> 33 <uses-library android:name="android.test.runner" /> 35 <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner" [all …]
|
| /third_party/skia/build/fuchsia/skqp/ |
| D | cipd_arm64.yaml | 1 package: skia/fuchsia/skqp/arch/arm64 2 description: ARM64 build of Skia's skqp test suite for Fuchsia 6 - file: build/fuchsia/skqp/test_manifest.json 7 - file: out/fuchsia-arm64/far/skqp_pkg.far
|
| /third_party/mesa3d/.gitlab-ci/test/ |
| D | gitlab-ci.yml | 1 .test: 7 - !reference [default, before_script] 9 - rm -rf install 10 - tar -xf artifacts/install.tar 11 …- echo -e "\e[0Ksection_start:$(date +%s):ldd_section[collapsed=true]\r\e[0KChecking ldd on driver… 12 - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \; 13 - echo -e "\e[0Ksection_end:$(date +%s):ldd_section\r\e[0K" 18 - results/ 20 .test-gl: 22 - .test [all …]
|
| /third_party/mesa3d/src/freedreno/ci/ |
| D | gitlab-ci.yml | 1 .freedreno-test: 3 - .baremetal-test-arm64 4 - .freedreno-rules 7 FLAKES_CHANNEL: "#freedreno-ci" 11 - ./install/bare-metal/fastboot.sh 13 - google-freedreno-db410c 15 .baremetal-deqp-test-freedreno-vk: 17 - .baremetal-deqp-test 24 .freedreno-test-traces: 26 - .piglit-traces-test [all …]
|
| /third_party/skia/platform_tools/android/apps/skqp/ |
| D | build.gradle | 4 * Use of this source code is governed by a BSD-style license that can be 11 implementation 'androidx.test:runner:1.1.0' 17 applicationId "org.skia.skqp"
|
| /third_party/skia/ |
| D | BUILD.gn | 3 # Use of this source code is governed by a BSD-style license that can be 35 "-Wno-deprecated-declarations", 36 "-Wno-pessimizing-move", 37 "-Wno-return-type", 38 "-Wno-sign-compare", 39 "-Wno-sometimes-uninitialized", 40 "-Wno-unknown-pragmas", 41 "-Wno-unused-function", 42 "-Wno-unused-private-field", 43 "-Wno-unused-variable", [all …]
|