Home
last modified time | relevance | path

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

123

/openbmc/linux/tools/testing/selftests/netfilter/
H A Dnft_audit.sh47 do_test() { # (cmd, log) function
64 do_test "nft add table $table" \
67 do_test "nft add chain $table c1" \
70 do_test "nft add chain $table c2; add chain $table c3" \
75 do_test "nft $cmd" \
78 do_test "nft $cmd; $cmd" \
89 do_test "nft $cmd" \
96 do_test "nft -f $rulefile" \
104 do_test "nft add set t1 s $setblock" \
107 do_test "nft add set t1 s2 $setblock; add set t1 s3 { $settype; }" \
[all …]
/openbmc/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 …]
/openbmc/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.sh49 do_test() { function
73 do_test 4 mono a,-1 a,-1
74 do_test 6 mono a,0 a,0
75 do_test 6 mono a,10 a,10
76 do_test 4 mono a,10,b,20 a,10,b,20
77 do_test 6 mono a,20,b,10 b,20,a,20
80 ! do_test 4 tai a,-1 a,-1
81 ! do_test 6 tai a,0 a,0
82 do_test 6 tai a,10 a,10
83 do_test 4 tai a,10,b,20 a,10,b,20
[all …]
H A Dsctp_vrf.sh86 do_test() { function
125 do_test $CLIENT_NS1 || { echo "[FAIL]"; return $RET; }
129 do_test $CLIENT_NS2 && { echo "[FAIL]"; return $RET; }
134 do_test $CLIENT_NS1 && { echo "[FAIL]"; return $RET; }
138 do_test $CLIENT_NS2 && { echo "[FAIL]"; return $RET; }
142 do_test $CLIENT_NS1 veth2 && { echo "[FAIL]"; return $RET; }
146 do_test $CLIENT_NS1 veth1 || { echo "[FAIL]"; return $RET; }
150 do_test $CLIENT_NS1 vrf-1 || { echo "[FAIL]"; return $RET; }
154 do_test $CLIENT_NS1 vrf-2 && { echo "[FAIL]"; return $RET; }
158 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 Dmsg_zerocopy.sh110 do_test() { function
120 do_test "${EXTRA_ARGS}"
121 do_test "-z ${EXTRA_ARGS}"
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()
/openbmc/qemu/tests/qemu-iotests/
H A D03348 do_test() function
74 do_test $align "write -P 0xa 0x200 0x400" "$TEST_IMG" | _filter_qemu_io
75 do_test $align "write -P 0xa 0x20000 0x600" "$TEST_IMG" | _filter_qemu_io
76 do_test $align "$write_zero_cmd 0x400 0x20000" "$TEST_IMG" | _filter_qemu_io
80 do_test $align "read -P 0xa 0x200 0x200" "$TEST_IMG" | _filter_qemu_io
81 do_test $align "read -P 0x0 0x400 0x20000" "$TEST_IMG" | _filter_qemu_io
82 do_test $align "read -P 0xa 0x20400 0x200" "$TEST_IMG" | _filter_qemu_io
86 do_test $align "write -P 0xb 0x10000 0x10000" "$TEST_IMG" | _filter_qemu_io
87 do_test $align "$write_zero_cmd 0x10000 0x10000" "$TEST_IMG" | _filter_qemu_io
91 do_test $align "read -P 0x0 0x400 0x20000" "$TEST_IMG" | _filter_qemu_io
[all …]
H A D298128 def do_test(self, prealloc_mode, new_size): member in TestTruncate
152 self.do_test('off', '5M')
155 self.do_test('falloc', '50M')
158 self.do_test('metadata', '50M')
161 self.do_test('full', '50M')
164 self.do_test('off', '50M')
167 self.do_test('falloc', '150M')
170 self.do_test('metadata', '150M')
173 self.do_test('full', '150M')
176 self.do_test('off', '150M')
/openbmc/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 …]
/openbmc/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
326 do_test(fd, size, TEST_TYPE_RW, true); in test_shared_rw_pin()
331 do_test(fd, size, TEST_TYPE_RW_FAST, true); in test_shared_rw_fast_pin()
336 do_test(fd, size, TEST_TYPE_RO, true); in test_shared_ro_pin()
341 do_test(fd, size, TEST_TYPE_RO_FAST, true); in test_shared_ro_fast_pin()
346 do_test(fd, size, TEST_TYPE_RW, false); in test_private_rw_pin()
351 do_test(fd, size, TEST_TYPE_RW_FAST, false); in test_private_rw_fast_pin()
356 do_test(fd, size, TEST_TYPE_RO, false); in test_private_ro_pin()
361 do_test(fd, size, TEST_TYPE_RO_FAST, false); in test_private_ro_fast_pin()
367 do_test(fd, size, TEST_TYPE_IOURING, true); in test_shared_iouring()
[all …]
/openbmc/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()
/openbmc/linux/tools/testing/selftests/uevent/
H A Duevent_filtering.c240 static int do_test(unsigned long pre_flags, unsigned long post_flags, in do_test() function
387 ret = do_test(0, 0, true, sync_fd); in TEST()
401 ret = do_test(CLONE_NEWNET, 0, true, sync_fd); in TEST()
416 ret = do_test(CLONE_NEWUSER, 0, true, sync_fd); in TEST()
430 ret = do_test(CLONE_NEWUSER | CLONE_NEWNET, 0, false, sync_fd); in TEST()
445 ret = do_test(0, CLONE_NEWNET, true, sync_fd); in TEST()
460 ret = do_test(0, CLONE_NEWUSER, true, sync_fd); in TEST()
476 ret = do_test(0, CLONE_NEWUSER | CLONE_NEWNET, true, sync_fd); in TEST()
/openbmc/qemu/tests/tcg/aarch64/
H A Dpauth-2.c21 void do_test(uint64_t value) in do_test() function
93 do_test(0); in main()
94 do_test(0xda004acedeadbeefull); in main()
/openbmc/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()
/openbmc/qemu/tests/functional/
H A Dtest_multiprocess.py39 def do_test(self, kernel_asset, initrd_asset, member in Multiprocess
90 self.do_test(self.ASSET_KERNEL_X86, self.ASSET_INITRD_X86,
94 self.do_test(self.ASSET_KERNEL_AARCH64, self.ASSET_INITRD_AARCH64,
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_tcp_ca.c81 static void do_test(const char *tcp_ca, const struct bpf_map *sk_stg_map) in do_test() function
186 do_test("bpf_cubic", NULL); in test_cubic()
209 do_test("bpf_dctcp", dctcp_skel->maps.sk_stg_map); in test_dctcp()
402 do_test("tcp_ca_update", NULL); in test_update_ca()
409 do_test("tcp_ca_update", NULL); in test_update_ca()
433 do_test("tcp_ca_update", NULL); in test_update_wrong()
440 do_test("tcp_ca_update", NULL); in test_update_wrong()
465 do_test("tcp_ca_update", NULL); in test_mixed_links()
/openbmc/linux/tools/testing/selftests/ftrace/test.d/ftrace/
H A Dfunc-filter-pid.tc38 do_test() {
85 do_test
H A Dfunc-filter-notrace-pid.tc38 do_test() {
90 do_test
/openbmc/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()
/openbmc/linux/tools/perf/arch/x86/tests/
H A Dsample-parsing.c38 static int do_test(u64 sample_type) in do_test() function
124 return do_test(PERF_SAMPLE_WEIGHT_STRUCT); in test__x86_sample_parsing()

123