Home
last modified time | relevance | path

Searched refs:fixture (Results 1 – 14 of 14) sorted by relevance

/linux/drivers/gpu/drm/amd/display/amdgpu_dm/tests/
H A Damdgpu_dm_helpers_test.c596 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 Damdgpu_dm_connector_test.c2398 struct dm_cacp_fixture *fixture, in setup_panel_type_fixture()
2402 fixture->adev = kunit_kzalloc(test, sizeof(*fixture->adev), GFP_KERNEL); in setup_panel_type_fixture()
2403 fixture->aconnector = kunit_kzalloc(test, sizeof(*fixture->aconnector), in setup_panel_type_fixture()
2405 fixture->link = kunit_kzalloc(test, sizeof(*fixture->link), GFP_KERNEL); in setup_panel_type_fixture()
2406 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, fixture->adev); in setup_panel_type_fixture()
2407 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, fixture->aconnector); in setup_panel_type_fixture()
2408 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, fixture in setup_panel_type_fixture()
2248 setup_cacp_fixture(struct kunit * test,struct dm_cacp_fixture * fixture,enum signal_type signal,enum dc_panel_type panel_type) setup_cacp_fixture() argument
2275 struct dm_cacp_fixture fixture = {}; dm_test_cacp_caps_unsupported_ip() local
2293 struct dm_cacp_fixture fixture = {}; dm_test_cacp_caps_excluded_ip_316() local
2311 struct dm_cacp_fixture fixture = {}; dm_test_cacp_caps_edp_oled_supported() local
2329 struct dm_cacp_fixture fixture = {}; dm_test_cacp_caps_lvds_oled_supported() local
2347 struct dm_cacp_fixture fixture = {}; dm_test_cacp_caps_non_edp_signal() local
2367 struct dm_cacp_fixture fixture = {}; dm_test_cacp_caps_lcd_panel() local
2388 setup_panel_type_fixture(struct kunit * test,struct dm_panel_type_fixture * fixture) setup_panel_type_fixture() argument
2422 struct dm_panel_type_fixture fixture = {}; dm_test_set_panel_type_vsdb_oled() local
2440 struct dm_panel_type_fixture fixture = {}; dm_test_set_panel_type_vsdb_miniled() local
2458 struct dm_panel_type_fixture fixture = {}; dm_test_set_panel_type_dpcd_oled() local
2475 struct dm_panel_type_fixture fixture = {}; dm_test_set_panel_type_dpcd_miniled() local
2495 struct dm_panel_type_fixture fixture = {}; dm_test_set_panel_type_did_oled() local
2516 struct dm_panel_type_fixture fixture = {}; dm_test_set_panel_type_did_lcd() local
2537 struct dm_panel_type_fixture fixture = {}; dm_test_set_panel_type_vendor_lum_heuristic() local
2564 struct dm_panel_type_fixture fixture = {}; dm_test_set_panel_type_defaults_to_lcd() local
[all...]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtest_veristat.c13 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 Dtrace_selftest.c780 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 Dharness-selftest.expected60 # 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 Dharness-selftest.c48 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/testing/selftests/hid/tests/
H A Dconftest.py18 @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 Dbase.py246 @pytest.fixture()
311 @pytest.fixture()
319 @pytest.fixture(autouse=True)
350 @pytest.fixture(autouse=True)
H A Dtest_usb_crash.py81 @pytest.fixture()
H A Dtest_gamepad.py24 @pytest.fixture(autouse=True)
H A Dtest_sony.py228 @pytest.fixture(autouse=True)
H A Dtest_wacom_generic.py759 @pytest.fixture(
/linux/tools/testing/selftests/
H A Dkselftest_harness.h194 .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 Dconftest.py315 @pytest.fixture(scope="module")