Home
last modified time | relevance | path

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

12

/linux/tools/testing/selftests/net/netfilter/
H A Dnft_audit.sh70 do_test() { # (cmd, log) function
87 do_test "nft add table $table" \
90 do_test "nft add chain $table c1" \
93 do_test "nft add chain $table c2; add chain $table c3" \
98 do_test "nft $cmd" \
101 do_test "nft $cmd; $cmd" \
112 do_test "nft $cmd" \
119 do_test "nft -f $rulefile" \
127 do_test "nft add set t1 s $setblock" \
130 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.sh103 do_test() { function
136 do_test $CLIENT_NS1 || { echo "[FAIL]"; return $RET; }
140 do_test $CLIENT_NS2 && { echo "[FAIL]"; return $RET; }
145 do_test $CLIENT_NS1 && { echo "[FAIL]"; return $RET; }
149 do_test $CLIENT_NS2 && { echo "[FAIL]"; return $RET; }
153 do_test $CLIENT_NS1 veth2 && { echo "[FAIL]"; return $RET; }
157 do_test $CLIENT_NS1 veth1 || { echo "[FAIL]"; return $RET; }
161 do_test $CLIENT_NS1 vrf-1 || { echo "[FAIL]"; return $RET; }
165 do_test $CLIENT_NS1 vrf-2 && { echo "[FAIL]"; return $RET; }
169 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 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.sh131 do_test() { function
158 do_test "${EXTRA_ARGS}"
159 do_test "-z ${EXTRA_ARGS}"
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()
H A Dmsg_zerocopy.c686 static void do_test(int domain, int type, int protocol) in do_test() function
810 do_test(PF_PACKET, SOCK_RAW, 0); in main()
812 do_test(PF_PACKET, SOCK_DGRAM, 0); in main()
814 do_test(cfg_family, SOCK_RAW, IPPROTO_EGP); in main()
816 do_test(cfg_family, SOCK_RAW, IPPROTO_RAW); in main()
818 do_test(cfg_family, SOCK_STREAM, 0); in main()
820 do_test(cfg_family, SOCK_DGRAM, 0); in main()
822 do_test(PF_RDS, SOCK_SEQPACKET, 0); in main()
/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 do_test "tfail2" false
40 FAIL_TO_XFAIL=yes do_test "txfail" false
48 do_test "true" true
55 do_test "false" false
62 FAIL_TO_XFAIL=yes do_test "xfalse" false
75 xfail_on_slow do_test "slow_false" false
H A Dvxlan_bridge_1q_mc_ul.sh468 do_test()
544 do_test 4 10 0 "IPv4 nomcroute"
552 do_test 6 10 0 "IPv6 nomcroute"
571 do_test 4 10 10 "IPv4 mcroute"
578 do_test 6 10 10 "IPv6 mcroute"
601 do_test 4 10 10 "IPv4 mcroute changelink"
610 do_test 6 10 10 "IPv6 mcroute changelink"
617 do_test 4 10 10 "IPv4 mcroute (*,G)"
624 do_test 6 10 10 "IPv6 mcroute (*,G)"
644 do_test
487 do_test() global() function
[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/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
395 do_test(fd, size, TEST_TYPE_RW, true); in test_shared_rw_pin()
400 do_test(fd, size, TEST_TYPE_RW_FAST, true); in test_shared_rw_fast_pin()
405 do_test(fd, size, TEST_TYPE_RO, true); in test_shared_ro_pin()
410 do_test(fd, size, TEST_TYPE_RO_FAST, true); in test_shared_ro_fast_pin()
415 do_test(fd, size, TEST_TYPE_RW, false); in test_private_rw_pin()
420 do_test(fd, size, TEST_TYPE_RW_FAST, false); in test_private_rw_fast_pin()
425 do_test(fd, size, TEST_TYPE_RO, false); in test_private_ro_pin()
430 do_test(fd, size, TEST_TYPE_RO_FAST, false); in test_private_ro_fast_pin()
436 do_test(fd, size, TEST_TYPE_IOURING, true); in test_shared_iouring()
[all …]
/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/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/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/testing/selftests/bpf/prog_tests/
H A Dbpf_tcp_ca.c66 static void do_test(const struct network_helper_opts *opts) in do_test() function
111 do_test(&opts); in test_cubic()
211 do_test(&opts); in test_dctcp_autoattach_map()
413 do_test(&opts); in test_update_ca()
420 do_test(&opts); in test_update_ca()
451 do_test(&opts); in test_update_wrong()
458 do_test(&opts); in test_update_wrong()
490 do_test(&opts); in test_mixed_links()
600 do_test(&opts); in test_cc_cubic()
/linux/tools/perf/tests/
H A Dbackward-ring-buffer.c62 static int do_test(struct evlist *evlist, int mmap_pages, in do_test() function
140 err = do_test(evlist, opts.mmap_pages, &sample_count, in test__backward_ring_buffer()
160 err = do_test(evlist, 1, &sample_count, &comm_count); in test__backward_ring_buffer()
H A Dsample-parsing.c206 static int do_test(u64 sample_type, u64 sample_regs, u64 read_format) in do_test() function
419 err = do_test(sample_type, 0, rf[i]); in test__sample_parsing()
433 err = do_test(sample_type, sample_regs, 0); in test__sample_parsing()
446 err = do_test(sample_type, sample_regs, rf[i]); in test__sample_parsing()
452 err = do_test(sample_type, sample_regs, rf[i]); in test__sample_parsing()
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