Home
last modified time | relevance | path

Searched refs:test (Results 1 – 25 of 1964) sorted by relevance

12345678910>>...79

/freebsd-14-stable/tools/regression/priv/
HDmain.h47 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 …]
HDpriv_netinet_ipsec.c54 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 …]
/freebsd-14-stable/contrib/libevent/test/
HDinclude.am1 # 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-14-stable/contrib/ntp/sntp/libevent/test/
HDinclude.am1 # 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-14-stable/contrib/netbsd-tests/lib/libbluetooth/
HDt_sdp_put.c49 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 …]
HDt_sdp_set.c53 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 …]
HDt_sdp_get.c58 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 …]
/freebsd-14-stable/tests/sys/file/
HDdup_test.c81 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-14-stable/sys/contrib/libsodium/
HD.gitignore78 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-14-stable/contrib/byacc/
HDMANIFEST61 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 …]
HDCHANGES35 * test/run_test.sh: use context diff, to work with AIX
40 * makefile.in, test/run_make.sh, test/run_test.sh, test/run_lint.sh:
164 * test/run_test.sh:
169 * test/yacc/expr.oxout.tab.c, test/btyacc/expr.oxout.tab.c: regen
171 * test/expr.oxout.y, test/expr.oxout.h: fix gcc warnings
173 * test/yacc/expr.oxout.tab.c, test/yacc/expr.oxout.tab.h: regen
175 * test/run_make.sh: workaround for compiling the expr.oxout.y files
177 * test/expr.oxout.y: fix syntax error
179 * test/btyacc/expr.oxout.tab.c: regen
181 * test/expr.oxout.h: RCS_BASE
[all …]
/freebsd-14-stable/sys/dev/ioat/
HDioat_test.c67 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-14-stable/tools/regression/netinet/ipdivert/
HDipdivert.c50 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-14-stable/crypto/openssl/test/
HDgenerate_ssl_tests.pl54 foreach my $test (@ssltests::tests) {
55 $test->{"server"} = { (%ssltests::base_server, %{$test->{"server"}}) };
56 if (defined $test->{"server2"}) {
57 $test->{"server2"} = { (%ssltests::base_server, %{$test->{"server2"}}) };
59 if ($test->{"server"}->{"extra"} &&
60 defined $test->{"server"}->{"extra"}->{"ServerNameCallback"}) {
62 $test->{"reuse_server2"} = 1;
65 $test->{"server2"} = { };
67 if (defined $test->{"resume_server"}) {
68 $test->{"resume_server"} = { (%ssltests::base_server, %{$test->{"resume_server"}}) };
[all …]
HDhmactest.c41 } test[8] = { variable
92 ebcdic2ascii(test[0].data, test[0].data, test[0].data_len); in test_hmac_md5()
93 ebcdic2ascii(test[1].data, test[1].data, test[1].data_len); in test_hmac_md5()
94 ebcdic2ascii(test[2].key, test[2].key, test[2].key_len); in test_hmac_md5()
95 ebcdic2ascii(test[2].data, test[2].data, test[2].data_len); in test_hmac_md5()
99 test[idx].key, test[idx].key_len, in test_hmac_md5()
100 test[idx].data, test[idx].data_len, NULL, NULL), in test_hmac_md5()
103 return TEST_ptr(p) && TEST_str_eq(p, test[idx].digest); in test_hmac_md5()
116 || !TEST_false(HMAC_Update(ctx, test[4].data, test[4].data_len)) in test_hmac_bad()
118 || !TEST_false(HMAC_Update(ctx, test[4].data, test[4].data_len))) in test_hmac_bad()
[all …]
HDcmactest.c40 } test[3] = { variable
85 || !TEST_false(CMAC_Update(ctx, test[0].data, test[0].data_len)) in test_cmac_bad()
89 || !TEST_false(CMAC_Update(ctx, test[0].data, test[0].data_len)) in test_cmac_bad()
91 || !TEST_true(CMAC_Init(ctx, test[0].key, test[0].key_len, NULL, NULL)) in test_cmac_bad()
93 || !TEST_true(CMAC_Update(ctx, test[0].data, test[0].data_len)) in test_cmac_bad()
97 || !TEST_false(CMAC_Update(ctx, test[0].data, test[0].data_len))) in test_cmac_bad()
116 if (!TEST_true(CMAC_Init(ctx, test[0].key, test[0].key_len, in test_cmac_run()
118 || !TEST_true(CMAC_Update(ctx, test[0].data, test[0].data_len)) in test_cmac_run()
123 if (!TEST_str_eq(p, test[0].mac)) in test_cmac_run()
126 if (!TEST_true(CMAC_Init(ctx, test[1].key, test[1].key_len, in test_cmac_run()
[all …]
/freebsd-14-stable/crypto/openssl/fuzz/
HDbuild.info80 …PROGRAMS{noinst}=asn1-test asn1parse-test bignum-test bndiv-test client-test conf-test crl-test se…
83 PROGRAMS{noinst}=cmp-test
87 PROGRAMS{noinst}=cms-test
91 PROGRAMS{noinst}=ct-test
95 PROGRAMS{noinst}=x509-test
98 SOURCE[asn1-test]=asn1.c test-corpus.c fuzz_rand.c
99 INCLUDE[asn1-test]=../include
100 DEPEND[asn1-test]=../libcrypto ../libssl
102 SOURCE[asn1parse-test]=asn1parse.c test-corpus.c
103 INCLUDE[asn1parse-test]=../include
[all …]
/freebsd-14-stable/lib/msun/tests/
HDlrint_test.c43 #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 …]
HDlround_test.c41 #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 …]
HDfma_test.c53 #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-14-stable/tests/sys/sound/
HDpcm_read_write.c132 const struct afmt_test_data *test; in ATF_TC_BODY() local
138 test = &afmt_tests[i]; in ATF_TC_BODY()
142 memcpy(src, test->buffer, test->size); in ATF_TC_BODY()
145 expected = test->value; in ATF_TC_BODY()
146 result = pcm_sample_read(src, test->format); in ATF_TC_BODY()
149 test->label, expected, result); in ATF_TC_BODY()
152 expected = local_calc_limit(test->value, test->size * 8); in ATF_TC_BODY()
153 result = pcm_sample_read_calc(src, test->format); in ATF_TC_BODY()
156 test->label, expected, result); in ATF_TC_BODY()
159 expected = local_normalize(test->value, test->size * 8, 32); in ATF_TC_BODY()
[all …]
/freebsd-14-stable/contrib/googletest/googletest/test/
HDgoogletest-shuffle-test.py34 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-14-stable/tools/regression/sockets/zerosend/
HDzerosend.c47 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-14-stable/contrib/wpa/src/utils/
HDutils_module_tests.c57 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-14-stable/crypto/openssh/openbsd-compat/regress/
HDstrtonumtest.c43 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 …]

12345678910>>...79