Home
last modified time | relevance | path

Searched +full:test +full:- +full:expectations (Results 1 – 25 of 329) sorted by relevance

12345678910>>...14

/third_party/skia/third_party/externals/angle2/doc/
DTestingAndProcesses.md1 # 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/
DtestBuild3 # 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/skia/m133/tests/graphite/
DRecordingSurfacesTest.cpp4 * Use of this source code is governed by a BSD-style license that can be
8 #include "tests/Test.h"
43 const std::vector<Expectation>& expectations) { in run_test() argument
47 std::unique_ptr<Recorder> surfaceRecorder = context->makeRecorder(); in run_test()
51 const TextureInfo& textureInfo = graphiteSurface->backingTextureProxy()->textureInfo(); in run_test()
54 std::unique_ptr<skgpu::graphite::Recording> surfaceRecording = surfaceRecorder->snap(); in run_test()
55 context->insertRecording({surfaceRecording.get()}); in run_test()
59 std::unique_ptr<Recorder> recorder = context->makeRecorder(); in run_test()
60 SkCanvas* canvas = recorder->makeDeferredCanvas(recordingImageInfo, textureInfo); in run_test()
62 std::unique_ptr<Recording> recording = recorder->snap(); in run_test()
[all …]
DUniformManagerTest.cpp4 * Use of this source code is governed by a BSD-style license that can be
14 #include "tests/Test.h"
43 static constexpr int32_t kInts[16] = { 1, -2, 3, -4,
44 5, -6, 7, -8,
45 9, -10, 11, -12,
46 13, -14, 15, -16 };
49 // Metal encodes half-precision uniforms in 16 bits. in element_size()
60 const Uniform expectations[] = {{"uniform", type}}; in DEF_GRAPHITE_TEST() local
61 SkDEBUGCODE(mgr.setExpectedUniforms(SkSpan(expectations), /*isSubstruct=*/false);) in DEF_GRAPHITE_TEST()
62 mgr.write(expectations[0], kFloats); in DEF_GRAPHITE_TEST()
[all …]
/third_party/vk-gl-cts/external/vulkan-docs/src/build_tests/
DREADME.adoc1 // 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/musl/libc-test/src/functionalext/supplement/math/math_gtest/
Dmath_lgamma_r_test.cpp6 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/skia/tests/
DYUVTest.cpp4 * 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 …]
/third_party/rust/crates/bindgen/
DCONTRIBUTING.md8 <!-- 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 - [Prerequisites](#prerequisites)
15 - [`rustfmt` / `cargo fmt`](#rustfmt--cargo-fmt)
16 - [Building](#building)
17 - [Testing](#testing)
18 - [Overview](#overview)
[all …]
/third_party/googletest/docs/
Dgmock_for_dummies.md5 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 …]
Dgmock_faq.md6 [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 …]
/third_party/skia/tools/
Djsondiff.py6 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/protobuf/third_party/abseil-cpp/absl/log/
Dscoped_mock_log.h7 // https://www.apache.org/licenses/LICENSE-2.0
15 // -----------------------------------------------------------------------------
17 // -----------------------------------------------------------------------------
46 // Using this together with GoogleTest, it's easy to test how a piece of code
56 // TEST(FooTest, LogsCorrectly) {
67 // log.StartCapturingLogs(); // Call this after done setting expectations.
68 // Foo(); // Exercises the code under test.
71 // TEST(BarTest, LogsExactlyCorrectly) {
84 // log.StartCapturingLogs(); // Call this after done setting expectations.
85 // Bar(); // Exercises the code under test.
[all …]
/third_party/skia/third_party/externals/angle2/src/tests/compiler_tests/
DUnrollFlatten_test.cpp3 // 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/skia/m133/tests/
DYUVTest.cpp4 * Use of this source code is governed by a BSD-style license that can be
23 #include "tests/Test.h"
44 // Test queryYUBAInfo() in codec_yuv()
50 // SkYUVAInfo param is required to be non-null. in codec_yuv()
51 bool success = codec->queryYUVAInfo(kAllTypes, nullptr); in codec_yuv()
54 success = codec->queryYUVAInfo(kNoTypes, &yuvaPixmapInfo); in codec_yuv()
57 success = codec->queryYUVAInfo(kAllTypes, &yuvaPixmapInfo); in codec_yuv()
94 // Test getYUVAPlanes() in codec_yuv()
95 REPORTER_ASSERT(reporter, SkCodec::kSuccess == codec->getYUVAPlanes(pixmaps)); in codec_yuv()
109 SkYUVAInfo expectations = setExpectations({128, 128}, SkYUVAInfo::Subsampling::k420); in DEF_TEST() local
[all …]
/third_party/googletest/googlemock/src/
Dgmock-spec-builders.cc30 // Google Mock - a framework for writing C++ mock classes.
35 #include "gmock/gmock-spec-builders.h"
50 #include "gtest/internal/gtest-port.h"
69 // mockers, and all expectations.
108 // Retires all pre-requisites of this expectation.
112 // We can take this short-cut as we never retire an expectation in RetireAllPreRequisites()
113 // until we have retired all its pre-requisites. in RetireAllPreRequisites()
117 ::std::vector<ExpectationBase*> expectations(1, this); in RetireAllPreRequisites()
118 while (!expectations.empty()) { in RetireAllPreRequisites()
119 ExpectationBase* exp = expectations.back(); in RetireAllPreRequisites()
[all …]
/third_party/rust/crates/bindgen/bindgen-tests/tests/
Dtests.rs12 #[path = "../../bindgen-cli/options.rs"]
19 fn format_code<S: AsRef<str>>(source: S) -> syn::Result<String> { in format_code()
27 fn should_overwrite_expected() -> bool { in should_overwrite_expected()
44 ) -> Result<(), Error> { in error_diff_mismatch()
46 println!("--- expected: {:?}", filename); in error_diff_mismatch()
60 //usecase: var = "meld" -> You can hand check differences in error_diff_mismatch()
80 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
98 ChangeTag::Delete => ("-", Style::new().red()), in show_diff()
127 ) -> Result<(), Error> { in compare_generated_header()
135 expectation.push("expectations"); in compare_generated_header()
[all …]
/third_party/openssl/test/
DREADME.ssltest.md4 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/grpc/src/objective-c/tests/Common/
DTestUtils.h9 * http://www.apache.org/licenses/LICENSE-2.0
24 /* Default test timeout in seconds for interopt test. */
27 // Block typedef for waiting for a target group of expectations via XCTWaiter.
28 typedef void (^GRPCTestWaiter)(NSArray<XCTestExpectation *> *expectations, NSTimeInterval timeout);
33 // Block typedef for a test run. Test run should call waiter to wait for a group of expectations
34 // with timeout. Test run can also optionally invoke assertBlock to report assertion failure.
41 * @return Interop test server address including host and port.
48 * @return Interop test server address including host and port.
53 * Common utility to fetch remote interop test server address.
55 * @return Interop test server address including host and port.
[all …]
/third_party/rust/rust/tests/ui/lint/rfc-2383-lint-reason/
Dexpect_tool_lint_rfc_2383.rs1 // check-pass
5 //! file is used to test clippy and rustdoc. Any changes to this file should be synced
6 //! to the other test files.
8 //! Expectations:
9 //! * rustc: only rustc lint expectations are emitted
10 //! * clippy: rustc and Clippy's expectations are emitted
11 //! * rustdoc: only rustdoc lint expectations are emitted
13 //! This test can't cover every lint from Clippy, rustdoc and potentially other
19 //! See <https://doc.rust-lang.org/rustc/lints/index.html>
35 //! See <https://doc.rust-lang.org/rustc/lints/index.html>
[all …]
/third_party/rust/rust/src/tools/clippy/tests/ui/
Dexpect_tool_lint_rfc_2383.rs3 //! file is used to test clippy and rustdoc. Any changes to this file should be synced
4 //! to the other test files as well.
6 //! Expectations:
7 //! * rustc: only rustc lint expectations are emitted
8 //! * clippy: rustc and Clippy's expectations are emitted
9 //! * rustdoc: only rustdoc lint expectations are emitted
11 //! This test can't cover every lint from Clippy, rustdoc and potentially other
17 //! See <https://doc.rust-lang.org/rustc/lints/index.html>
33 //! See <https://doc.rust-lang.org/rustc/lints/index.html>
49 //! See <https://doc.rust-lang.org/rustdoc/lints.html>
[all …]
/third_party/rust/crates/bindgen/ci/
Dtest.bat13 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/rust/rust/tests/rustdoc-ui/lints/
Dexpect-tool-lint-rfc-2383.rs1 // check-pass
5 //! file is used to test clippy and rustdoc. Any changes to this file should be synced
6 //! to the other test files as well.
8 //! Expectations:
9 //! * rustc: only rustc lint expectations are emitted
10 //! * clippy: rustc and Clippy's expectations are emitted
11 //! * rustdoc: only rustdoc lint expectations are emitted
13 //! This test can't cover every lint from Clippy, rustdoc and potentially other
21 //! See <https://doc.rust-lang.org/rustc/lints/index.html>
37 //! See <https://doc.rust-lang.org/rustc/lints/index.html>
[all …]
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/reflow-tests/
DREADME.adoc1 // 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/rust/crates/bindgen/.github/workflows/
Dbindgen.yml6 - main
9 - main
12 - main
15 rustfmt-clippy:
16 runs-on: ubuntu-latest
19 - uses: actions/checkout@v4
21 - name: Install stable
22 uses: dtolnay/rust-toolchain@master
24 # TODO: Should ideally be stable, but we use some nightly-only
29 - name: Run rustfmt
[all …]
/third_party/mesa3d/bin/
Dnir-test-runner.py4 # SPDX-License-Identifier: MIT
28 parser.add_argument('--build-dir', '-B', required=False)
29 parser.add_argument('--test-filter', '-f', required=False)
30 parser.add_argument('--update-all', '-u', action='store_true')
43 build_args.append(f'-C{args.build_dir}')
48 test_args.append(f'--gtest_filter={args.test_filter}')
56 expected_pattern = re.compile(r'Expected \(([\d\w\W/.-_]+):(\d+)\):')
59 expectations = collections.defaultdict(list) variable
61 # Parse the output of the test binary and gather the changed shaders.
73 expectations[file].append(TestFileChange(line, test_result.strip()))
[all …]

12345678910>>...14