| /third_party/skia/third_party/externals/angle2/doc/ |
| D | TestingAndProcesses.md | 1 # Handling Test Failures 3 ANGLE is tested by a number of test suites, including by the ANGLE CI and Try testers, and by the 8 configurations, both pre- and post- commit. Some tests will fail, crash, or timeout. If these 9 cannot be addressed in a timely manner, file a bug and update test expectations files. Timeliness 12 fixing test failures. 17 as VVL). Validation errors will cause an otherwise-passing test to fail. 19 The [vulkan-deps into ANGLE AutoRoller](https://autoroll.skia.org/r/vulkan-deps-angle-autoroll) 20 updates ANGLE to the top-of-tree (ToT) upstream Vulkan tools and SDK. Sometimes validation errors 24 [upstream bug](https://github.com/KhronosGroup/Vulkan-ValidationLayers/issues/new), and 26 `vulkan-deps` AutoRoller introduces a new validation error. The ANGLE Wrangler isn't expected to [all …]
|
| /third_party/vk-gl-cts/external/vulkan-docs/src/ |
| D | testBuild | 3 # Copyright 2023-2024 The Khronos Group Inc. 5 # SPDX-License-Identifier: Apache-2.0 7 # testBuild - invoke Makefile with the right options to build the test spec 12 # Build the test spec in various configurations: 17 echo "-----------------------" 18 echo "Building gen-$build ..." 21 rm -rf build_tests/gen-$build 24 ./makeSpec -spec $options -genpath build_tests/gen-$build -test html 29 build_spec core-1.0 "core -version 1.0" 31 build_spec hic "core -extension VK_EXT_host_image_copy" [all …]
|
| /third_party/vk-gl-cts/external/vulkan-docs/src/build_tests/ |
| D | README.adoc | 1 // Copyright 2023-2024 The Khronos Group Inc. 2 // SPDX-License-Identifier: CC-BY-4.0 6 This directory contains test source and expectation files for the `testBuild` 7 script. The test specification files are: 17 * `expectations/*.html` 18 * `expectations/validusage.json` 20 The `testBuild` script builds the test specficiation (`testspec.adoc`) in an 25 Each build by `testBuild` is done in a separate directory under `gen-<build>`. 26 In all cases except `gen-validusage`, the output is 27 `gen-<build>/out/html/vkspec.html`. In the case of `gen-validusage`, the output [all …]
|
| /third_party/skia/tests/ |
| D | YUVTest.cpp | 4 * Use of this source code is governed by a BSD-style license that can be 13 #include "tests/Test.h" 29 // Test queryYUBAInfo() in codec_yuv() 35 // SkYUVAInfo param is required to be non-null. in codec_yuv() 36 bool success = codec->queryYUVAInfo(kAllTypes, nullptr); in codec_yuv() 39 success = codec->queryYUVAInfo(kNoTypes, &yuvaPixmapInfo); in codec_yuv() 42 success = codec->queryYUVAInfo(kAllTypes, &yuvaPixmapInfo); in codec_yuv() 79 // Test getYUVAPlanes() in codec_yuv() 80 REPORTER_ASSERT(reporter, SkCodec::kSuccess == codec->getYUVAPlanes(pixmaps)); in codec_yuv() 94 SkYUVAInfo expectations = setExpectations({128, 128}, SkYUVAInfo::Subsampling::k420); in DEF_TEST() local [all …]
|
| D | PDFDocumentTest.cpp | 4 * Use of this source code is governed by a BSD-style license that can be 7 #include "tests/Test.h" 25 doc->close(); in test_empty() 34 SkCanvas* canvas = doc->beginPage(100, 100); in test_abort() 35 canvas->drawColor(SK_ColorRED); in test_abort() 36 doc->endPage(); in test_abort() 38 doc->abort(); in test_abort() 40 // Test that only the header is written, not the full document. in test_abort() 63 SkCanvas* canvas = doc->beginPage(100, 100); in test_abortWithFile() 64 canvas->drawColor(SK_ColorRED); in test_abortWithFile() [all …]
|
| /third_party/musl/libc-test/src/functionalext/supplement/math/math_gtest/ |
| D | math_lgamma_r_test.cpp | 6 class MathLgammarTest : public testing::Test { 13 * @tc.desc: The goal of this test case is to validate lgamma_r function can correctly 26 * @tc.desc: This test is used to detect whether the set parameters meet expectations when 39 * @tc.desc: This test is used to detect whether the set parameter meets expectations when 46 EXPECT_DOUBLE_EQ(HUGE_VAL, lgamma_r(-0.0, &signResult)); 47 EXPECT_EQ(-1, signResult); 52 * @tc.desc: The goal of this test case is to validate lgammaf_r function can correctly 65 * @tc.desc: This test is used to detect whether the set parameters meet expectations when 78 * @tc.desc: This test is used to detect whether the set parameter meets expectations when 85 EXPECT_DOUBLE_EQ(HUGE_VAL, lgammaf_r(-0.0f, &signResult)); [all …]
|
| /third_party/googletest/docs/ |
| D | gmock_for_dummies.md | 5 When you write a prototype or test, often it's not feasible or wise to rely on 12 actually mean very different things in the Test-Driven Development (TDD) 17 not suitable for production. An in-memory file system would be an example of 19 * **Mocks** are objects pre-programmed with *expectations*, which form a 22 If all this seems too abstract for you, don't worry - the most important thing 35 2. next, you create some mock objects and specify its expectations and behavior 38 violation to the expectations as soon as it arises. 46 error-prone. No wonder people go great distance to avoid it. 62 * You are stuck with a sub-optimal design and wish you had done more 69 * You want to test how your code handles a failure (e.g. a file checksum [all …]
|
| D | gmock_faq.md | 6 [high-perf dependency injection technique](gmock_cook_book.md#MockingNonVirtualMethods). 72 Note that we are talking about the *top-level* `const` modifier here. If the 82 ### I can't figure out why gMock thinks my expectations are not satisfied. What should I do? 84 You might want to run your test with `--gmock_verbose=info`. This flag lets 86 trace, you'll gain insights on why the expectations you set are not met. 98 When a test crashes, the failure signal handler will try to log a lot of 101 intercepts these messages and finds that they don't match any expectations, it 104 You can learn to ignore the errors, or you can rewrite your expectations to make 105 your test more robust, for example, by adding something like: 125 ### I have a failed test where gMock tells me TWICE that a particular expectation is not satisfied.… [all …]
|
| D | gmock_cheat_sheet.md | 102 4. Set your expectations on the mock objects (How will they be called? What 107 expectations on it have been satisfied. 114 TEST(BarTest, DoesThis) { 124 // ... other expectations ... 132 gMock has a **built-in default action** for any function that returns `void`, 134 the default-constructed value, if one exists for the given type. 167 ## Setting Expectations {#ExpectCall} 186 By default, expectations can be matched in *any* order. If some or all 187 expectations must be matched in a given order, you can use the 194 gMock will verify the expectations on a mock object when it is destructed, or [all …]
|
| /third_party/rust/crates/bindgen/ |
| D | CONTRIBUTING.md | 8 <!-- START doctoc generated TOC please keep comment here to allow auto update --> 9 <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> 11 - [Code of Conduct](#code-of-conduct) 12 - [Filing an Issue](#filing-an-issue) 13 - [Looking to Start Contributing to `bindgen`?](#looking-to-start-contributing-to-bindgen) 14 - [Building](#building) 15 - [Testing](#testing) 16 - [Overview](#overview) 17 - [Testing Bindings Generation](#testing-bindings-generation) 18 - [Testing Generated Bindings](#testing-generated-bindings) [all …]
|
| /third_party/skia/tools/ |
| D | jsondiff.py | 6 Use of this source code is governed by a BSD-style license that can be 11 Gathers diffs between 2 JSON expectations files, or between actual and 12 expected results within a single JSON actual-results file, 13 and generates an old-vs-new diff dictionary. 15 TODO(epoger): Fix indentation in this file (2-space indents, not 4-space). 18 # System-level imports 28 # that directory. That script allows us to parse the actual-results.json file 71 1. Each test has either 0 or 1 allowed results. 72 2. All expectations are of type JSONKEY_HASHTYPE_BITMAP_64BITMD5. 77 Any tests for which we have no expectations will be left out of the [all …]
|
| /third_party/skia/third_party/externals/angle2/src/tests/compiler_tests/ |
| D | UnrollFlatten_test.cpp | 3 // Use of this source code is governed by a BSD-style license that can be 7 // Test for the outputting of [[unroll]] and [[flatten]] for the D3D compiler. 8 // This test can only be enabled when HLSL support is enabled. 22 class UnrollFlattenTest : public testing::Test 52 FAIL() << "Couldn't find '" << pattern << "' after expectations '" in expect() 64 << "' after expectations '" << mExpectationList in expect() 69 mExpectationList += " - " + std::string(pattern); in expect() 112 // 1 - shouldn't get a Lod0 version generated in TEST_F() 113 // 2 - no FLATTEN because does not contain discont loop in TEST_F() 114 // 3 - shouldn't get a Lod0 version generated in TEST_F() [all …]
|
| /third_party/googletest/googlemock/src/ |
| D | gmock-spec-builders.cc | 30 // Google Mock - a framework for writing C++ mock classes. 35 #include "gmock/gmock-spec-builders.h" 49 #include "gtest/internal/gtest-port.h" 71 // mockers, and all expectations. 110 // Retires all pre-requisites of this expectation. 114 // We can take this short-cut as we never retire an expectation in RetireAllPreRequisites() 115 // until we have retired all its pre-requisites. in RetireAllPreRequisites() 119 ::std::vector<ExpectationBase*> expectations(1, this); in RetireAllPreRequisites() 120 while (!expectations.empty()) { in RetireAllPreRequisites() 121 ExpectationBase* exp = expectations.back(); in RetireAllPreRequisites() [all …]
|
| /third_party/protobuf/third_party/googletest/googlemock/src/ |
| D | gmock-spec-builders.cc | 31 // Google Mock - a framework for writing C++ mock classes. 36 #include "gmock/gmock-spec-builders.h" 65 // mockers, and all expectations. 103 // Retires all pre-requisites of this expectation. 107 // We can take this short-cut as we never retire an expectation in RetireAllPreRequisites() 108 // until we have retired all its pre-requisites. in RetireAllPreRequisites() 112 ::std::vector<ExpectationBase*> expectations(1, this); in RetireAllPreRequisites() 113 while (!expectations.empty()) { in RetireAllPreRequisites() 114 ExpectationBase* exp = expectations.back(); in RetireAllPreRequisites() 115 expectations.pop_back(); in RetireAllPreRequisites() [all …]
|
| /third_party/openssl/test/ |
| D | README.ssltest.md | 4 SSL testcases are configured in the `ssl-tests` directory. 6 Each `ssl_*.cnf.in` file contains a number of test configurations. These files 9 The precise test output can be dependent on the library configuration. The test 12 However, for verification, we also include checked-in configuration outputs 14 `test/ssl-tests/*.cnf` files. 16 For more details, see `ssl-tests/01-simple.cnf.in` for an example. 18 Configuring the test 19 -------------------- 21 First, give your test a name. The names do not have to be unique. 23 An example test input looks like this: [all …]
|
| /third_party/mesa3d/src/freedreno/ci/ |
| D | traces-freedreno.yml | 1 traces-db: 2 download-url: "http://10.42.0.1:8888/cache/?uri=https://s3.freedesktop.org/mesa-tracie-public/" 9 # half-life-2: 37.83s 11 # counterstrike-source: 14.24s 20 - path: valve/half-life-2-v2.trace 21 expectations: 23 # - device: freedreno-a306 26 - device: freedreno-a530 28 - device: freedreno-a630 30 …erbuffer.c:606:_mesa_update_renderbuffer_surface: Assertion `level <= resource->last_level' failed. [all …]
|
| /third_party/rust/crates/bindgen/ci/ |
| D | test.bat | 13 echo Found a test with an #include directive of a system header file! 16 echo file, let alone the same version of it that you have. Any test with such an 26 ::Regenerate the test headers' bindings in debug and release modes, and assert 29 cargo test --features "%BINDGEN_FEATURES%" || exit /b 1 30 call .\ci\assert-no-diff.bat 32 cargo test --features "%BINDGEN_FEATURES% testing_only_extra_assertions" || exit /b 1 33 call .\ci\assert-no-diff.bat 35 cargo test --release --features "%BINDGEN_FEATURES% testing_only_extra_assertions" || exit /b 1 36 call .\ci\assert-no-diff.bat 38 ::Now test the expectations' size and alignment tests. [all …]
|
| /third_party/vk-gl-cts/external/vulkan-docs/src/scripts/reflow-tests/ |
| D | README.adoc | 1 // Copyright 2023-2024 The Khronos Group Inc. 2 // SPDX-License-Identifier: CC-BY-4.0 6 This directory contains test source and expectation files for the `reflow.py` 10 The tests reflow each source file (`src-<name>.adoc`) with multiple 12 text), and match them against the expectation (`expect-<name>-<options>.adoc`). 14 After running `pytest`, if any `test_reflow.py` test fails for example because 15 the reflow script has been modified to function differently, the test results 16 can be found under `results/<options>/src-<name>.adoc` and needs to be manually 18 expectations can be updated with: 20 ---- [all …]
|
| /third_party/googletest/googlemock/test/ |
| D | gmock-spec-builders_test.cc | 30 // Google Mock - a framework for writing C++ mock classes. 34 #include "gmock/gmock-spec-builders.h" 43 #include "gmock/internal/gmock-port.h" 44 #include "gtest/gtest-spi.h" 46 #include "gtest/internal/gtest-port.h" 68 // This line verifies that a mock method can take a by-reference 76 TEST(MockMethodTest, CanInstantiateWithIncompleteArgType) { in TEST() function 78 // by-reference an argument whose type is incomplete, we can still in TEST() 161 TEST(OnCallSyntaxTest, CompilesWithMethodNameExpandedFromMacro) { in TEST() function 168 TEST(OnCallSyntaxTest, WorksWithMethodNameExpandedFromMacro) { in TEST() function [all …]
|
| /third_party/protobuf/third_party/googletest/googlemock/test/ |
| D | gmock-spec-builders_test.cc | 31 // Google Mock - a framework for writing C++ mock classes. 35 #include "gmock/gmock-spec-builders.h" 43 #include "gmock/internal/gmock-port.h" 45 #include "gtest/gtest-spi.h" 46 #include "gtest/internal/gtest-port.h" 56 exp->call_count_ = n; in SetCallCount() 115 // This line verifies that a mock method can take a by-reference 123 TEST(MockMethodTest, CanInstantiateWithIncompleteArgType) { in TEST() function 125 // by-reference an argument whose type is incomplete, we can still in TEST() 205 TEST(OnCallSyntaxTest, CompilesWithMethodNameExpandedFromMacro) { in TEST() function [all …]
|
| /third_party/rust/crates/bindgen/bindgen-tests/tests/ |
| D | tests.rs | 18 #[path = "../../bindgen-cli/options.rs"] 25 fn rustfmt(source: String) -> (String, String) { in rustfmt() 35 p.args(["run", "nightly", "rustfmt", "--version"]); in rustfmt() 49 The latest `rustfmt` is required to run the `bindgen` test suite. Install in rustfmt() 53 $ rustup component add rustfmt --toolchain nightly in rustfmt() 70 "--config-path", in rustfmt() 99 // Ignore actual rustfmt status because it is often non-zero for trivial in rustfmt() 109 .expect("rustfmt should only emit valid utf-8"); in rustfmt() 119 fn should_overwrite_expected() -> bool { in should_overwrite_expected() 136 ) -> Result<(), Error> { in error_diff_mismatch() [all …]
|
| /third_party/rust/crates/bindgen/.github/workflows/ |
| D | bindgen.yml | 6 - main 9 - main 12 rustfmt-clippy: 13 runs-on: ubuntu-latest 16 - uses: actions/checkout@v3 18 - name: Install stable 19 uses: actions-rs/toolchain@v1 22 # TODO: Should ideally be stable, but we use some nightly-only 28 - name: Run rustfmt 29 uses: actions-rs/cargo@v1 [all …]
|
| /third_party/mindspore/mindspore-src/source/tests/ut/python/parallel/ |
| D | test_auto_parallel_arithmetic.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 65 Features: test auto parallel 67 Expectation: Generated strategies matching expectations 92 if re.search('FloorDiv-op', k) is not None: 94 elif re.search('MatMul-op', k) is not None: 96 elif re.search('_VirtualDataset-op', k) is not None: 102 Features: test auto parallel 104 Expectation: Generated strategies matching expectations 130 if re.search('FloorDiv-op', k) is not None: 132 elif re.search('MatMul-op', k) is not None: [all …]
|
| /third_party/skia/third_party/externals/angle2/src/tests/ |
| D | angle_end2end_tests_main.cpp | 3 // Use of this source code is governed by a BSD-style license that can be 14 // GoogleTest relies heavily on static initialization to register test functions. This can 17 // before the test launcher starts. This is a safer and generally better way to initialize 18 // tests. It's also more similar to how the dEQP Test harness works. In the future we should 37 std::cerr << "Unable to find test expectations path (" << kTestExpectationsPath << ")\n"; in main() 41 // end2end test expectations only allow SKIP at the moment. in main()
|
| /third_party/skia/third_party/externals/angle2/src/tests/deqp_support/ |
| D | README.md | 16 For every set of dEQP tests, for example GLES3 tests on the Vulkan backend, an expectations file 17 exists to let the test harness know which tests it should skip (as they are known to crash), or 18 expect to see failed. Warnings are generated if a test unexpectedly passes, but an unexpected 21 While developing a feature, or testing on a new platform, the expectations files can be modified to 40 `TEST_NAME` can be a specific test name, or set of test names using `'*'` as wildcard anywhere in 44 3445 : dEQP-GLES31.functional.ssbo.layout.random.all_shared_buffer.48 = SKIP 47 1442 OPENGL : dEQP-GLES31.functional.separate_shader.* = SKIP 48 1442 D3D11 : dEQP-GLES31.functional.separate_shader.* = SKIP 51 …3726 VULKAN ANDROID : dEQP-GLES31.functional.synchronization.inter_call.without_memory_barrier.*at… 53 // Failing test in Nvidia's OpenGL implementation on windows: [all …]
|