| /freebsd-13-stable/tools/regression/priv/ |
| HD | main.h | 47 void setup_dir(const char *test, char *dpathp, uid_t uid, gid_t gid, 49 void setup_file(const char *test, char *fpathp, uid_t uid, gid_t gid, 51 void expect(const char *test, int error, int expected_error, 59 struct test { struct 62 struct test *test); argument 64 struct test *test); 66 struct test *test); argument 74 int priv_acct_setup(int, int, struct test *); 75 void priv_acct_enable(int, int, struct test *); 76 void priv_acct_disable(int, int, struct test *); [all …]
|
| HD | priv_netinet_ipsec.c | 54 struct test *test, int af) in priv_netinet_ipsec_policy_bypass_setup_af() argument 88 struct test *test) in priv_netinet_ipsec_policy4_bypass_setup() argument 91 return (priv_netinet_ipsec_policy_bypass_setup_af(asroot, injail, test, in priv_netinet_ipsec_policy4_bypass_setup() 98 struct test *test) in priv_netinet_ipsec_policy6_bypass_setup() argument 101 return (priv_netinet_ipsec_policy_bypass_setup_af(asroot, injail, test, in priv_netinet_ipsec_policy6_bypass_setup() 109 struct test *test, int af) in priv_netinet_ipsec_policy_entrust_setup_af() argument 143 struct test *test) in priv_netinet_ipsec_policy4_entrust_setup() argument 146 return (priv_netinet_ipsec_policy_entrust_setup_af(asroot, injail, test, in priv_netinet_ipsec_policy4_entrust_setup() 153 struct test *test) in priv_netinet_ipsec_policy6_entrust_setup() argument 156 return (priv_netinet_ipsec_policy_entrust_setup_af(asroot, injail, test, in priv_netinet_ipsec_policy6_entrust_setup() [all …]
|
| HD | main.c | 68 static struct test tests[] = { 362 static int tests_count = sizeof(tests) / sizeof(struct test); 365 expect(const char *test, int error, int expected_error, int expected_errno) in expect() argument 371 warnx("%s: returned 0", test); in expect() 376 warn("%s: returned (%d, %d)", test, error, errno); in expect() 379 warn("%s: returned (%d, %d)", test, error, errno); in expect() 385 setup_dir(const char *test, char *dpathp, uid_t uid, gid_t gid, mode_t mode) in setup_dir() argument 390 err(-1, "test %s: mkdtemp", test); in setup_dir() 393 err(-1, "test %s: chown(%s, %d, %d)", test, dpathp, uid, in setup_dir() 397 err(-1, "test %s: chmod(%s, 0%o)", test, dpathp, mode); in setup_dir() [all …]
|
| /freebsd-13-stable/contrib/ntp/sntp/libevent/test/ |
| HD | include.am | 1 # test/Makefile.am for libevent 10 test/check-dumpevents.py \ 11 test/regress.gen.c \ 12 test/regress.gen.h \ 13 test/regress.rpc \ 14 test/rpcgen_wrapper.sh \ 15 test/print-winsock-errors.c \ 16 test/test.sh 19 test/bench \ 20 test/bench_cascade \ [all …]
|
| /freebsd-13-stable/contrib/libevent/test/ |
| HD | include.am | 1 # test/Makefile.am for libevent 10 test/check-dumpevents.py \ 11 test/regress.gen.c \ 12 test/regress.gen.h \ 13 test/regress.rpc \ 14 test/rpcgen_wrapper.sh \ 15 test/print-winsock-errors.c \ 16 test/test.sh 19 test/bench \ 20 test/bench_cascade \ [all …]
|
| /freebsd-13-stable/contrib/netbsd-tests/lib/libbluetooth/ |
| HD | t_sdp_put.c | 49 sdp_data_t test = { buf, buf + sizeof(buf) }; in ATF_TC_BODY() local 57 ATF_REQUIRE(sdp_put_data(&test, &value)); in ATF_TC_BODY() 58 test.end = test.next; in ATF_TC_BODY() 59 test.next = buf; in ATF_TC_BODY() 67 ATF_REQUIRE_EQ(test.end - test.next, sizeof(expect)); in ATF_TC_BODY() 68 ATF_CHECK(memcmp(expect, test.next, sizeof(expect)) == 0); in ATF_TC_BODY() 82 sdp_data_t test = { buf, buf + sizeof(buf) }; in ATF_TC_BODY() local 89 ATF_REQUIRE_EQ(sdp_put_attr(&test, 0xabcd, &value), false); in ATF_TC_BODY() 91 ATF_REQUIRE(sdp_put_attr(&test, 0x1337, &value)); in ATF_TC_BODY() 92 test.end = test.next; in ATF_TC_BODY() [all …]
|
| HD | t_sdp_set.c | 53 sdp_data_t test = { data, data + sizeof(data) }; in ATF_TC_BODY() local 56 ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_BOOL); in ATF_TC_BODY() 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() 61 ATF_REQUIRE(sdp_get_data(&test, &discard)); in ATF_TC_BODY() 63 ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_NIL); in ATF_TC_BODY() 64 ATF_CHECK_EQ(sdp_set_bool(&test, true), false); /* not bool */ in ATF_TC_BODY() 65 ATF_REQUIRE(sdp_get_data(&test, &discard)); in ATF_TC_BODY() [all …]
|
| HD | t_sdp_get.c | 58 sdp_data_t test = { data, data + sizeof(data) }; in ATF_TC_BODY() local 65 ATF_REQUIRE(sdp_get_data(&test, &value)); in ATF_TC_BODY() 69 ATF_REQUIRE(sdp_get_data(&test, &value)); in ATF_TC_BODY() 73 ATF_REQUIRE(sdp_get_data(&test, &value)); in ATF_TC_BODY() 79 ATF_REQUIRE(sdp_get_data(&test, &value)); in ATF_TC_BODY() 83 ATF_CHECK_EQ(test.next, test.end); in ATF_TC_BODY() 105 sdp_data_t test = { data, data + sizeof(data) }; in ATF_TC_BODY() local 113 ATF_REQUIRE(sdp_get_attr(&test, &attr, &value)); in ATF_TC_BODY() 118 ATF_REQUIRE_EQ(sdp_get_attr(&test, &attr, &value), false); in ATF_TC_BODY() 119 ATF_REQUIRE(sdp_get_data(&test, &value)); in ATF_TC_BODY() [all …]
|
| HD | t_sdp_data.c | 50 sdp_data_t test = { data, data + sizeof(data) }; in ATF_TC_BODY() local 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() 90 sdp_data_t test = { data, data + sizeof(data) }; in ATF_TC_BODY() local 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() [all …]
|
| /freebsd-13-stable/tests/sys/file/ |
| HD | dup_test.c | 81 int orgfd, fd1, fd2, test = 0; in main() local 90 printf("ok %d - dup(2) works\n", ++test); in main() 99 printf("ok %d - dup2(2) works\n", ++test); in main() 102 ++test; in main() 105 test); in main() 107 printf("ok %d - dup2(2) returned a correct fd\n", test); in main() 110 ++test; in main() 113 test); in main() 115 printf("ok %d - dup2(2) cleared close-on-exec\n", test); in main() 145 printf("ok %d - dup2(2) to itself works\n", ++test); in main() [all …]
|
| /freebsd-13-stable/sys/contrib/libsodium/ |
| HD | .gitignore | 78 test-driver 79 test/default/browser 80 test/default/*.asm.js 81 test/default/*.res 82 test/default/*.trs 83 test/default/aead_aes256gcm 84 test/default/aead_chacha20poly1305 85 test/default/aead_xchacha20poly1305 86 test/default/auth 87 test/default/auth2 [all …]
|
| /freebsd-13-stable/contrib/byacc/ |
| HD | CHANGES | 5 * test/yacc/grammar.tab.c, test/btyacc/grammar.tab.c, test/grammar.y, reader.c: 40 * test/run_make.sh: 55 …test/btyacc/calc_code_all.error, test/btyacc/calc_code_all.output, test/btyacc/calc_code_all.tab.c… 73 …test/yacc/calc_code_all.error, test/yacc/calc_code_all.output, test/yacc/calc_code_default.error, … 78 …* test/calc_code_imports.y, test/calc_code_all.y, test/calc_code_default.y, test/calc_code_top.y, … 102 * test/btyacc/err_inherit4.tab.h, test/btyacc/btyacc_demo.tab.h: regen 116 …test/btyacc/help.error, test/btyacc/no_b_opt.error, test/btyacc/no_output2.error, test/btyacc/no_p… 119 * test/run_test.sh: 121 filter that to "error message" in the test reference files. 127 * test/run_test.sh: [all …]
|
| HD | MANIFEST | 61 package/pkgsrc/DESCR scripts from NetBSD pkgsrc, for test-builds 62 package/pkgsrc/Makefile scripts from NetBSD pkgsrc, for test-builds 63 package/pkgsrc/PLIST scripts from NetBSD pkgsrc, for test-builds 64 package/pkgsrc/distinfo scripts from NetBSD pkgsrc, for test-builds 65 test subdirectory 66 test/README describe contents of "test" subdirectory 67 test/btyacc subdirectory 68 test/btyacc/big_b.error exercise -L/-B options 69 test/btyacc/big_b.output exercise -L/-B options 70 test/btyacc/big_l.error exercise -L/-B options [all …]
|
| /freebsd-13-stable/sys/dev/ioat/ |
| HD | ioat_test.c | 67 struct ioat_test *test; member 86 struct ioat_test *test; in ioat_test_transaction_destroy() local 89 test = tx->test; in ioat_test_transaction_destroy() 93 if (test->testkind == IOAT_TEST_DMA_8K) in ioat_test_transaction_destroy() 105 test_transaction *ioat_test_transaction_create(struct ioat_test *test, in ioat_test_transaction_create() argument 115 tx->length = test->buffer_size; in ioat_test_transaction_create() 118 if (test->testkind == IOAT_TEST_DMA_8K) in ioat_test_transaction_create() 119 tx->buf[i] = malloc(test->buffer_size, M_IOAT_TEST, in ioat_test_transaction_create() 122 tx->buf[i] = contigmalloc(test->buffer_size, in ioat_test_transaction_create() 149 struct ioat_test *test; in ioat_compare_ok() local [all …]
|
| /freebsd-13-stable/tools/regression/netinet/ipdivert/ |
| HD | ipdivert.c | 50 ok(const char *test) in ok() argument 53 fprintf(stderr, "%s: OK\n", test); in ok() 57 fail(const char *test, const char *note) in fail() argument 60 fprintf(stderr, "%s - %s: FAIL (%s)\n", test, note, strerror(errno)); in fail() 65 failx(const char *test, const char *note) in failx() argument 68 fprintf(stderr, "%s - %s: FAIL\n", test, note); in failx() 73 ipdivert_create(const char *test) in ipdivert_create() argument 79 fail(test, "socket"); in ipdivert_create() 84 ipdivert_close(const char *test, int s) in ipdivert_close() argument 88 fail(test, "close"); in ipdivert_close() [all …]
|
| /freebsd-13-stable/contrib/atf/atf-c/ |
| HD | 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() 158 printf("> Test: %s\n", test->msg); in ATF_TC_BODY() 160 verbose_set_env("ATF_BUILD_CC", test->cc); in ATF_TC_BODY() 161 verbose_set_env("ATF_BUILD_CFLAGS", test->cflags); in ATF_TC_BODY() 162 verbose_set_env("ATF_BUILD_CPPFLAGS", test->cppflags); in ATF_TC_BODY() 166 if (test->hasoptargs) 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() 171 check_equal_array(test->expargv, argv); in ATF_TC_BODY() [all …]
|
| /freebsd-13-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/ |
| HD | 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-stable/lib/msun/tests/ |
| HD | lrint_test.c | 43 #define test(func, x, result, excepts) do { \ macro 54 test(lrint, x, result, excepts); \ 55 test(lrintf, x, result, excepts); \ 56 test(lrintl, x, result, excepts); \ 57 test(llrint, x, result, excepts); \ 58 test(llrintf, x, result, excepts); \ 59 test(llrintl, x, result, excepts); \ 86 test(lrint, 0x7fffffff.8p0, IGNORE, FE_INVALID); in run_tests() 87 test(lrint, -0x80000000.4p0, (long)-0x80000000l, FE_INEXACT); in run_tests() 90 test(lrint, -0x80000000.8p0, IGNORE, FE_INVALID); in run_tests() [all …]
|
| HD | lround_test.c | 41 #define test(func, x, result, excepts) do { \ macro 57 test(lround, x, result, excepts); \ 58 test(lroundf, x, result, excepts); \ 59 test(llround, x, result, excepts); \ 60 test(llroundf, x, result, excepts); \ 79 test(lround, 0x7fffffff.8p0, IGNORE, FE_INVALID); in ATF_TC_BODY() 80 test(lround, -0x80000000.8p0, IGNORE, FE_INVALID); in ATF_TC_BODY() 81 test(lround, 0x80000000.0p0, IGNORE, FE_INVALID); in ATF_TC_BODY() 82 test(lround, 0x7fffffff.4p0, 0x7fffffffl, FE_INEXACT); in ATF_TC_BODY() 83 test(lround, -0x80000000.4p0, -0x80000000l, FE_INEXACT); in ATF_TC_BODY() [all …]
|
| HD | fma_test.c | 53 #define test(func, x, y, z, result, exceptmask, excepts) do { \ macro 62 test(fma, (double)(x), (double)(y), (double)(z), \ 64 test(fmaf, (float)(x), (float)(y), (float)(z), \ 66 test(fmal, (x), (y), (z), (result), (exceptmask), (excepts)); \ 72 test((func), (x), (y), (z), (rn), (exceptmask), (excepts)); \ 74 test((func), (x), (y), (z), (ru), (exceptmask), (excepts)); \ 76 test((func), (x), (y), (z), (rd), (exceptmask), (excepts)); \ 78 test((func), (x), (y), (z), (rz), (exceptmask), (excepts)); \ 113 test(fmaf, -FLT_MIN, FLT_MIN, 0.0, -0.0, in test_zeroes() 115 test(fma, -DBL_MIN, DBL_MIN, 0.0, -0.0, in test_zeroes() [all …]
|
| /freebsd-13-stable/contrib/googletest/googletest/test/ |
| HD | googletest-shuffle-test.py | 34 from googletest.test import gtest_test_utils 120 for test in tests: 121 test_case = test.split('.')[0] 222 for test in SHUFFLED_ALL_TESTS: 225 SHUFFLED_ALL_TESTS.count(test), 226 '%s appears more than once' % (test,), 228 for test in SHUFFLED_ACTIVE_TESTS: 231 SHUFFLED_ACTIVE_TESTS.count(test), 232 '%s appears more than once' % (test,), 234 for test in SHUFFLED_FILTERED_TESTS: [all …]
|
| /freebsd-13-stable/contrib/atf/atf-c++/ |
| 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() 157 std::cout << "> Test: " << test->msg << "\n"; in ATF_TEST_CASE_BODY() 159 verbose_set_env("ATF_BUILD_CC", test->cc); in ATF_TEST_CASE_BODY() 160 verbose_set_env("ATF_BUILD_CFLAGS", test->cflags); in ATF_TEST_CASE_BODY() 161 verbose_set_env("ATF_BUILD_CPPFLAGS", test->cppflags); in ATF_TEST_CASE_BODY() 164 atf::build::c_o(test->sfile, test->ofile, in ATF_TEST_CASE_BODY() 165 atf::process::argv_array(test->optargs)); 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 [all …]
|
| /freebsd-13-stable/tools/regression/sockets/zerosend/ |
| HD | zerosend.c | 47 try_0send(const char *test, int fd) in try_0send() argument 55 err(1, "%s: try_0send", test); in try_0send() 57 errx(1, "%s: try_0send: returned %zd", test, len); in try_0send() 61 try_0write(const char *test, int fd) in try_0write() argument 69 err(1, "%s: try_0write", test); in try_0write() 71 errx(1, "%s: try_0write: returned %zd", test, len); in try_0write() 75 setup_udp(const char *test, int *fdp, int port1, int port2) in setup_udp() argument 88 err(1, "%s: setup_udp: socket", test); in setup_udp() 90 err(1, "%s: setup_udp: bind(%s, %d)", test, in setup_udp() 94 err(1, "%s: setup_udp: connect(%s, %d)", test, in setup_udp() [all …]
|
| /freebsd-13-stable/contrib/wpa/src/utils/ |
| HD | utils_module_tests.c | 57 const struct printf_test_data *test = &printf_tests[i]; in printf_encode_decode_tests() local 58 printf_encode(buf, sizeof(buf), test->data, test->len); in printf_encode_decode_tests() 62 if (binlen != test->len || in printf_encode_decode_tests() 63 os_memcmp(bin, test->data, binlen) != 0) { in printf_encode_decode_tests() 69 binlen = printf_decode(bin, sizeof(bin), test->encoded); in printf_encode_decode_tests() 70 if (binlen != test->len || in printf_encode_decode_tests() 71 os_memcmp(bin, test->data, binlen) != 0) { in printf_encode_decode_tests() 898 const struct json_test_data *test = &json_test_cases[i]; in json_tests() local 901 root = json_parse(test->json, os_strlen(test->json)); in json_tests() 902 if ((root && !test->tree) || (!root && test->tree)) { in json_tests() [all …]
|
| /freebsd-13-stable/crypto/openssh/openbsd-compat/regress/ |
| HD | strtonumtest.c | 43 test(const char *p, long long lb, long long ub, int ok) in test() function 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() 69 test("-9223372036854775808", LLONG_MIN, LLONG_MAX, 1); in main() 70 test("9223372036854775807", LLONG_MIN, LLONG_MAX, 1); in main() [all …]
|