| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/tests/ |
| H A D | amdgpu_dm_helpers_test.c | 596 struct dm_test_vbios_edid *fixture; in dm_test_get_embedded_panel_info() local 598 fixture = container_of(bios, struct dm_test_vbios_edid, bios); in dm_test_get_embedded_panel_info() 599 if (fixture->result != BP_RESULT_OK) in dm_test_get_embedded_panel_info() 600 return fixture->result; in dm_test_get_embedded_panel_info() 602 info->fake_edid = fixture->fake_edid; in dm_test_get_embedded_panel_info() 603 info->fake_edid_size = fixture->fake_edid_size; in dm_test_get_embedded_panel_info() 604 info->panel_width_mm = fixture->width_mm; in dm_test_get_embedded_panel_info() 605 info->panel_height_mm = fixture->height_mm; in dm_test_get_embedded_panel_info() 619 struct dm_test_vbios_edid *fixture; in dm_test_setup_vbios_link() local 629 fixture = kunit_kzalloc(test, sizeof(*fixture), GFP_KERNEL); in dm_test_setup_vbios_link() [all …]
|
| H A D | amdgpu_dm_connector_test.c | 2398 struct dm_cacp_fixture *fixture, in setup_cacp_fixture() argument 2402 fixture->adev = kunit_kzalloc(test, sizeof(*fixture->adev), GFP_KERNEL); in setup_cacp_fixture() 2403 fixture->aconnector = kunit_kzalloc(test, sizeof(*fixture->aconnector), in setup_cacp_fixture() 2405 fixture->link = kunit_kzalloc(test, sizeof(*fixture->link), GFP_KERNEL); in setup_cacp_fixture() 2406 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, fixture->adev); in setup_cacp_fixture() 2407 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, fixture->aconnector); in setup_cacp_fixture() 2408 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, fixture->link); in setup_cacp_fixture() 2410 fixture->aconnector->dc_link = fixture->link; in setup_cacp_fixture() 2411 fixture->aconnector->base.dev = &fixture->adev->ddev; in setup_cacp_fixture() 2412 fixture->link->connector_signal = signal; in setup_cacp_fixture() [all …]
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | test_veristat.c | 13 struct fixture { struct 21 static struct fixture *init_fixture(void) in init_fixture() argument 23 struct fixture *fix = malloc(sizeof(struct fixture)); in init_fixture() 40 static void read_output(struct fixture *fix) in read_output() 48 static void teardown_fixture(struct fixture *fix) in teardown_fixture() 58 struct fixture *fix = init_fixture(); in test_set_global_vars_succeeds() 113 struct fixture *fix = init_fixture(); in test_set_global_vars_from_file_succeeds() 139 struct fixture *fix = init_fixture(); in test_set_global_vars_out_of_range() 154 struct fixture *fix = init_fixture(); in test_unsupported_ptr_array_type() 169 struct fixture *fix = init_fixture(); in test_array_out_of_bounds() [all …]
|
| /linux/kernel/trace/ |
| H A D | trace_selftest.c | 780 struct fgraph_fixture *fixture = container_of(gops, struct fgraph_fixture, gops); in store_entry() local 781 const char *type = fixture->store_type_name; in store_entry() 782 int size = fixture->store_size; in store_entry() 787 snprintf(fixture->error_str_buf, ERRSTR_BUFLEN, in store_entry() 814 struct fgraph_fixture *fixture = container_of(gops, struct fgraph_fixture, gops); in store_return() local 815 const char *type = fixture->store_type_name; in store_return() 823 snprintf(fixture->error_str_buf, ERRSTR_BUFLEN, in store_return() 827 if (fixture->store_size > size) { in store_return() 828 snprintf(fixture->error_str_buf, ERRSTR_BUFLEN, in store_return() 830 size, (int)fixture->store_size); in store_return() [all …]
|
| /linux/tools/testing/selftests/kselftest_harness/ |
| H A D | harness-selftest.expected | 60 # RUN fixture.pass ... 67 # OK fixture.pass 68 ok 15 fixture.pass 69 # RUN fixture.fail ... 75 # FAIL fixture.fail 76 not ok 16 fixture.fail 77 # RUN fixture.timeout ... 81 # FAIL fixture.timeout 82 not ok 17 fixture.timeout
|
| H A D | harness-selftest.c | 48 FIXTURE(fixture) { in FIXTURE() argument 52 FIXTURE_SETUP(fixture) { in FIXTURE_SETUP() argument 57 FIXTURE_TEARDOWN(fixture) { in FIXTURE_TEARDOWN() argument 61 TEST_F(fixture, pass) { in TEST_F() argument 69 TEST_F(fixture, fail) { in TEST_F() argument 76 TEST_F_TIMEOUT(fixture, timeout, 1) {
|
| /linux/tools/objtool/tests/ |
| H A D | lib.sh | 333 local fixture out 334 fixture="$FIXTURES_DIR/$1" 338 [ -f "$fixture" ] || fail "missing fixture $fixture" 344 $CC -c $FIXTURE_CFLAGS "$@" -o "$out" "$fixture" 2>"$workdir/cc.log" || 345 fail "$(basename "$fixture") does not build: $(tail -1 "$workdir/cc.log")" 351 local fixture="$1"; shift 359 build_one "$fixture" orig.o "$@" 360 build_one "$fixture" patched.o "$@" -DPATCHED 524 local fixture="$1" modname="$2"; shift 2 526 build_pair "$fixture" -DMODNAME="\"$modname\"" "$@"
|
| /linux/tools/objtool/Documentation/ |
| H A D | klp-write-tests.txt | 30 * an alternatives fixture whose empty entry pointed at its own end label rather 32 * a sympos fixture where symbol-table order and address order agreed, so 34 * a string fixture using a named ``char[]``, which never reached the 52 2. **Decide where it lives.** ``generic/`` unless the fixture needs 56 3. **Write the fixture** in the same directory's ``fixtures/``. Reuse an 58 than copying a fixture to change one line. 70 7. **Commit** the test and its fixture together, alone. One test per commit. 73 Writing the fixture 79 Every fixture needs a ``.modinfo`` name, because klp diff reads the object's 89 The patched build is selected with ``-DPATCHED``. For a fixture with several [all …]
|
| H A D | klp-test-design.txt | 78 its input.** Compile a small freestanding fixture with the flags that 88 Each test compiles one fixture twice -- once plain, once with ``-DPATCHED`` -- 129 architecture fixture shadow a generic one: an architecture-specific test 168 which becomes permanent is a fixture that has stopped testing anything.
|
| /linux/tools/testing/selftests/hid/tests/ |
| H A D | conftest.py | 18 @pytest.fixture(autouse=True) 33 @pytest.fixture(autouse=True, scope="session") 39 @pytest.fixture(autouse=True, scope="session") 44 @pytest.fixture(autouse=True, scope="session")
|
| H A D | base.py | 246 @pytest.fixture() 311 @pytest.fixture() 319 @pytest.fixture(autouse=True) 350 @pytest.fixture(autouse=True)
|
| H A D | test_usb_crash.py | 81 @pytest.fixture()
|
| H A D | test_gamepad.py | 24 @pytest.fixture(autouse=True)
|
| H A D | test_sony.py | 228 @pytest.fixture(autouse=True)
|
| H A D | test_wacom_generic.py | 759 @pytest.fixture(
|
| /linux/tools/testing/selftests/ |
| H A D | kselftest_harness.h | 194 .fixture = &_fixture_global, \ 478 object->fixture = &_##fixture_name##_fixture_object; \ 863 struct __fixture_metadata *fixture; member 883 .fixture = &_##fixture_name##_fixture_object, \ 922 struct __fixture_metadata *fixture; member 954 __LIST_APPEND(t->fixture->tests, t); in __register_test()
|
| /linux/scripts/kconfig/tests/ |
| H A D | conftest.py | 9 This provides fixture functions commonly used from test files. 320 @pytest.fixture(autouse=True) 326 @pytest.fixture(scope="module")
|