Home
last modified time | relevance | path

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

1234

/tools/testing/selftests/bpf/prog_tests/
Dobj_name.c10 } tests[] = { in test_obj_name() local
23 for (i = 0; i < sizeof(tests) / sizeof(tests[0]); 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 != -1) || 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.c17 } tests[] = { in test_global_data_number() local
31 for (i = 0; i < sizeof(tests) / sizeof(tests[0]); i++) { in test_global_data_number()
32 err = bpf_map_lookup_elem(map_fd, &tests[i].key, &num); in test_global_data_number()
33 CHECK(err || num != tests[i].num, tests[i].name, in test_global_data_number()
35 err, num, tests[i].num); in test_global_data_number()
52 } tests[] = { in test_global_data_string() local
60 for (i = 0; i < sizeof(tests) / sizeof(tests[0]); i++) { in test_global_data_string()
61 err = bpf_map_lookup_elem(map_fd, &tests[i].key, str); in test_global_data_string()
62 CHECK(err || memcmp(str, tests[i].str, sizeof(str)), in test_global_data_string()
63 tests[i].name, "err %d result \'%s\' expected \'%s\'\n", in test_global_data_string()
[all …]
Dflow_dissector.c103 struct test tests[] = { variable
457 for (i = 0; i < ARRAY_SIZE(tests); i++) { in test_flow_dissector()
461 .data_in = &tests[i].pkt, in test_flow_dissector()
462 .data_size_in = sizeof(tests[i].pkt), in test_flow_dissector()
467 if (tests[i].flags) { in test_flow_dissector()
470 ctx.flags = tests[i].flags; in test_flow_dissector()
476 tests[i].name, in test_flow_dissector()
480 CHECK_FLOW_KEYS(tests[i].name, flow_keys, tests[i].keys); in test_flow_dissector()
497 for (i = 0; i < ARRAY_SIZE(tests); i++) { in test_flow_dissector()
503 __u32 key = (__u32)(tests[i].keys.sport) << 16 | in test_flow_dissector()
[all …]
Dbpf_verif_scale.c42 struct scale_test_def tests[] = { in test_bpf_verif_scale() local
99 for (i = 0; i < ARRAY_SIZE(tests); i++) { in test_bpf_verif_scale()
100 const struct scale_test_def *test = &tests[i]; in test_bpf_verif_scale()
D.gitignore1 tests.h
/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.
/tools/perf/tests/
DBuild58 $(OUTPUT)tests/llvm-src-base.c: tests/bpf-script-example.c tests/Build
60 $(Q)echo '#include <tests/llvm.h>' > $@
65 $(OUTPUT)tests/llvm-src-kbuild.c: tests/bpf-script-test-kbuild.c tests/Build
67 $(Q)echo '#include <tests/llvm.h>' > $@
72 $(OUTPUT)tests/llvm-src-prologue.c: tests/bpf-script-test-prologue.c tests/Build
74 $(Q)echo '#include <tests/llvm.h>' > $@
79 $(OUTPUT)tests/llvm-src-relocation.c: tests/bpf-script-test-relocation.c tests/Build
81 $(Q)echo '#include <tests/llvm.h>' > $@
/tools/testing/vsock/
DREADME3 These tests exercise net/vmw_vsock/ host<->guest sockets for VMware, KVM, and
6 The following tests are available:
11 to running tests:
13 1. Build the kernel and these tests.
14 2. Install the kernel and tests on the host.
15 3. Install the kernel and tests inside the guest.
/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
Dcheckalllitmus.sh24 litmusdir=litmus-tests
64 echo All litmus tests verified as was expected. 1>&2
/tools/testing/selftests/livepatch/
DREADME5 This is a small set of sanity tests for the kernel livepatching.
9 buffer and parsed for expected messages. (Note: the tests will clear
10 the message buffer between individual tests.)
22 Running the tests
34 Adding tests
40 "test_klp" strings, so tests be sure to include one of those strings for
/tools/lib/lockdep/
Drun_tests.sh10 find tests -name '*.c' | sort | while read -r i; do
22 find tests -name '*.c' | sort | while read -r i; do
35 find tests -name '*.c' | sort | while read -r i; do
/tools/testing/scatterlist/
Dmain.c30 } *test, tests[] = { in main() local
55 for (i = 0, test = tests; test->expected_segments; test++, i++) { in main()
76 assert(i == (sizeof(tests) / sizeof(tests[0])) - 1); in main()
/tools/testing/selftests/bpf/
Dtest_tag.c165 static void do_test(uint32_t *tests, int start_insns, int fd_map, in do_test() argument
181 (*tests)++; in do_test()
187 uint32_t tests = 0; in main() local
195 do_test(&tests, 2, -1, bpf_gen_imm_prog); in main()
196 do_test(&tests, 3, fd_map, bpf_gen_map_prog); in main()
199 printf("test_tag: OK (%u tests)\n", tests); in main()
Dtest_section_names.c22 static struct sec_name_test tests[] = { variable
220 for (i = 0; i < ARRAY_SIZE(tests); ++i) { in run_tests()
221 if (run_test_case(&tests[i])) in run_tests()
/tools/testing/selftests/net/
Dsocket.c26 static struct socket_testcase tests[] = { variable
44 for (i = 0; i < ARRAY_SIZE(tests); i++) { in run_tests()
45 struct socket_testcase *s = &tests[i]; in run_tests()
/tools/testing/selftests/net/forwarding/
Dmirror_gre_bridge_1q.sh100 tests() function
117 tests
123 tests
/tools/testing/selftests/breakpoints/
Dbreakpoint_test.c334 unsigned int tests = 0; in launch_tests() local
337 tests += 3 * COUNT_ISN_BPS; in launch_tests()
338 tests += sizeof(long) / 2 * 3 * COUNT_WPS; in launch_tests()
339 tests += sizeof(long) / 2 * 3 * COUNT_WPS; in launch_tests()
340 tests += 2; in launch_tests()
341 ksft_set_plan(tests); in launch_tests()
/tools/perf/tests/attr/
DREADME1 The struct perf_event_attr test (attr tests) support
12 The attr tests consist of following parts:
14 tests/attr.c
25 tests/attr.py
30 tests/attr/
33 Following tests are defined (with perf commands):
/tools/testing/selftests/tc-testing/
DREADME5 tdc is a Python script to load tc unit tests from a separate JSON file and
18 prior to running the tests when using nsPlugin.
21 unit tests. See the config file in this directory for minimum required
22 features. As new tests will be added, config options list will be updated.
32 handled in a future version - the current workaround is to run the tests
63 Running tdc without any arguments will run all tests. Refer to the section
68 TAP (Test Anything Protocol) format when they are done. If tests fail,
76 One run of tests is considered a "test suite" (this will be refined in the
93 tests the return code against one or more acceptable values. The
105 the tests to be run. These values are used in the tc commands that will be
[all …]
/tools/testing/selftests/ftrace/
DREADME31 * Take care with side effects as the tests are run with root privilege.
33 * The tests should not run for a long period of time (more than 1 min.)
34 These are to be unit tests.
41 * Note that the tests are run with "set -e" (errexit) option. If any
44 * The tests can return some result codes instead of pass or fail by
/tools/testing/selftests/cgroup/
Dtest_core.c361 } tests[] = { variable
384 for (i = 0; i < ARRAY_SIZE(tests); i++) { in main()
385 switch (tests[i].fn(root)) { in main()
387 ksft_test_result_pass("%s\n", tests[i].name); in main()
390 ksft_test_result_skip("%s\n", tests[i].name); in main()
394 ksft_test_result_fail("%s\n", tests[i].name); in main()
/tools/perf/lib/
DMakefile139 $(Q)$(MAKE) -C tests clean
141 tests: libs target
142 $(Q)$(MAKE) -C tests
143 $(Q)$(MAKE) -C tests run
186 .PHONY: all install clean tests FORCE
/tools/testing/selftests/futex/
DREADME6 Functional tests shall test the documented behavior of the futex operation
8 odd corner cases, regression tests, and abject abuse and misuse.
24 the individual tests on mailing list discussions and bug reports.
53 o FIXME: decide on a sane test naming scheme. Currently the tests are named
55 problem as we intend to write multiple tests which collide in this namespace.
/tools/testing/selftests/bpf/map_tests/
D.gitignore1 tests.h

1234