Home
last modified time | relevance | path

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

12345678910>>...76

/freebsd/tools/regression/priv/
H A Dmain.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 …]
H A Dpriv_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/contrib/ntp/sntp/libevent/test/
H A Dinclude.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/contrib/libevent/test/
H A Dinclude.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/contrib/netbsd-tests/lib/libbluetooth/
H A Dt_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 …]
H A Dt_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 …]
H A Dt_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/tests/sys/file/
H A Ddup_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/sys/contrib/libsodium/
H A D.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/contrib/byacc/
H A DMANIFEST62 package/pkgsrc/DESCR scripts from NetBSD pkgsrc, for test-builds
63 package/pkgsrc/Makefile scripts from NetBSD pkgsrc, for test-builds
64 package/pkgsrc/PLIST scripts from NetBSD pkgsrc, for test-builds
65 package/pkgsrc/distinfo scripts from NetBSD pkgsrc, for test-builds
66 test subdirectory
67 test/README summary of "test" directory
68 test/btyacc subdirectory
69 test/btyacc/big_b.error exercise -L/-B options
70 test/btyacc/big_b.output exercise -L/-B options
71 test/btyacc/big_l.error exercise -L/-B options
[all …]
H A DCHANGES80 make test-differences smaller when compiling with YY_NO_LEAKS by replacing
135 * test/yacc/ok_syntax1.tab.h, test/yacc/ok_syntax1.tab.c,
136 test/btyacc/ok_syntax1.tab.h, test/btyacc/ok_syntax1.tab.c:
139 * test/ok_syntax1.y:
140 modify test for %union to add tag for testing reader.c
185 * test/run_test.sh: use context diff, to work with AIX
190 * makefile.in, test/run_make.sh, test/run_test.sh, test/run_lint.sh:
314 * test/run_test.sh:
319 * test/yacc/expr.oxout.tab.c, test/btyacc/expr.oxout.tab.c: regen
321 * test/expr.oxout.y, test/expr.oxout.h: fix gcc warnings
[all …]
/freebsd/sys/dev/ioat/
H A Dioat_test.c57 MALLOC_DEFINE(M_IOAT_TEST, "ioat_test", "ioat test allocations");
66 struct ioat_test *test; member
74 MTX_SYSINIT(ioat_test_lk, &ioat_test_lk, "test coordination mtx", MTX_DEF);
98 test_transaction *ioat_test_transaction_create(struct ioat_test *test, in ioat_test_transaction_destroy()
108 tx->length = test->buffer_size; in ioat_test_transaction_create()
111 if (test->testkind == IOAT_TEST_DMA_8K) in ioat_test_transaction_create()
112 tx->buf[i] = malloc(test->buffer_size, M_IOAT_TEST, in ioat_test_transaction_create()
115 tx->buf[i] = contigmalloc(test->buffer_size, in ioat_test_transaction_create()
142 struct ioat_test *test; in dump_hex()
146 test
85 struct ioat_test *test; ioat_test_transaction_destroy() local
104 ioat_test_transaction_create(struct ioat_test * test,unsigned num_buffers) ioat_test_transaction_create() argument
148 struct ioat_test *test; ioat_compare_ok() local
181 struct ioat_test *test; ioat_dma_test_callback() local
203 ioat_test_prealloc_memory(struct ioat_test * test,int index) ioat_test_prealloc_memory() argument
235 ioat_test_release_memory(struct ioat_test * test) ioat_test_release_memory() argument
249 ioat_test_submit_1_tx(struct ioat_test * test,bus_dmaengine_t dma) ioat_test_submit_1_tx() argument
361 struct ioat_test *test; ioat_dma_test() local
[all...]
/freebsd/tools/regression/netinet/ipdivert/
H A Dipdivert.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/contrib/atf/atf-c/
H A Dbuild_test.c155 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/crypto/openssl/test/
H A Dgenerate_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 …]
H A Dhmactest.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 …]
H A Dcmactest.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/crypto/openssl/fuzz/
H A Dbuild.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/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/pid/
H A Dtst.br.d.out1 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/lib/msun/tests/
H A Dlrint_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 …]
H A Dlround_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 …]
/freebsd/contrib/googletest/googletest/test/
H A Dgoogletest-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/contrib/atf/atf-c++/
H A Dbuild_test.cpp155 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/tools/regression/sockets/zerosend/
H A Dzerosend.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/contrib/wpa/src/utils/
H A Dutils_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 …]

12345678910>>...76