| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/tests/ |
| H A D | amdgpu_dm_helpers_test.c | 731 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 D | amdgpu_dm_connector_test.c | 2522 struct dm_cacp_fixture *fixture, in dm_test_cacp_caps_lcd_panel() 2526 fixture->adev = kunit_kzalloc(test, sizeof(*fixture->adev), GFP_KERNEL); 2527 fixture->aconnector = kunit_kzalloc(test, sizeof(*fixture->aconnector), 2529 fixture->link = kunit_kzalloc(test, sizeof(*fixture->link), GFP_KERNEL); 2530 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, fixture->adev); 2531 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, fixture->aconnector); 2532 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, fixture 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 2572 struct dm_panel_type_fixture fixture = {}; dm_test_set_panel_type_vsdb_oled() local 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/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/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) { 82 FIXTURE(fixture_parent) { in FIXTURE() function 101 FIXTURE(fixture_setup_failure) { in FIXTURE() function
|
| /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/ |
| H A D | kselftest_harness.h | 32 * FIXTURE(my_fixture) { 194 .fixture = &_fixture_global, \ 214 * Almost always, you want just FIXTURE() instead (see below). 215 * This call may be used when the type of the fixture data 222 * FIXTURE() - Called once per fixture to setup the data and 225 * @fixture_name: fixture name 229 * FIXTURE(fixture_name) { 237 #define FIXTURE(fixture_name) \ macro 249 * FIXTURE_SETUP() - Prepares the setup function for the fixture. 252 * @fixture_name: fixture name [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/tools/objtool/tests/ |
| H A D | lib.sh | 3 # Helpers for the objtool klp tests. A test builds a fixture twice, as the 137 # What every fixture is built with. These describe the kernel a fixture stands 175 # and one which becomes permanent is a fixture that quietly 330 # build_one <fixture.c> <output object> [cflags...] 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")" 348 # build_pair <fixture.c> [cflags...] [all …]
|
| /linux/tools/objtool/tests/generic/ |
| H A D | test-new-data.sh | 16 fail "fixture put klp_new_data in the original; nothing new to carry" 18 fail "compiler did not emit klp_new_data; the fixture tests nothing" 20 fail "target() does not reference klp_new_data; the fixture tests nothing"
|
| H A D | test-init-reference.sh | 13 # init symbol. The fixture makes init_only volatile so the read cannot be 16 # than as a fixture which stopped posing the question. 22 fail "patched object has no reference into .init.data; the fixture tests nothing"
|
| H A D | test-module-object.sh | 15 # The fixture has to have built as a module for any of this to mean anything. 17 fail "fixture has no .modinfo"
|
| H A D | test-function-removal.sh | 20 fail "fixture has no going_away in the original" 22 fail "fixture still has going_away in the patched object"
|
| H A D | test-local-vs-export.sh | 17 # The static the fixture uses. Compilers mangle statics variously -- gcc says 23 fail "fixture produced no local 'counter' symbol"
|
| H A D | test-post-link.sh | 16 # fixture's premise is that some local of that shape exists, not that a symbol 20 [ -n "$local_sym" ] || fail "fixture produced no local 'counter' symbol"
|
| H A D | test-checksum-position.sh | 15 # touching a byte of either. See the fixture for why it is done that way. 27 # The fixture is only meaningful if the displacement target's calls encode
|
| H A D | test-sympos-vmlinux.sh | 17 # The fixture is arranged so the two answers differ: the static that comes 36 fail "fixture did not produce two dup_counter symbols"
|
| /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 | test_usb_crash.py | 75 # conftest.py is generating the following fixture: 77 # @pytest.fixture(params=[('modulename', 1, 2)]) 81 @pytest.fixture() 100 The test is empty as the fixture `check_taint` is doing the job (and
|
| H A D | base.py | 246 @pytest.fixture() 311 @pytest.fixture() 319 @pytest.fixture(autouse=True) 350 @pytest.fixture(autouse=True)
|
| /linux/tools/testing/selftests/pci_endpoint/ |
| H A D | pci_endpoint_test.c | 34 FIXTURE(pci_ep_bar) in FIXTURE() function 96 FIXTURE(pci_ep_basic) in TEST_F() 171 FIXTURE(pci_ep_data_transfer) in FIXTURE_VARIANT_ADD() 260 FIXTURE(pcie_ep_doorbell) in TEST_F() 73 FIXTURE(pci_ep_basic) FIXTURE() function 148 FIXTURE(pci_ep_data_transfer) FIXTURE() function 237 FIXTURE(pcie_ep_doorbell) FIXTURE() function
|
| /linux/tools/testing/selftests/coredump/ |
| H A D | coredump_test.h | 11 /* Coredump fixture */ 12 FIXTURE(coredump) in FIXTURE() function
|
| /linux/tools/testing/selftests/net/ |
| H A D | getsockopt_iter.c | 5 * Each fixture targets one converted protocol and pins down the 61 FIXTURE(netlink) in FIXTURE() function 181 FIXTURE(vsock) in FIXTURE() function 327 FIXTURE(raw) in FIXTURE() function 414 FIXTURE(rawv6) in FIXTURE() function 497 FIXTURE(tls) in FIXTURE() function
|
| /linux/tools/testing/selftests/pidfd/ |
| H A D | pidfd_getfd_test.c | 61 * The fixture setup is completed at this point. The tests will run. in __child() 66 * side has closed the sk. This occurs during fixture teardown time, in __child() 117 FIXTURE(child) in FIXTURE() function
|