Home
last modified time | relevance | path

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

/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/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 teardown_fixture(struct fixture *fix) in teardown_fixture()
50 struct fixture *fix = init_fixture(); in test_set_global_vars_succeeds()
105 struct fixture *fix = init_fixture(); in test_set_global_vars_from_file_succeeds()
131 struct fixture *fix = init_fixture(); in test_set_global_vars_out_of_range()
146 struct fixture *fix = init_fixture(); in test_unsupported_ptr_array_type()
161 struct fixture *fix = init_fixture(); in test_array_out_of_bounds()
176 struct fixture *fix = init_fixture(); in test_array_index_not_found()
[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, \
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
249 * FIXTURE_SETUP() - Prepares the setup function for the fixture.
252 * @fixture_name: fixture name
258 * Populates the required "setup" function for a fixture. An instance of the
263 * of any dependent fixture tests.
278 * @fixture_name: fixture name
284 * Populates the required "teardown" function for a fixture
863 struct __fixture_metadata *fixture; global() member
922 struct __fixture_metadata *fixture; global() member
[all...]
/linux/scripts/kconfig/tests/
H A Dconftest.py311 @pytest.fixture(scope="module")
/linux/drivers/usb/misc/
H A DKconfig243 Say Y here if you want to support the special test fixture device
246 When the test fixture is connected, it can enumerate as one of several
248 the downstream port to which the test fixture is attached.