Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/amd/display/amdgpu_dm/tests/
H A Damdgpu_dm_helpers_test.c731 struct dm_test_vbios_edid *fixture; in dm_test_read_vbios_edid_invalid_fake_edid()
733 fixture = container_of(bios, struct dm_test_vbios_edid, bios); in dm_test_read_vbios_edid_invalid_fake_edid()
734 if (fixture->result != BP_RESULT_OK) in dm_test_read_vbios_edid_invalid_fake_edid()
735 return fixture->result; in dm_test_read_vbios_edid_invalid_fake_edid()
737 info->fake_edid = fixture->fake_edid;
738 info->fake_edid_size = fixture->fake_edid_size;
739 info->panel_width_mm = fixture->width_mm;
740 info->panel_height_mm = fixture->height_mm;
754 struct dm_test_vbios_edid *fixture; in dm_test_read_vbios_edid_valid()
764 fixture in dm_test_read_vbios_edid_valid()
596 struct dm_test_vbios_edid *fixture; dm_test_get_embedded_panel_info() local
619 struct dm_test_vbios_edid *fixture; dm_test_setup_vbios_link() local
651 struct dm_test_vbios_edid *fixture; dm_test_read_vbios_edid_non_embedded() local
669 struct dm_test_vbios_edid *fixture; dm_test_read_vbios_edid_missing_callback() local
686 struct dm_test_vbios_edid *fixture; dm_test_read_vbios_edid_callback_error() local
703 struct dm_test_vbios_edid *fixture; dm_test_read_vbios_edid_missing_fake_edid() local
721 struct dm_test_vbios_edid *fixture; dm_test_read_vbios_edid_invalid_fake_edid() local
743 struct dm_test_vbios_edid *fixture; dm_test_read_vbios_edid_valid() local
1339 struct dm_test_synaptics_aux *fixture; dm_test_synaptics_aux_transfer() local
1437 struct dm_test_synaptics_aux *fixture; dm_test_alloc_synaptics_aux_with_dev() local
1465 dm_test_expect_synaptics_commands(struct kunit * test,struct dm_test_synaptics_aux * fixture,const u8 * expected_commands,unsigned int expected_count) dm_test_expect_synaptics_commands() argument
1494 struct dm_test_synaptics_aux *fixture; dm_test_execute_synaptics_rc_command_write_success() local
1516 struct dm_test_synaptics_aux *fixture; dm_test_execute_synaptics_rc_command_read_success() local
1539 struct dm_test_synaptics_aux *fixture; dm_test_execute_synaptics_rc_command_write_fail() local
1560 struct dm_test_synaptics_aux *fixture; dm_test_apply_synaptics_fifo_reset_wa_full() local
1577 struct dm_test_synaptics_aux *fixture; dm_test_apply_synaptics_fifo_reset_wa_first_fail() local
1595 struct dm_test_synaptics_aux *fixture; dm_test_write_dsc_enable_synaptics() local
1670 struct dm_test_synaptics_aux *fixture; dm_test_dp_write_dsc_enable_routes_synaptics() local
2494 struct dm_test_synaptics_aux *fixture; dm_test_mst_enable_stream_features_writes_downspread() local
2700 struct dm_test_mccs_fixture fixture; dm_test_alloc_mccs_fixture() local
2728 struct dm_test_mccs_fixture fixture = dm_test_alloc_mccs_fixture(test); dm_test_read_mccs_caps_i2c_vcp_request() local
2761 struct dm_test_mccs_fixture fixture = dm_test_alloc_mccs_fixture(test); dm_test_read_mccs_caps_hdmi_vcp_request() local
2785 struct dm_test_mccs_fixture fixture = dm_test_alloc_mccs_fixture(test); dm_test_read_mccs_caps_legacy_pcon_vcp_request() local
2810 struct dm_test_mccs_fixture fixture = dm_test_alloc_mccs_fixture(test); dm_test_read_mccs_caps_i2c_failure() local
2903 struct dm_test_mccs_fixture fixture = dm_test_alloc_mccs_fixture(test); dm_test_mccs_vcp_set_i2c_packet() local
2929 struct dm_test_mccs_fixture fixture = dm_test_alloc_mccs_fixture(test); dm_test_mccs_vcp_set_i2c_failure() local
3624 struct dm_test_synaptics_aux *fixture; dm_test_dp_write_dsc_enable_sst() local
[all...]
H A Damdgpu_dm_connector_test.c2567 struct dm_cacp_fixture *fixture,
2571 fixture->adev = kunit_kzalloc(test, sizeof(*fixture->adev), GFP_KERNEL); in dm_test_set_panel_type_vsdb_oled()
2572 fixture->aconnector = kunit_kzalloc(test, sizeof(*fixture->aconnector), in dm_test_set_panel_type_vsdb_oled() local
2574 fixture->link = kunit_kzalloc(test, sizeof(*fixture->link), GFP_KERNEL); in dm_test_set_panel_type_vsdb_oled()
2575 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, fixture->adev); in dm_test_set_panel_type_vsdb_oled()
2576 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, fixture->aconnector); in dm_test_set_panel_type_vsdb_oled()
2577 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, fixture in dm_test_set_panel_type_vsdb_oled()
2398 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
2425 struct dm_cacp_fixture fixture = {}; dm_test_cacp_caps_unsupported_ip() local
2443 struct dm_cacp_fixture fixture = {}; dm_test_cacp_caps_excluded_ip_316() local
2461 struct dm_cacp_fixture fixture = {}; dm_test_cacp_caps_edp_oled_supported() local
2479 struct dm_cacp_fixture fixture = {}; dm_test_cacp_caps_lvds_oled_supported() local
2497 struct dm_cacp_fixture fixture = {}; dm_test_cacp_caps_non_edp_signal() local
2517 struct dm_cacp_fixture fixture = {}; dm_test_cacp_caps_lcd_panel() local
2538 setup_panel_type_fixture(struct kunit * test,struct dm_panel_type_fixture * fixture) setup_panel_type_fixture() argument
2590 struct dm_panel_type_fixture fixture = {}; dm_test_set_panel_type_vsdb_miniled() local
2608 struct dm_panel_type_fixture fixture = {}; dm_test_set_panel_type_dpcd_oled() local
2625 struct dm_panel_type_fixture fixture = {}; dm_test_set_panel_type_dpcd_miniled() local
2645 struct dm_panel_type_fixture fixture = {}; dm_test_set_panel_type_did_oled() local
2666 struct dm_panel_type_fixture fixture = {}; dm_test_set_panel_type_did_lcd() local
2687 struct dm_panel_type_fixture fixture = {}; dm_test_set_panel_type_vendor_lum_heuristic() local
2714 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/objtool/tests/
H A Dlib.sh333 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 Dklp-write-tests.txt30 * 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 Dklp-test-design.txt78 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 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.py9 This provides fixture functions commonly used from test files.
320 @pytest.fixture(autouse=True)
326 @pytest.fixture(scope="module")