| /freebsd-13.1/tools/regression/priv/ |
| H A D | main.h | 61 struct test { struct 64 struct test *test); argument 66 struct test *test); 68 struct test *test); argument 76 int priv_acct_setup(int, int, struct test *); 77 void priv_acct_enable(int, int, struct test *); 109 int priv_cred_setup(int, int, struct test *); 121 int priv_io_setup(int, int, struct test *); 122 void priv_io(int, int, struct test *); 126 void priv_kenv_set(int, int, struct test *); [all …]
|
| H A D | priv_netinet_ipsec.c | 56 struct test *test, int af) in priv_netinet_ipsec_policy_bypass_setup_af() argument 90 struct test *test) in priv_netinet_ipsec_policy4_bypass_setup() argument 100 struct test *test) in priv_netinet_ipsec_policy6_bypass_setup() argument 111 struct test *test, int af) in priv_netinet_ipsec_policy_entrust_setup_af() argument 145 struct test *test) in priv_netinet_ipsec_policy4_entrust_setup() argument 155 struct test *test) in priv_netinet_ipsec_policy6_entrust_setup() argument 164 priv_netinet_ipsec_pfkey(int asroot, int injail, struct test *test) in priv_netinet_ipsec_pfkey() argument 232 priv_netinet_ipsec_policy4_bypass(int asroot, int injail, struct test *test) in priv_netinet_ipsec_policy4_bypass() argument 240 priv_netinet_ipsec_policy6_bypass(int asroot, int injail, struct test *test) in priv_netinet_ipsec_policy6_bypass() argument 302 struct test *test) in priv_netinet_ipsec_policy_bypass_cleanup() argument [all …]
|
| H A D | main.c | 70 static struct test tests[] = { 373 warnx("%s: returned 0", test); in expect() 439 enter_jail(const char *test) in enter_jail() argument 460 err(-1, "test %s: jail", test); in enter_jail() 464 run_child(struct test *test, int asroot, int injail) in run_child() argument 467 setprogname(test->t_name); in run_child() 469 enter_jail(test->t_name); in run_child() 472 test->t_test_func(asroot, injail, test); in run_child() 483 run(struct test *test, int asroot, int injail) in run() argument 488 if ((test->t_setup_func)(asroot, injail, test) != 0) { in run() [all …]
|
| /freebsd-13.1/contrib/libevent/test/ |
| H A D | include.am | 15 test/test.sh 22 test/test-changelist \ 24 test/test-eof \ 25 test/test-closed \ 26 test/test-fdleak \ 27 test/test-init \ 28 test/test-ratelim \ 29 test/test-time \ 30 test/test-weof \ 60 test/test.sh -b EPOLL [all …]
|
| /freebsd-13.1/contrib/ntp/sntp/libevent/test/ |
| H A D | include.am | 15 test/test.sh 22 test/test-changelist \ 23 test/test-dumpevents \ 24 test/test-eof \ 25 test/test-closed \ 26 test/test-fdleak \ 27 test/test-init \ 28 test/test-ratelim \ 29 test/test-time \ 30 test/test-weof \ [all …]
|
| /freebsd-13.1/contrib/netbsd-tests/lib/libbluetooth/ |
| H A D | t_sdp_put.c | 58 test.end = test.next; in ATF_TC_BODY() 92 test.end = test.next; in ATF_TC_BODY() 144 test.end = test.next; in ATF_TC_BODY() 176 test.end = test.next; in ATF_TC_BODY() 201 test.end = test.next; in ATF_TC_BODY() 235 test.end = test.next; in ATF_TC_BODY() 265 test.end = test.next; in ATF_TC_BODY() 298 test.end = test.next; in ATF_TC_BODY() 337 test.end = test.next; in ATF_TC_BODY() 366 test.end = test.next; in ATF_TC_BODY() [all …]
|
| H A D | t_sdp_set.c | 57 ATF_REQUIRE(sdp_set_bool(&test, true)); in ATF_TC_BODY() 58 ATF_CHECK_EQ(test.next[1], 0x01); in ATF_TC_BODY() 59 ATF_REQUIRE(sdp_set_bool(&test, false)); in ATF_TC_BODY() 60 ATF_CHECK_EQ(test.next[1], 0x00); in ATF_TC_BODY() 181 ATF_REQUIRE(sdp_set_int(&test, -1)); in ATF_TC_BODY() 190 ATF_REQUIRE(sdp_set_int(&test, 789)); in ATF_TC_BODY() 254 ATF_REQUIRE(sdp_set_seq(&test, 0)); in ATF_TC_BODY() 264 ATF_REQUIRE(sdp_set_seq(&test, 3)); in ATF_TC_BODY() 269 ATF_REQUIRE(sdp_set_seq(&test, 0)); in ATF_TC_BODY() 313 ATF_REQUIRE(sdp_set_alt(&test, 0)); in ATF_TC_BODY() [all …]
|
| H A D | t_sdp_get.c | 65 ATF_REQUIRE(sdp_get_data(&test, &value)); in ATF_TC_BODY() 83 ATF_CHECK_EQ(test.next, test.end); in ATF_TC_BODY() 128 ATF_CHECK_EQ(test.next, test.end); in ATF_TC_BODY() 197 ATF_CHECK_EQ(test.next, test.end); in ATF_TC_BODY() 233 ATF_CHECK_EQ(test.next, test.end); in ATF_TC_BODY() 326 ATF_CHECK_EQ(test.next, test.end); in ATF_TC_BODY() 455 ATF_CHECK_EQ(test.next, test.end); in ATF_TC_BODY() 495 ATF_CHECK_EQ(test.next, test.end); in ATF_TC_BODY() 535 ATF_CHECK_EQ(test.next, test.end); in ATF_TC_BODY() 580 ATF_CHECK_EQ(test.next, test.end); in ATF_TC_BODY() [all …]
|
| H A D | t_sdp_data.c | 53 ATF_REQUIRE(sdp_get_data(&test, &value)); in ATF_TC_BODY() 56 ATF_REQUIRE(sdp_get_data(&test, &value)); in ATF_TC_BODY() 59 ATF_CHECK_EQ(test.next, test.end); in ATF_TC_BODY() 93 ATF_REQUIRE(sdp_get_data(&test, &value)); in ATF_TC_BODY() 96 ATF_REQUIRE(sdp_get_data(&test, &value)); in ATF_TC_BODY() 99 ATF_REQUIRE(sdp_get_data(&test, &value)); in ATF_TC_BODY() 102 ATF_REQUIRE(sdp_get_data(&test, &value)); in ATF_TC_BODY() 105 ATF_REQUIRE(sdp_get_data(&test, &value)); in ATF_TC_BODY() 108 ATF_REQUIRE(sdp_get_data(&test, &value)); in ATF_TC_BODY() 111 ATF_REQUIRE(sdp_get_data(&test, &value)); in ATF_TC_BODY() [all …]
|
| /freebsd-13.1/tests/sys/file/ |
| H A D | dup_test.c | 104 ++test; in main() 112 ++test; in main() 150 ++test; in main() 159 ++test; in main() 175 ++test; in main() 183 ++test; in main() 197 ++test; in main() 207 ++test; in main() 222 ++test; in main() 233 ++test; in main() [all …]
|
| /freebsd-13.1/sys/contrib/libsodium/ |
| H A D | .gitignore | 78 test-driver 81 test/default/*.res 82 test/default/*.trs 86 test/default/auth 92 test/default/box 93 test/default/box2 94 test/default/box7 95 test/default/box8 115 test/default/kdf 117 test/default/kx [all …]
|
| /freebsd-13.1/contrib/byacc/ |
| H A D | CHANGES | 1626 …test/calc.tab.c, test/calc1.tab.c, test/calc2.tab.c, test/calc3.tab.c, test/code_calc.code.c, test… 1676 …test/calc.tab.c, test/calc1.tab.c, test/calc2.tab.c, test/calc3.tab.c, test/code_calc.code.c, test… 1893 * test/calc2.y, test/calc3.y, test/code_error.y, test/ftp.y: 1961 …* test/calc2.tab.c, test/code_calc.code.c, test/code_error.code.c, test/error.tab.c, test/ftp.tab.… 2052 …test/code_error.code.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/pure_calc.tab.c… 2092 …test/grammar.tab.c, test/pure_calc.tab.c, test/pure_error.tab.c, test/calc.tab.c, test/calc1.tab.c… 2108 …test/ftp.tab.c, test/grammar.tab.c, test/pure_calc.tab.c, test/pure_error.tab.c, test/calc.tab.c, … 2111 …* test/pure_error.y, test/pure_calc.y, test/ftp.y, test/error.y, test/code_error.y, test/code_calc… 2181 …test/calc2.tab.c, test/calc2.y, test/calc3.tab.c, test/calc3.y, test/ftp.tab.c, test/grammar.tab.c… 2189 …test/calc1.y, test/ftp.tab.c, test/grammar.tab.c, test/pure_calc.tab.c, test/pure_error.tab.c, tes… [all …]
|
| H A D | MANIFEST | 66 test/README describe contents of "test" subdirectory 373 test/btyacc_destroy1.y btyacc test-case for %parse-param 374 test/btyacc_destroy2.y btyacc test-case for %parse-param 375 test/btyacc_destroy3.y btyacc test-case for %parse-param 382 test/code_debug.y test-input, for -i, -o, -d options 421 test/expr.oxout.y test-case for "#line" feature 429 test/quote_calc.y test-case for %token using quoted name 430 test/quote_calc2.y test-case for %token using quoted name 431 test/quote_calc3.y test-case for %token using quoted name 434 test/run_make.sh do a test-compile of each ".c" file in the test-directory [all …]
|
| /freebsd-13.1/sys/dev/ioat/ |
| H A D | ioat_test.c | 91 test = tx->test; in ioat_test_transaction_destroy() 155 test = tx->test; in ioat_compare_ok() 190 test = tx->test; in ioat_dma_test_callback() 212 tx = ioat_test_transaction_create(test, test->chain_depth * 2); in ioat_test_prealloc_memory() 221 tx->test = test; in ioat_test_prealloc_memory() 369 test = arg; in ioat_dma_test() 393 if (btoc((uint64_t)test->buffer_size * test->chain_depth * in ioat_dma_test() 453 test->raw_vtarget = (void *)test->raw_target; in ioat_dma_test() 454 test->raw_target = vtophys(test->raw_vtarget); in ioat_dma_test() 456 test->raw_vtarget = pmap_mapdev(test->raw_target, in ioat_dma_test() [all …]
|
| /freebsd-13.1/tools/regression/netinet/ipdivert/ |
| H A D | ipdivert.c | 52 ok(const char *test) in ok() argument 81 fail(test, "socket"); in ipdivert_create() 90 fail(test, "close"); in ipdivert_close() 107 fail(test, "bind"); in ipdivert_bind() 109 fail(test, "bind"); in ipdivert_bind() 112 failx(test, "bind"); in ipdivert_bind() 119 const char *test; in main() local 128 ok(test); in main() 137 ok(test); in main() 150 ok(test); in main() [all …]
|
| /freebsd-13.1/contrib/atf/atf-c/ |
| H A D | build_test.c | 155 struct c_o_test *test; in ATF_TC_BODY() local 157 for (test = c_o_tests; test->expargv[0] != NULL; test++) { in ATF_TC_BODY() 167 RE(atf_build_c_o(test->sfile, test->ofile, test->optargs, in ATF_TC_BODY() 170 RE(atf_build_c_o(test->sfile, test->ofile, NULL, &argv)); in ATF_TC_BODY() 184 struct cpp_test *test; in ATF_TC_BODY() local 186 for (test = cpp_tests; test->expargv[0] != NULL; test++) { in ATF_TC_BODY() 195 RE(atf_build_cpp(test->sfile, test->ofile, test->optargs, in ATF_TC_BODY() 198 RE(atf_build_cpp(test->sfile, test->ofile, NULL, &argv)); in ATF_TC_BODY() 214 for (test = cxx_o_tests; test->expargv[0] != NULL; test++) { in ATF_TC_BODY() 224 RE(atf_build_cxx_o(test->sfile, test->ofile, test->optargs, in ATF_TC_BODY() [all …]
|
| /freebsd-13.1/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/ |
| H A D | tst.br.d.out | 1 test:entry 2 test:0 3 test:4 4 test:8 5 test:c 6 test:10 7 test:14 8 test:18 9 test:1c 10 test:20 [all …]
|
| /freebsd-13.1/lib/msun/tests/ |
| H A D | lrint_test.c | 45 #define test(func, x, result, excepts) do { \ macro 56 test(lrint, x, result, excepts); \ 57 test(lrintf, x, result, excepts); \ 58 test(lrintl, x, result, excepts); \ 59 test(llrint, x, result, excepts); \ 60 test(llrintf, x, result, excepts); \ 61 test(llrintl, x, result, excepts); \ 88 test(lrint, 0x7fffffff.8p0, IGNORE, FE_INVALID); in run_tests() 93 test(lrint, 0x80000000.0p0, IGNORE, FE_INVALID); in run_tests() 96 test(lrintf, 0x7fffff80.0p0f, 0x7fffff80l, 0); in run_tests() [all …]
|
| H A D | lround_test.c | 43 #define test(func, x, result, excepts) do { \ macro 59 test(lround, x, result, excepts); \ 60 test(lroundf, x, result, excepts); \ 61 test(llround, x, result, excepts); \ 62 test(llroundf, x, result, excepts); \ 81 test(lround, 0x7fffffff.8p0, IGNORE, FE_INVALID); in ATF_TC_BODY() 82 test(lround, -0x80000000.8p0, IGNORE, FE_INVALID); in ATF_TC_BODY() 83 test(lround, 0x80000000.0p0, IGNORE, FE_INVALID); in ATF_TC_BODY() 84 test(lround, 0x7fffffff.4p0, 0x7fffffffl, FE_INEXACT); in ATF_TC_BODY() 86 test(lroundf, 0x80000000.0p0f, IGNORE, FE_INVALID); in ATF_TC_BODY() [all …]
|
| H A D | fma_test.c | 64 test(fma, (double)(x), (double)(y), (double)(z), \ 66 test(fmaf, (float)(x), (float)(y), (float)(z), \ 115 test(fmaf, -FLT_MIN, FLT_MIN, 0.0, -0.0, in test_zeroes() 117 test(fma, -DBL_MIN, DBL_MIN, 0.0, -0.0, in test_zeroes() 119 test(fmal, -LDBL_MIN, LDBL_MIN, 0.0, -0.0, in test_zeroes() 156 test(fmal, LDBL_MAX, -LDBL_MAX, INFINITY, INFINITY, in test_infinities() 189 test(fma, one, one, 0x1.0p-200, 1.0 + DBL_EPSILON, in test_small_z() 272 test(fmaf, -0x1.0p-50, -0x1.0p-50, -1.0, in test_big_z() 274 test(fma, -0x1.0p-100, -0x1.0p-100, -1.0, in test_big_z() 276 test(fmal, -0x1.0p-100, -0x1.0p-100, -1.0, in test_big_z() [all …]
|
| /freebsd-13.1/contrib/googletest/googletest/test/ |
| H A D | googletest-shuffle-test.py | 120 for test in tests: 216 self.assert_(test in ALL_TESTS, '%s is an invalid test' % (test,)) 218 self.assert_(test in ACTIVE_TESTS, '%s is an invalid test' % (test,)) 220 self.assert_(test in FILTERED_TESTS, '%s is an invalid test' % (test,)) 222 self.assert_(test in SHARDED_TESTS, '%s is an invalid test' % (test,)) 225 for test in ALL_TESTS: 226 self.assert_(test in SHUFFLED_ALL_TESTS, '%s is missing' % (test,)) 228 self.assert_(test in SHUFFLED_ACTIVE_TESTS, '%s is missing' % (test,)) 230 self.assert_(test in SHUFFLED_FILTERED_TESTS, '%s is missing' % (test,)) 232 self.assert_(test in SHUFFLED_SHARDED_TESTS, '%s is missing' % (test,)) [all …]
|
| /freebsd-13.1/contrib/atf/atf-c++/ |
| H A D | build_test.cpp | 155 for (struct c_o_test* test = c_o_tests; test->expargv[0] != NULL; in ATF_TEST_CASE_BODY() local 156 test++) { in ATF_TEST_CASE_BODY() 164 atf::build::c_o(test->sfile, test->ofile, in ATF_TEST_CASE_BODY() 166 check_equal_argvs(argv, test->expargv); in ATF_TEST_CASE_BODY() 177 for (struct cpp_test* test = cpp_tests; test->expargv[0] != NULL; in ATF_TEST_CASE_BODY() local 178 test++) { in ATF_TEST_CASE_BODY() 185 atf::build::cpp(test->sfile, test->ofile, in ATF_TEST_CASE_BODY() 187 check_equal_argvs(argv, test->expargv); in ATF_TEST_CASE_BODY() 198 for (struct cxx_o_test* test = cxx_o_tests; test->expargv[0] != NULL; in ATF_TEST_CASE_BODY() local 199 test++) { in ATF_TEST_CASE_BODY() [all …]
|
| /freebsd-13.1/tools/regression/sockets/zerosend/ |
| H A D | zerosend.c | 49 try_0send(const char *test, int fd) in try_0send() argument 57 err(1, "%s: try_0send", test); in try_0send() 63 try_0write(const char *test, int fd) in try_0write() argument 71 err(1, "%s: try_0write", test); in try_0write() 90 err(1, "%s: setup_udp: socket", test); in setup_udp() 138 err(1, "%s: listen", test); in setup_tcp() 159 err(1, "%s: sleep(1)", test); in setup_tcp() 162 err(1, "%s: accept", test); in setup_tcp() 164 err(1, "%s: sleep(1)", test); in setup_tcp() 202 setup_pipe(const char *test, int *fdp) in setup_pipe() argument [all …]
|
| /freebsd-13.1/contrib/wpa/src/utils/ |
| H A D | utils_module_tests.c | 1099 if (const_time_eq(test->a, test->b) != test->expected) { in const_time_tests() 1102 test->a, test->b); in const_time_tests() 1105 if (const_time_eq_u8(test->a, test->b) != test->expected_u8) { in const_time_tests() 1108 test->a, test->b); in const_time_tests() 1117 if (const_time_eq_bin(test->a, test->b, test->len) != in const_time_tests() 1134 test->mask, test->true_val, test->false_val); in const_time_tests() 1147 test->mask, test->true_val, test->false_val); in const_time_tests() 1160 test->mask, test->true_val, test->false_val); in const_time_tests() 1173 test->mask, test->true_val, test->false_val); in const_time_tests() 1198 res = const_time_memcmp(test->a, test->b, test->len); in const_time_tests() [all …]
|
| /freebsd-13.1/crypto/openssh/openbsd-compat/regress/ |
| H A D | strtonumtest.c | 62 test("1", 0, 10, 1); in main() 63 test("0", -2, 5, 1); in main() 64 test("0", 2, 5, 0); in main() 65 test("0", 2, LLONG_MAX, 0); in main() 66 test("-2", 0, LLONG_MAX, 0); in main() 67 test("0", -5, LLONG_MAX, 1); in main() 68 test("-3", -3, LLONG_MAX, 1); in main() 75 test("-2", 10, -1, 0); in main() 76 test("-2", -10, -1, 1); in main() 77 test("-20", -10, -1, 0); in main() [all …]
|