/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A D | arg_parsing.c | 9 set->tests = NULL; in init_test_filter_set() 17 for (j = 0; j < set->tests[i].subtest_cnt; j++) in free_test_filter_set() 18 free((void *)set->tests[i].subtests[j]); in free_test_filter_set() 19 free(set->tests[i].subtests); in free_test_filter_set() 20 free(set->tests[i].name); in free_test_filter_set() 23 free(set->tests); in free_test_filter_set() 36 if (!ASSERT_OK_PTR(set.tests, "test filters initialized")) in test_parse_test_list() 46 if (!ASSERT_OK_PTR(set.tests, "test filters initialized")) in test_parse_test_list() 60 if (!ASSERT_OK_PTR(set.tests, "test filters initialized")) in test_parse_test_list() 66 ASSERT_OK(strcmp("arg_parsing", set.tests[0].subtests[0]), in test_parse_test_list() [all …]
|
A D | obj_name.c | 10 } tests[] = { in test_obj_name() local 23 for (i = 0; i < ARRAY_SIZE(tests); i++) { in test_obj_name() 24 size_t name_len = strlen(tests[i].name) + 1; in test_obj_name() 40 CHECK((tests[i].success && fd < 0) || in test_obj_name() 41 (!tests[i].success && fd >= 0) || in test_obj_name() 42 (!tests[i].success && errno != tests[i].expected_errno), in test_obj_name() 45 fd, tests[i].success, errno, tests[i].expected_errno); in test_obj_name() 61 CHECK((tests[i].success && fd < 0) || in test_obj_name() 62 (!tests[i].success && fd >= 0) || in test_obj_name() 63 (!tests[i].success && errno != tests[i].expected_errno), in test_obj_name() [all …]
|
A D | global_data.c | 18 } tests[] = { in test_global_data_number() local 32 for (i = 0; i < ARRAY_SIZE(tests); i++) { in test_global_data_number() 34 CHECK(err || num != tests[i].num, tests[i].name, in test_global_data_number() 36 err, num, tests[i].num); in test_global_data_number() 53 } tests[] = { in test_global_data_string() local 61 for (i = 0; i < ARRAY_SIZE(tests); i++) { in test_global_data_string() 63 CHECK(err || memcmp(str, tests[i].str, sizeof(str)), in test_global_data_string() 65 err, str, tests[i].str); in test_global_data_string() 88 } tests[] = { in test_global_data_struct() local 95 for (i = 0; i < ARRAY_SIZE(tests); i++) { in test_global_data_struct() [all …]
|
A D | empty_skb.c | 33 } tests[] = { in test_empty_skb() local 114 for (i = 0; i < ARRAY_SIZE(tests); i++) { in test_empty_skb() 119 tattr.data_in = tests[i].data_in; in test_empty_skb() 120 tattr.data_size_in = tests[i].data_size_in; in test_empty_skb() 123 bpf_obj->bss->ifindex = *tests[i].ifindex; in test_empty_skb() 126 sprintf(buf, "err: %s [%s]", tests[i].msg, bpf_program__name(prog)); in test_empty_skb() 128 if (at_tc && tests[i].success_on_tc) in test_empty_skb() 131 ASSERT_EQ(err, tests[i].err, buf); in test_empty_skb() 132 sprintf(buf, "ret: %s [%s]", tests[i].msg, bpf_program__name(prog)); in test_empty_skb() 133 if (at_tc && tests[i].success_on_tc) in test_empty_skb() [all …]
|
A D | fib_lookup.c | 37 static const struct fib_lookup_test tests[] = { variable 156 for (i = 0; i < ARRAY_SIZE(tests); i++) { in test_fib_lookup() 157 printf("Testing %s\n", tests[i].desc); in test_fib_lookup() 159 if (set_lookup_params(fib_params, tests[i].daddr)) in test_fib_lookup() 163 tests[i].lookup_flags; in test_fib_lookup() 169 ASSERT_EQ(tests[i].expected_ret, skel->bss->fib_lookup_ret, in test_fib_lookup() 172 ret = memcmp(tests[i].dmac, fib_params->dmac, sizeof(tests[i].dmac)); in test_fib_lookup() 176 mac_str(expected, tests[i].dmac); in test_fib_lookup()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/ |
A D | testing_helpers.c | 90 tmp = realloc(tests, sizeof(*tests) * (cnt + 1)); in parse_test_list() 93 tests = tmp; in parse_test_list() 95 tests[cnt].subtest_cnt = 0; in parse_test_list() 126 tests[cnt].subtest_cnt++; in parse_test_list() 130 if (!tests[cnt].name) in parse_test_list() 137 tmp = realloc(set->tests, sizeof(*tests) * (cnt + set->cnt)); in parse_test_list() 141 memcpy(tmp + set->cnt, tests, sizeof(*tests) * cnt); in parse_test_list() 142 set->tests = tmp; in parse_test_list() 145 free(tests); in parse_test_list() 154 free(tests[i].name); in parse_test_list() [all …]
|
/linux-6.3-rc2/fs/btrfs/ |
A D | Makefile | 44 btrfs-$(CONFIG_BTRFS_FS_RUN_SANITY_TESTS) += tests/free-space-tests.o \ 45 tests/extent-buffer-tests.o tests/btrfs-tests.o \ 46 tests/extent-io-tests.o tests/inode-tests.o tests/qgroup-tests.o \ 47 tests/free-space-tree-tests.o tests/extent-map-tests.o
|
/linux-6.3-rc2/drivers/of/unittest-data/ |
A D | testcases_common.dtsi | 14 #include "tests-phandle.dtsi" 15 #include "tests-interrupts.dtsi" 16 #include "tests-match.dtsi" 17 #include "tests-address.dtsi" 18 #include "tests-platform.dtsi" 19 #include "tests-overlay.dtsi" 20 #include "tests-lifecycle.dtsi"
|
/linux-6.3-rc2/tools/testing/selftests/mm/ |
A D | run_vmtests.sh | 16 The default behavior is to run all tests. 22 tests for mmap(2) 24 tests for gup using gup_test interface 26 tests for userfaultfd(2) 30 tests for mlock(2) 32 tests for mremap(2) 34 tests for very large virtual address space 36 vmalloc smoke tests 38 hmm smoke tests 48 ksm tests that require >=2 NUMA nodes [all …]
|
/linux-6.3-rc2/net/mptcp/ |
A D | crypto_test.c | 15 static struct test_case tests[] = { variable 41 for (i = 0; i < ARRAY_SIZE(tests); ++i) { in mptcp_crypto_test_basic() 43 key1 = be64_to_cpu(*((__be64 *)&tests[i].key[0])); in mptcp_crypto_test_basic() 44 key2 = be64_to_cpu(*((__be64 *)&tests[i].key[8])); in mptcp_crypto_test_basic() 45 nonce1 = be32_to_cpu(*((__be32 *)&tests[i].msg[0])); in mptcp_crypto_test_basic() 46 nonce2 = be32_to_cpu(*((__be32 *)&tests[i].msg[4])); in mptcp_crypto_test_basic() 56 KUNIT_EXPECT_STREQ(test, &hmac_hex[0], tests[i].result); in mptcp_crypto_test_basic()
|
/linux-6.3-rc2/tools/perf/tests/ |
A D | Build | 73 $(OUTPUT)tests/llvm-src-base.c: tests/bpf-script-example.c tests/Build 75 $(Q)echo '#include <tests/llvm.h>' > $@ 80 $(OUTPUT)tests/llvm-src-kbuild.c: tests/bpf-script-test-kbuild.c tests/Build 82 $(Q)echo '#include <tests/llvm.h>' > $@ 87 $(OUTPUT)tests/llvm-src-prologue.c: tests/bpf-script-test-prologue.c tests/Build 89 $(Q)echo '#include <tests/llvm.h>' > $@ 94 $(OUTPUT)tests/llvm-src-relocation.c: tests/bpf-script-test-relocation.c tests/Build 96 $(Q)echo '#include <tests/llvm.h>' > $@
|
/linux-6.3-rc2/tools/perf/Documentation/ |
A D | perf-test.txt | 6 perf-test - Runs sanity tests. 15 This command does assorted sanity tests, initially through linked routines but 16 also will look for a directory with more tests in the form of scripts. 18 To get a list of available tests use 'perf test list', specifying a test name 19 fragment will show all tests that have it. 21 To run just specific tests, inform test name fragments or the numbers obtained 36 Do not fork child for each test, run all tests within single process.
|
/linux-6.3-rc2/tools/lib/perf/tests/ |
A D | Build | 1 tests-y += main.o 2 tests-y += test-evsel.o 3 tests-y += test-evlist.o 4 tests-y += test-cpumap.o 5 tests-y += test-threadmap.o
|
/linux-6.3-rc2/Documentation/dev-tools/kunit/ |
A D | run_manual.rst | 8 with other systems, or run tests on real hardware), we can 12 possible that tests may reduce the stability or security of 18 KUnit tests can run without kunit_tool. This can be useful, if: 26 tests can also be built by enabling their config options in our 27 ``.config``. KUnit tests usually (but don't always) have config options 28 ending in ``_KUNIT_TEST``. Most tests can either be built as a module, 34 automatically enable all tests with satisfied dependencies. This is 39 the tests. If the tests are built-in, they will run automatically on the 43 If the tests are built as modules, they will run when the module is
|
A D | running_tips.rst | 25 Running a subset of tests 31 Say that we wanted to run the sysctl tests, we could do so via: 38 We can filter down to just the "write" tests via: 52 Defining a set of tests 60 E.g. kunit has one for its tests: 143 Running tests manually 155 Running built-in tests 158 When setting tests to ``=y``, the tests will run as part of boot and print 181 Running tests as modules 207 work and thus some tests might break. Ideally tests would specify they [all …]
|
A D | style.rst | 7 To make finding, writing, and using KUnit tests as simple as possible, it is 10 they may break some tooling, may conflict with other tests, and may not be run 15 1. Porting tests to KUnit which are already known with an existing name. 16 2. Writing tests which would cause serious problems if automatically run. For 36 unsure, follow the conventions set by tests in similar areas. 89 subsystem (for example, both unit tests and integration tests), they should be 124 Individual tests consist of a single function which tests a constrained 169 be built as a module), Kconfig entries for tests should be tristate. 180 This builds unit tests for foo. 182 For more information on KUnit and unit tests in general, [all …]
|
A D | run_wrapper.rst | 4 Running tests with kunit_tool 7 We can either run KUnit tests using kunit_tool or can run tests 8 manually, and then use kunit_tool to parse the results. To run tests 13 tests, and formats the test results. 35 - ``--timeout`` sets a maximum amount of time for tests to run. 101 Configuring, building, and running tests 155 Filtering tests 160 example: if we only want to run KUnit resource tests, use: 170 Running tests on QEMU 173 kunit_tool supports running tests on qemu as well as [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/sfc/ |
A D | selftest.c | 104 tests->phy_alive = rc ? -1 : 1; in efx_test_phy_alive() 118 tests->nvram = rc ? -1 : 1; in efx_test_nvram() 132 struct efx_self_tests *tests) in efx_test_interrupts() argument 139 tests->interrupt = -1; in efx_test_interrupts() 145 tests->interrupt = 0; in efx_test_interrupts() 168 tests->interrupt = 1; in efx_test_interrupts() 174 struct efx_self_tests *tests) in efx_test_eventq_irq() argument 662 &tests->loopback[mode]); in efx_test_loopbacks() 699 rc = efx_test_phy_alive(efx, tests); in efx_selftest() 703 rc = efx_test_nvram(efx, tests); in efx_selftest() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/sfc/siena/ |
A D | selftest.c | 104 tests->phy_alive = rc ? -1 : 1; in efx_test_phy_alive() 118 tests->nvram = rc ? -1 : 1; in efx_test_nvram() 132 struct efx_self_tests *tests) in efx_test_interrupts() argument 139 tests->interrupt = -1; in efx_test_interrupts() 145 tests->interrupt = 0; in efx_test_interrupts() 168 tests->interrupt = 1; in efx_test_interrupts() 174 struct efx_self_tests *tests) in efx_test_eventq_irq() argument 662 &tests->loopback[mode]); in efx_test_loopbacks() 699 rc = efx_test_phy_alive(efx, tests); in efx_siena_selftest() 703 rc = efx_test_nvram(efx, tests); in efx_siena_selftest() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/sfc/falcon/ |
A D | selftest.c | 102 tests->phy_alive = rc ? -1 : 1; in ef4_test_phy_alive() 117 tests->nvram = rc ? -1 : 1; in ef4_test_nvram() 131 struct ef4_self_tests *tests) in ef4_test_interrupts() argument 138 tests->interrupt = -1; in ef4_test_interrupts() 144 tests->interrupt = 0; in ef4_test_interrupts() 167 tests->interrupt = 1; in ef4_test_interrupts() 173 struct ef4_self_tests *tests) in ef4_test_eventq_irq() argument 664 &tests->loopback[mode]); in ef4_test_loopbacks() 701 rc = ef4_test_phy_alive(efx, tests); in ef4_selftest() 705 rc = ef4_test_nvram(efx, tests); in ef4_selftest() [all …]
|
/linux-6.3-rc2/lib/kunit/ |
A D | Kconfig | 6 tristate "KUnit - Enable support for unit tests" 9 Enables support for kernel unit tests (KUnit), a lightweight unit 10 testing and mocking framework for the Linux kernel. These tests are 31 Enables the unit tests for the KUnit test framework. These tests test 32 the KUnit test framework itself; the tests are both written using 49 tristate "All KUnit tests with satisfied dependencies" 51 Enables all KUnit tests, if they can be enabled. 52 KUnit tests run during boot and output the results to the debug log 57 For more information on KUnit and unit tests in general please refer 67 tests will not execute unless kunit.enable=1 is passed to the
|
/linux-6.3-rc2/tools/memory-model/scripts/ |
A D | README | 10 Run all litmus tests in the litmus-tests directory, checking 16 Run all litmus tests in the https://github.com/paulmckrcu/litmus 23 Run all litmus tests having .litmus.out files from previous 33 Compare output from two different runs of the same litmus tests, 34 with the absolute pathnames of the tests to run provided one 40 Run all litmus tests having no more than the specified number 53 For all new or updated litmus tests having no more than the 64 Run the litmus tests whose absolute pathnames are provided one
|
/linux-6.3-rc2/Documentation/dev-tools/ |
A D | kselftest.rst | 25 to run the full range of hot-plug tests. In default mode, hot-plug tests run 37 To build the tests:: 41 To run the tests:: 82 single test to run, or a list of tests to run. 103 To run all tests but a single subsystem:: 107 You can specify multiple tests to skip:: 122 To build the hotplug tests:: 126 To run the hotplug tests:: 155 note some tests will require root privileges:: 194 Contributing new tests [all …]
|
/linux-6.3-rc2/tools/memory-model/ |
A D | README | 12 the state space of small litmus tests. 69 tests is available in tools/memory-model/Documentation/litmus-tests.txt. 73 tools/memory-model/litmus-tests/ 74 Documentation/litmus-tests/ 76 Several thousand more example litmus tests are available here: 85 tools/memory-model/Documentation/litmus-tests.txt 158 running LKMM litmus tests. 194 litmus-tests 199 By "representative", it means the one in the litmus-tests 205 2) orthogonal, there should be no two litmus tests [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/vc4/ |
A D | Makefile | 29 tests/vc4_mock.o \ 30 tests/vc4_mock_crtc.o \ 31 tests/vc4_mock_output.o \ 32 tests/vc4_mock_plane.o \ 33 tests/vc4_test_pv_muxing.o
|