Home
last modified time | relevance | path

Searched refs:tests (Results 1 – 25 of 435) sorted by relevance

12345678910>>...18

/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/
Darg_parsing.c9 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()
38 ASSERT_EQ(set.tests[0].subtest_cnt, 0, "subtest filters count"); in test_parse_test_list()
39 ASSERT_OK(strcmp("arg_parsing", set.tests[0].name), "subtest name"); in test_parse_test_list()
46 if (!ASSERT_OK_PTR(set.tests, "test filters initialized")) in test_parse_test_list()
[all …]
Dobj_name.c10 } 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()
37 memcpy(attr.prog_name, tests[i].name, ncopy); 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()
59 memcpy(attr.map_name, tests[i].name, ncopy); in test_obj_name()
61 CHECK((tests[i].success && fd < 0) || in test_obj_name()
[all …]
Dglobal_data.c18 } tests[] = { in test_global_data_number() local
32 for (i = 0; i < ARRAY_SIZE(tests); i++) { in test_global_data_number()
33 err = bpf_map_lookup_elem(map_fd, &tests[i].key, &num); 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()
62 err = bpf_map_lookup_elem(map_fd, &tests[i].key, str); in test_global_data_string()
63 CHECK(err || memcmp(str, tests[i].str, sizeof(str)), in test_global_data_string()
64 tests[i].name, "err %d result \'%s\' expected \'%s\'\n", in test_global_data_string()
[all …]
/Linux-v6.1/tools/testing/selftests/bpf/
Dtesting_helpers.c78 struct test_filter *tmp, *tests = NULL; in parse_test_list() local
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()
96 tests[cnt].subtests = NULL; in parse_test_list()
107 int subtest_cnt = tests[cnt].subtest_cnt; in parse_test_list()
111 tmp_subtests = realloc(tests[cnt].subtests, in parse_test_list()
116 tests[cnt].subtests = tmp_subtests; in parse_test_list()
118 tests[cnt].subtests[subtest_cnt] = in parse_test_list()
120 if (!tests[cnt].subtests[subtest_cnt]) in parse_test_list()
[all …]
/Linux-v6.1/fs/btrfs/
DMakefile42 btrfs-$(CONFIG_BTRFS_FS_RUN_SANITY_TESTS) += tests/free-space-tests.o \
43 tests/extent-buffer-tests.o tests/btrfs-tests.o \
44 tests/extent-io-tests.o tests/inode-tests.o tests/qgroup-tests.o \
45 tests/free-space-tree-tests.o tests/extent-map-tests.o
/Linux-v6.1/drivers/of/unittest-data/
Dtestcases_common.dtsi14 #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"
/Linux-v6.1/tools/perf/tests/
DBuild71 $(OUTPUT)tests/llvm-src-base.c: tests/bpf-script-example.c tests/Build
73 $(Q)echo '#include <tests/llvm.h>' > $@
78 $(OUTPUT)tests/llvm-src-kbuild.c: tests/bpf-script-test-kbuild.c tests/Build
80 $(Q)echo '#include <tests/llvm.h>' > $@
85 $(OUTPUT)tests/llvm-src-prologue.c: tests/bpf-script-test-prologue.c tests/Build
87 $(Q)echo '#include <tests/llvm.h>' > $@
92 $(OUTPUT)tests/llvm-src-relocation.c: tests/bpf-script-test-relocation.c tests/Build
94 $(Q)echo '#include <tests/llvm.h>' > $@
/Linux-v6.1/net/mptcp/
Dcrypto_test.c15 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-v6.1/tools/perf/Documentation/
Dperf-test.txt6 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-v6.1/tools/lib/perf/tests/
DBuild1 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-v6.1/Documentation/dev-tools/kunit/
Drun_manual.rst8 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
Drunning_tips.rst25 Running a subset of tests
28 ``kunit.py run`` accepts an optional glob argument to filter tests. The format
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:
45 We're paying the cost of building more tests than we need this way, but it's
49 However, if we wanted to define a set of tests in a less ad hoc way, the next
52 Defining a set of tests
56 ``--kunitconfig`` flag. So if you have a set of tests that you want to run on a
60 E.g. kunit has one for its tests:
82 files to make it possible to have a top-level config run tests from all
[all …]
Dstyle.rst7 To make finding, writing, and using KUnit tests as simple as possible, it is
9 below. While it is possible to write KUnit tests which do not follow these rules,
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
23 To make tests easy to find, they are grouped into suites and subsystems. A test
24 suite is a group of tests which test a related area of the kernel. A subsystem
36 unsure, follow the conventions set by tests in similar areas.
44 unless we are actually testing other tests or the kunit framework itself. For
73 simple, consistent way for humans to find and run tests. This may change
[all …]
Drun_wrapper.rst4 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.
45 tests we want to run independently, or if we want to use pre-defined
64 If we want to run a specific set of tests (rather than those listed
70 specific set of tests. This file contains the regular Kernel configs
72 contains any other config options required by the tests (For example:
73 dependencies for features under tests, configs that enable/disable
[all …]
Dindex.rst28 unit tests within the Linux kernel. Using KUnit, you can define groups
29 of test cases called test suites. The tests either run on kernel boot
36 KUnit tests are part of the kernel, written in the C (programming)
39 completion, KUnit can run around 100 tests in less than 10 seconds.
48 that configures the Linux kernel, runs KUnit tests under QEMU or UML
56 - Provides a framework for writing unit tests.
57 - Runs tests on any kernel architecture.
69 A unit test tests a single unit of code in isolation. A unit test is the finest
78 To write good unit tests, there is a simple but powerful pattern:
98 Read also :ref:`kinds-of-tests`.
[all …]
/Linux-v6.1/drivers/net/ethernet/sfc/
Dselftest.c99 static int efx_test_phy_alive(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_phy_alive() argument
104 tests->phy_alive = rc ? -1 : 1; in efx_test_phy_alive()
109 static int efx_test_nvram(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_nvram() argument
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
222 tests->eventq_dma[channel->channel] = dma_seen ? 1 : -1; in efx_test_eventq_irq()
[all …]
/Linux-v6.1/drivers/net/ethernet/sfc/siena/
Dselftest.c99 static int efx_test_phy_alive(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_phy_alive() argument
104 tests->phy_alive = rc ? -1 : 1; in efx_test_phy_alive()
109 static int efx_test_nvram(struct efx_nic *efx, struct efx_self_tests *tests) in efx_test_nvram() argument
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
222 tests->eventq_dma[channel->channel] = dma_seen ? 1 : -1; in efx_test_eventq_irq()
[all …]
/Linux-v6.1/drivers/net/ethernet/sfc/falcon/
Dselftest.c96 static int ef4_test_phy_alive(struct ef4_nic *efx, struct ef4_self_tests *tests) in ef4_test_phy_alive() argument
102 tests->phy_alive = rc ? -1 : 1; in ef4_test_phy_alive()
108 static int ef4_test_nvram(struct ef4_nic *efx, struct ef4_self_tests *tests) in ef4_test_nvram() argument
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
221 tests->eventq_dma[channel->channel] = dma_seen ? 1 : -1; in ef4_test_eventq_irq()
[all …]
/Linux-v6.1/lib/kunit/
DKconfig6 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-v6.1/tools/memory-model/scripts/
DREADME10 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-v6.1/Documentation/dev-tools/
Dkselftest.rst5 The kernel contains a set of "self tests" under the tools/testing/selftests/
6 directory. These are intended to be small tests to exercise individual code
10 Kselftest from mainline can be run on older stable kernels. Running tests
19 write new tests using the framework on Kselftest wiki:
23 On some systems, hot-plug tests could hang forever waiting for cpu and
25 to run the full range of hot-plug tests. In default mode, hot-plug tests run
34 Running the selftests (hotplug tests are run in limited mode)
37 To build the tests::
41 To run the tests::
45 To build and run the tests with a single command, use::
[all …]
/Linux-v6.1/tools/memory-model/
DREADME12 the state space of small litmus tests.
67 explore the state space of small litmus tests. Documentation describing
69 tests is available in tools/memory-model/Documentation/litmus-tests.txt.
71 Example litmus tests may be found in the Linux-kernel source tree:
73 tools/memory-model/litmus-tests/
74 Documentation/litmus-tests/
76 Several thousand more example litmus tests are available here:
82 Documentation describing litmus tests and now to use them may be found
85 tools/memory-model/Documentation/litmus-tests.txt
93 $ herd7 -conf linux-kernel.cfg litmus-tests/SB+fencembonceonces.litmus
[all …]
/Linux-v6.1/tools/testing/vsock/
DREADME3 These tests exercise net/vmw_vsock/ host<->guest sockets for VMware, KVM, and
6 The following tests are available:
12 to running tests:
14 1. Build the kernel, make headers_install, and build these tests.
15 2. Install the kernel and tests on the host.
16 3. Install the kernel and tests inside the guest.
/Linux-v6.1/tools/testing/selftests/kvm/s390x/
Dtprot.c78 } tests[] = { variable
142 enum stage stage = tests[*i].stage; in perform_next_stage()
146 for (; tests[*i].stage == stage; (*i)++) { in perform_next_stage()
154 skip = tests[*i].addr < (void *)4096 && in perform_next_stage()
155 tests[*i].expected != TRANSL_UNAVAIL && in perform_next_stage()
158 result = test_protection(tests[*i].addr, tests[*i].key); in perform_next_stage()
159 GUEST_ASSERT_2(result == tests[*i].expected, *i, result); in perform_next_stage()
/Linux-v6.1/crypto/async_tx/
Draid6test.c152 static int test(int disks, int *tests) in test() argument
184 (*tests)++; in test()
195 int tests = 0; in raid6_test() local
209 err += test(4, &tests); in raid6_test()
211 err += test(5, &tests); in raid6_test()
216 err += test(11, &tests); in raid6_test()
217 err += test(12, &tests); in raid6_test()
225 err += test(24, &tests); in raid6_test()
227 err += test(NDISKS, &tests); in raid6_test()
231 tests, err, err == 1 ? "" : "s"); in raid6_test()

12345678910>>...18