Home
last modified time | relevance | path

Searched refs:do_test (Results 1 – 25 of 46) sorted by relevance

12

/linux/tools/testing/selftests/net/netfilter/
H A Dnft_audit.sh51 do_test() { # (cmd, log) function
68 do_test "nft add table $table" \
71 do_test "nft add chain $table c1" \
74 do_test "nft add chain $table c2; add chain $table c3" \
79 do_test "nft $cmd" \
82 do_test "nft $cmd; $cmd" \
93 do_test "nft $cmd" \
100 do_test "nft -f $rulefile" \
108 do_test "nft add set t1 s $setblock" \
111 do_test "nft add set t1 s2 $setblock; add set t1 s3 { $settype; }" \
[all …]
/linux/tools/usb/
H A Dhcd-tests.sh49 do_test () function
109 do_test -t 9 -c 5000
111 do_test -t 10 -c 5000
115 do_test -t 14 -c 15000 -s 256 -v 1
118 do_test -t 21 -c 100 -s 256 -v 1
127 do_test -t 1
129 do_test -t 3 -v 421
133 do_test -t 17
136 do_test -t 19
140 do_test -t 5
[all …]
/linux/tools/testing/selftests/net/
H A Dtcp_fastopen_backup_key.sh26 do_test() { function
39 do_test "-4"
40 do_test "-6"
41 do_test "-4"
42 do_test "-6"
43 do_test "-4s"
44 do_test "-6s"
45 do_test "-4s"
46 do_test "-6s"
47 do_test "-4r"
[all …]
H A Dso_txtime.sh74 do_test() { function
87 do_test 4 mono a,-1 a,-1
88 do_test 6 mono a,0 a,0
89 do_test 6 mono a,10 a,10
90 do_test 4 mono a,10,b,20 a,10,b,20
91 do_test 6 mono a,20,b,10 b,20,a,20
96 do_test 6 tai a,10 a,10
97 do_test 4 tai a,10,b,20 a,10,b,20
98 do_test 6 tai a,20,b,10 b,10,a,20
H A Dsctp_vrf.sh80 do_test() { function
119 do_test $CLIENT_NS1 || { echo "[FAIL]"; return $RET; }
123 do_test $CLIENT_NS2 && { echo "[FAIL]"; return $RET; }
128 do_test $CLIENT_NS1 && { echo "[FAIL]"; return $RET; }
132 do_test $CLIENT_NS2 && { echo "[FAIL]"; return $RET; }
136 do_test $CLIENT_NS1 veth2 && { echo "[FAIL]"; return $RET; }
140 do_test $CLIENT_NS1 veth1 || { echo "[FAIL]"; return $RET; }
144 do_test $CLIENT_NS1 vrf-1 || { echo "[FAIL]"; return $RET; }
148 do_test $CLIENT_NS1 vrf-2 && { echo "[FAIL]"; return $RET; }
152 do_test $CLIENT_NS2 vrf-2 || { echo "[FAIL]"; return $RET; }
[all …]
H A Dbig_tcp.sh130 do_test() { function
161 do_test "on" "on" "on" "on" && \
162 do_test "on" "off" "on" "off" && \
163 do_test "off" "on" "on" "on" && \
164 do_test "on" "on" "off" "on" && \
165 do_test "off" "on" "off" "on"
H A Dmsg_zerocopy.sh109 do_test() { function
119 do_test "${EXTRA_ARGS}"
120 do_test "-z ${EXTRA_ARGS}"
H A Dfin_ack_lat.sh18 do_test() { function
34 do_test "30"
H A Dreuseaddr_ports_exhausted.sh30 do_test() { function
34 do_test
H A Dmsg_zerocopy.c683 static void do_test(int domain, int type, int protocol) in do_test() function
804 do_test(PF_PACKET, SOCK_RAW, 0); in main()
806 do_test(PF_PACKET, SOCK_DGRAM, 0); in main()
808 do_test(cfg_family, SOCK_RAW, IPPROTO_EGP); in main()
810 do_test(cfg_family, SOCK_RAW, IPPROTO_RAW); in main()
812 do_test(cfg_family, SOCK_STREAM, 0); in main()
814 do_test(cfg_family, SOCK_DGRAM, 0); in main()
816 do_test(PF_RDS, SOCK_SEQPACKET, 0); in main()
H A Dsk_so_peek_off.c170 static int do_test(int proto) in do_test() function
196 restcp = do_test(IPPROTO_TCP); in main()
197 resudp = do_test(IPPROTO_UDP); in main()
/linux/tools/testing/selftests/x86/
H A Dentry_from_vm86.c134 static bool do_test(struct vm86plus_struct *v86, unsigned long eip, in do_test() function
203 do_test(vm86, vmcode_umip - vmcode, VM86_TRAP, 3, "UMIP tests"); in do_umip_tests()
240 do_test(vm86, vmcode_umip_str - vmcode, VM86_SIGNAL, 0, in do_umip_tests()
245 do_test(vm86, vmcode_umip_sldt - vmcode, VM86_SIGNAL, 0, in do_umip_tests()
276 do_test(&v86, vmcode_bound - vmcode, VM86_INTx, 5, "#BR"); in main()
285 do_test(&v86, vmcode_sysenter - vmcode, -1, 0, "SYSENTER"); in main()
296 do_test(&v86, vmcode_syscall - vmcode, VM86_SIGNAL, 0, "SYSCALL"); in main()
302 do_test(&v86, vmcode_sti - vmcode, VM86_STI, 0, "STI with VIP set"); in main()
307 do_test(&v86, vmcode_popf_hlt - vmcode, VM86_UNKNOWN, 0, "POPF with VIP set and IF clear"); in main()
312 do_test(&v86, vmcode_popf_hlt - vmcode, VM86_STI, 0, "POPF with VIP and IF set"); in main()
[all …]
/linux/tools/testing/selftests/net/forwarding/
H A Dlib_sh_test.sh15 do_test() function
25 do_test "tpass" true
30 do_test "tfail" false
35 FAIL_TO_XFAIL=yes do_test "txfail" false
43 do_test "true" true
50 do_test "false" false
57 FAIL_TO_XFAIL=yes do_test "xfalse" false
70 xfail_on_slow do_test "slow_false" false
/linux/tools/testing/selftests/mm/
H A Dgup_longterm.c91 static void do_test(int fd, size_t size, enum test_type type, bool shared) in do_test() function
335 do_test(fd, size, TEST_TYPE_RW, true); in test_shared_ro_pin()
340 do_test(fd, size, TEST_TYPE_RW_FAST, true); in test_shared_ro_fast_pin()
345 do_test(fd, size, TEST_TYPE_RO, true); in test_private_rw_pin()
350 do_test(fd, size, TEST_TYPE_RO_FAST, true); in test_private_rw_fast_pin()
355 do_test(fd, size, TEST_TYPE_RW, false); in test_private_ro_pin()
360 do_test(fd, size, TEST_TYPE_RW_FAST, false); in test_private_ro_fast_pin()
365 do_test(fd, size, TEST_TYPE_RO, false);
370 do_test(fd, size, TEST_TYPE_RO_FAST, false);
376 do_test(f
[all...]
/linux/tools/testing/selftests/arm64/bti/
H A Dtest.c140 #define do_test(expect_sigill_br_x0, \ macro
213 do_test(1, 1, 1, nohint_func); in start()
214 do_test(1, 1, 1, bti_none_func); in start()
215 do_test(1, 0, 0, bti_c_func); in start()
216 do_test(0, 0, 1, bti_j_func); in start()
217 do_test(0, 0, 0, bti_jc_func); in start()
218 do_test(1, 0, 0, paciasp_func); in start()
/linux/tools/testing/selftests/uevent/
H A Duevent_filtering.c242 static int do_test(unsigned long pre_flags, unsigned long post_flags, in do_test() function
389 ret = do_test(0, 0, true, sync_fd); in TEST()
403 ret = do_test(CLONE_NEWNET, 0, true, sync_fd); in TEST()
418 ret = do_test(CLONE_NEWUSER, 0, true, sync_fd); in TEST()
432 ret = do_test(CLONE_NEWUSER | CLONE_NEWNET, 0, false, sync_fd); in TEST()
447 ret = do_test(0, CLONE_NEWNET, true, sync_fd); in TEST()
462 ret = do_test(0, CLONE_NEWUSER, true, sync_fd); in TEST()
478 ret = do_test(0, CLONE_NEWUSER | CLONE_NEWNET, true, sync_fd); in TEST()
/linux/tools/testing/selftests/ftrace/test.d/ftrace/
H A Dfgraph-multi.tc49 do_test() {
79 do_test '*sched*' 'sched'
81 do_test '*lock*' 'lock'
84 do_test '*rcu*' 'rcu'
H A Dfunc-filter-pid.tc51 do_test() {
100 do_test function
102 do_test function_graph
H A Dfunc-filter-notrace-pid.tc38 do_test() {
90 do_test
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsock_iter_batch.c12 static void do_test(int sock_type, bool onebyone) in do_test() function
124 do_test(SOCK_STREAM, true); in test_sock_iter_batch()
125 do_test(SOCK_STREAM, false); in test_sock_iter_batch()
128 do_test(SOCK_DGRAM, true); in test_sock_iter_batch()
129 do_test(SOCK_DGRAM, false); in test_sock_iter_batch()
H A Dbpf_tcp_ca.c70 static void do_test(const struct network_helper_opts *opts) in do_test() function
115 do_test(&opts); in test_cubic()
215 do_test(&opts); in test_dctcp_autoattach_map()
417 do_test(&opts); in test_update_ca()
424 do_test(&opts); in test_update_ca()
455 do_test(&opts); in test_update_wrong()
462 do_test(&opts); in test_update_wrong()
494 do_test(&opts); in test_mixed_links()
604 do_test(&opts); in test_cc_cubic()
/linux/tools/testing/selftests/arm64/abi/
H A Dsyscall-abi.c393 static bool do_test(struct syscall_cfg *cfg, int sve_vl, int sme_vl, in do_test() function
416 ksft_test_result(do_test(cfg, 0, default_sme_vl, 0), in test_one_syscall()
425 ksft_test_result(do_test(cfg, sve_vls[sve], default_sme_vl, 0), in test_one_syscall()
434 ksft_test_result(do_test(cfg, sve_vls[sve], in test_one_syscall()
440 ksft_test_result(do_test(cfg, sve_vls[sve], in test_one_syscall()
445 ksft_test_result(do_test(cfg, sve_vls[sve], in test_one_syscall()
459 ksft_test_result(do_test(cfg, 0, sme_vls[sme], in test_one_syscall()
463 ksft_test_result(do_test(cfg, 0, sme_vls[sme], SVCR_SM_MASK), in test_one_syscall()
466 ksft_test_result(do_test(cfg, 0, sme_vls[sme], SVCR_ZA_MASK), in test_one_syscall()
/linux/tools/perf/tests/
H A Dbackward-ring-buffer.c62 static int do_test(struct evlist *evlist, int mmap_pages, in do_test() function
141 err = do_test(evlist, opts.mmap_pages, &sample_count, in test__backward_ring_buffer()
161 err = do_test(evlist, 1, &sample_count, &comm_count); in test__backward_ring_buffer()
H A Dhists_cumulate.c190 static int do_test(struct hists *hists, struct result *expected, size_t nr_expected, in do_test() function
305 err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0); in test1()
452 err = do_test(hists, expected, ARRAY_SIZE(expected), in test2()
510 err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0); in test3()
696 err = do_test(hists, expected, ARRAY_SIZE(expected), in test4()
/linux/tools/testing/selftests/bpf/
H A Dtest_tag.c165 static void do_test(uint32_t *tests, int start_insns, int fd_map, in do_test() function
199 do_test(&tests, 2, -1, bpf_gen_imm_prog); in main()
200 do_test(&tests, 3, fd_map, bpf_gen_map_prog); in main()

12