Home
last modified time | relevance | path

Searched refs:tests (Results 1 – 25 of 897) sorted by relevance

12345678910>>...36

/NextBSD/tools/regression/doat/
HDdoat.c65 struct testcase tests[10]; /* no more than 10 tests */ member
69 struct test *tests; variable
108 tests = calloc(NUM_OF_TESTS + 1, sizeof(struct test)); in setup()
109 if (tests == NULL) { in setup()
198 tests[0].syscall = SYS_faccessat; in setup()
199 tests[0].num_of_cases = 6; in setup()
200 tests[0].name = "faccessat"; in setup()
201 tests[0].tests[0].result = EBADF; in setup()
202 tests[0].tests[0].params[0].i = 106; /* invalid fd */ in setup()
203 tests[0].tests[0].params[1].cp = relative_path; in setup()
[all …]
/NextBSD/contrib/bmake/
HDFILES96 unit-tests/Makefile.in
97 unit-tests/comment.exp
98 unit-tests/comment.mk
99 unit-tests/cond1.exp
100 unit-tests/cond1.mk
101 unit-tests/cond2.exp
102 unit-tests/cond2.mk
103 unit-tests/doterror.exp
104 unit-tests/doterror.mk
105 unit-tests/dotwait.exp
[all …]
/NextBSD/crypto/heimdal/lib/asn1/
HDcheck-der.c60 struct test_case tests[] = { in test_integer() local
76 int ntests = sizeof(tests) / sizeof(*tests); in test_integer()
79 tests[i].val = &values[i]; in test_integer()
80 if (asprintf (&tests[i].name, "integer %d", values[i]) < 0) in test_integer()
82 if (tests[i].name == NULL) in test_integer()
86 ret = generic_test (tests, ntests, sizeof(int), in test_integer()
95 free (tests[i].name); in test_integer()
186 struct test_case tests[] = { in test_unsigned() local
200 int ntests = sizeof(tests) / sizeof(*tests); in test_unsigned()
203 tests[i].val = &values[i]; in test_unsigned()
[all …]
HDcheck-gen.c98 struct test_case tests[] = { in test_principal() local
123 int ntests = sizeof(tests) / sizeof(*tests); in test_principal()
126 tests[i].val = &values[i]; in test_principal()
127 if (asprintf (&tests[i].name, "Principal %d", i) < 0) in test_principal()
129 if (tests[i].name == NULL) in test_principal()
133 ret = generic_test (tests, ntests, sizeof(Principal), in test_principal()
141 free (tests[i].name); in test_principal()
168 struct test_case tests[] = { in test_authenticator() local
193 int ntests = sizeof(tests) / sizeof(*tests); in test_authenticator()
196 tests[i].val = &values[i]; in test_authenticator()
[all …]
HDcheck-common.c196 generic_test (const struct test_case *tests, in generic_test() argument
221 current_test = tests[i].name; in generic_test()
237 buf_sz = tests[i].byte_len; in generic_test()
242 tests[i].val, &sz); in generic_test()
244 printf ("encoding of %s failed %d\n", tests[i].name, ret); in generic_test()
248 if (sz != tests[i].byte_len) { in generic_test()
250 tests[i].name, in generic_test()
251 (unsigned long)sz, (unsigned long)tests[i].byte_len); in generic_test()
257 length_sz = (*length) (tests[i].val); in generic_test()
260 tests[i].name, (unsigned long)length_sz, (unsigned long)sz); in generic_test()
[all …]
/NextBSD/tools/regression/tmpfs/
HDMakefile4 tests= t_mount macro
5 tests+= t_statvfs
6 tests+= t_mkdir
7 tests+= t_vnode_leak
8 tests+= t_setattr
9 tests+= t_rmdir
10 tests+= t_trail_slash
11 tests+= t_dots
12 tests+= t_create
13 tests+= t_remove
[all …]
/NextBSD/crypto/heimdal/lib/roken/
HDparse_time-test.c45 } tests[] = { variable
62 for (i = 0; i < sizeof(tests)/sizeof(tests[0]); ++i) { in main()
65 sz = unparse_time(tests[i].val, NULL, 0); in main()
66 if (sz != tests[i].size) in main()
68 (unsigned long)sz, i, (unsigned long)tests[i].size); in main()
70 for (buf_sz = 0; buf_sz < tests[i].size + 2; buf_sz++) { in main()
74 sz = unparse_time(tests[i].val, buf, buf_sz); in main()
75 if (sz != tests[i].size) in main()
78 (unsigned long)tests[i].size, in main()
80 if (buf_sz > 0 && memcmp(buf, tests[i].str, buf_sz - 1) != 0) in main()
[all …]
HDparse_bytes-test.c44 } tests[] = { variable
63 for (i = 0; i < sizeof(tests)/sizeof(tests[0]); ++i) { in main()
65 int val = parse_bytes (tests[i].str, tests[i].def_unit); in main()
68 if (val != tests[i].val) { in main()
70 tests[i].str, in main()
71 tests[i].def_unit ? tests[i].def_unit : "none", in main()
72 val, tests[i].val); in main()
75 if (tests[i].canonicalp) { in main()
76 len = unparse_bytes (tests[i].val, buf, sizeof(buf)); in main()
77 if (strcmp (tests[i].str, buf) != 0) { in main()
[all …]
HDstrpftime-test.c47 } tests[] = { variable
235 for (i = 0; i < sizeof(tests)/sizeof(tests[0]); ++i) { in main()
238 tm = gmtime (&tests[i].t); in main()
240 for (j = 0; tests[i].vals[j].format != NULL; ++j) { in main()
246 len = strftime (buf, sizeof(buf), tests[i].vals[j].format, tm); in main()
249 tests[i].vals[j].format, (unsigned long)len, in main()
254 if (strcmp (buf, tests[i].vals[j].result) != 0) { in main()
256 tests[i].vals[j].format, buf, in main()
257 tests[i].vals[j].result); in main()
262 ptr = strptime (tests[i].vals[j].result, in main()
[all …]
/NextBSD/contrib/expat/
HDMakefile.in60 cd tests && rm -rf .libs runtests runtests.@OBJEXT@ runtestspp runtestspp.@OBJEXT@
61 cd tests && rm -f chardata.@OBJEXT@ minicheck.@OBJEXT@
63 rm -f examples/core tests/core xmlwf/core
76 check: tests/runtests tests/runtestspp
77 tests/runtests
78 tests/runtestspp
103 @for d in lib xmlwf examples tests ; do \
163 tests/chardata.@OBJEXT@: tests/chardata.c tests/chardata.h
164 tests/minicheck.@OBJEXT@: tests/minicheck.c tests/minicheck.h
165 tests/runtests.@OBJEXT@: tests/runtests.c tests/chardata.h
[all …]
/NextBSD/contrib/atf/atf-c++/
Dmacros.hpp41 class atfu_tc_ ## name : public atf::tests::tc { \
47 atfu_tc_ ## name::atfu_tc_ ## name(void) : atf::tests::tc(#name, false) {} \
52 class atfu_tc_ ## name : public atf::tests::tc { \
59 atfu_tc_ ## name::atfu_tc_ ## name(void) : atf::tests::tc(#name, false) {} \
64 class atfu_tc_ ## name : public atf::tests::tc { \
72 atfu_tc_ ## name::atfu_tc_ ## name(void) : atf::tests::tc(#name, true) {} \
92 #define ATF_FAIL(reason) atf::tests::tc::fail(reason)
94 #define ATF_SKIP(reason) atf::tests::tc::skip(reason)
96 #define ATF_PASS() atf::tests::tc::pass()
104 atf::tests::tc::fail(atfu_ss.str()); \
[all …]
Dmacros_test.cpp337 } *t, tests[] = { in ATF_TEST_CASE_BODY() local
346 for (t = &tests[0]; t->cond != NULL; t++) { in ATF_TEST_CASE_BODY()
347 atf::tests::vars_map config; in ATF_TEST_CASE_BODY()
382 } *t, tests[] = { in ATF_TEST_CASE_BODY() local
393 for (t = &tests[0]; t->v1 != NULL; t++) { in ATF_TEST_CASE_BODY()
394 atf::tests::vars_map config; in ATF_TEST_CASE_BODY()
430 } *t, tests[] = { in ATF_TEST_CASE_BODY() local
443 for (t = &tests[0]; t->value != NULL; t++) { in ATF_TEST_CASE_BODY()
444 atf::tests::vars_map config; in ATF_TEST_CASE_BODY()
476 } *t, tests[] = { in ATF_TEST_CASE_BODY() local
[all …]
/NextBSD/lib/msun/tests/
HDlogarithm_test.c199 } tests[] = { in run_accuracy_tests() local
224 for (i = 0; i < sizeof(tests) / sizeof(tests[0]); i++) { in run_accuracy_tests()
225 test_tol(log2, tests[i].x, tests[i].log2x, DBL_ULP()); in run_accuracy_tests()
226 test_tol(log2f, tests[i].x, tests[i].log2x, FLT_ULP()); in run_accuracy_tests()
227 test_tol(log2l, tests[i].x, tests[i].log2x, LDBL_ULP()); in run_accuracy_tests()
228 test_tol(log, tests[i].x, tests[i].logex, DBL_ULP()); in run_accuracy_tests()
229 test_tol(logf, tests[i].x, tests[i].logex, FLT_ULP()); in run_accuracy_tests()
230 test_tol(logl, tests[i].x, tests[i].logex, LDBL_ULP()); in run_accuracy_tests()
231 test_tol(log10, tests[i].x, tests[i].log10x, DBL_ULP()); in run_accuracy_tests()
232 test_tol(log10f, tests[i].x, tests[i].log10x, FLT_ULP()); in run_accuracy_tests()
[all …]
/NextBSD/contrib/netbsd-tests/crypto/opencrypto/
HDh_md5hmac.c49 } tests[] = { variable
150 for (i = 0; i < __arraycount(tests); i++) { in main()
151 if (tests[i].key_len != MD5_HMAC_KEYLEN) in main()
156 cs.mackeylen = tests[i].key_len; in main()
157 cs.mackey = __UNCONST(&tests[i].key); in main()
160 err(1, "CIOCGSESSION test %d", tests[i].num); in main()
166 co.len = tests[i].len; in main()
167 co.src = __UNCONST(&tests[i].data); in main()
171 err(1, "CIOCCRYPT test %d", tests[i].num); in main()
173 if (memcmp(co.mac, tests[i].mac, sizeof(tests[i].mac))) in main()
[all …]
HDh_sha1hmac.c49 } tests[] = { variable
160 for (i = 0; i < __arraycount(tests); i++) { in main()
161 if (tests[i].key_len != SHA1_HMAC_KEYLEN) in main()
166 cs.mackeylen = tests[i].key_len; in main()
167 cs.mackey = __UNCONST(&tests[i].key); in main()
170 err(1, "CIOCGSESSION test %d", tests[i].num); in main()
176 co.len = tests[i].len; in main()
177 co.src = __UNCONST(&tests[i].data); in main()
181 err(1, "CIOCCRYPT test %d", tests[i].num); in main()
183 if (memcmp(co.mac, &tests[i].mac, sizeof(tests[i].mac))) in main()
[all …]
HDh_aesctr1.c54 } tests[] = { variable
215 for (i = 0; i < __arraycount(tests); i++) { in main()
221 cs.keylen = tests[i].key_len; in main()
222 cs.key = __UNCONST(&tests[i].key); in main()
230 co.len = tests[i].len; in main()
231 co.src = __UNCONST(&tests[i].plaintx); in main()
234 co.iv = __UNCONST(&tests[i].iv); in main()
239 if (memcmp(co.dst, tests[i].ciphertx, tests[i].len)) { in main()
242 for (j = 0; j < tests[i].len; j++) in main()
244 buf[j], tests[i].ciphertx[j]); in main()
/NextBSD/lib/libc/regex/grot/
HDMakefile68 r: re tests
69 ./re <tests
70 ./re -el <tests
71 ./re -er <tests
73 ra: ./re tests
74 -./re <tests
75 -./re -el <tests
76 -./re -er <tests
78 rx: ./re tests
79 ./re -x <tests
[all …]
HDsplit.c213 } tests[] = { variable
287 for (n = 0; tests[n].str != NULL; n++) { in regress()
288 (void) strcpy(buf, tests[n].str); in regress()
290 nf = split(buf, fields, RNF, tests[n].seps); in regress()
292 if (nf != tests[n].nf) { in regress()
294 tests[n].str, tests[n].seps, nf, tests[n].nf); in regress()
304 if (strcmp(f, tests[n].fi[i]) != 0) { in regress()
306 tests[n].str, tests[n].seps, in regress()
307 i, fields[i], tests[n].fi[i]); in regress()
/NextBSD/contrib/flex/
HDChangeLog42 * tests/.cvsignore, tests/.gitignore, tests/TEMPLATE/.cvsignore,
43 tests/TEMPLATE/.gitignore, tests/test-alloc-extra/.cvsignore,
44 tests/test-alloc-extra/.gitignore, tests/test-array-nr/.cvsignore,
45 tests/test-array-nr/.gitignore, tests/test-array-r/.cvsignore,
46 tests/test-array-r/.gitignore, tests/test-basic-nr/.cvsignore,
47 tests/test-basic-nr/.gitignore, tests/test-basic-r/.cvsignore,
48 tests/test-basic-r/.gitignore, tests/test-bison-nr/.cvsignore,
49 tests/test-bison-nr/.gitignore, tests/test-bison-yylloc/.cvsignore,
50 tests/test-bison-yylloc/.gitignore,
51 tests/test-bison-yylval/.cvsignore,
[all …]
/NextBSD/tests/
HDREADME1 src/tests: The FreeBSD test suite
7 (2) To run the tests:
8 kyua test -k /usr/tests/Kyuafile
12 For further information on using the test suite, read tests(7):
13 man tests
23 * The goal for /usr/tests/ (the installed test programs) is to follow
26 discoverability of tests. We want a mapping such as:
28 /usr/src/bin/cp/ -> /usr/tests/bin/cp/
29 /usr/src/lib/libc/ -> /usr/tests/lib/libc/
30 /usr/src/usr.bin/cut/ -> /usr/tests/usr.bin/cut/
[all …]
/NextBSD/share/examples/tests/
HDREADME15 * tests/: Regular directory containing the tests code. Note that the
16 apparently-redundant tests/tests/ path component here is expected for
18 /usr/tests/.
20 * tests/atf/: Tests that use the ATF libraries, including atf-c, atf-c++
23 * tests/plain/: Tests that do not use any testing framework. See
28 $ kyua list -k /usr/tests/share/examples/tests/Kyuafile
32 $ kyua test -k /usr/tests/share/examples/tests/Kyuafile
36 $ kyua debug -k /usr/tests/share/examples/tests/Kyuafile \
/NextBSD/contrib/netbsd-tests/lib/libm/
HDt_scalbn.c78 const struct testcase *tests = test_vals; in ATF_TC_BODY() local
87 rv = scalbn(tests[i].inval, tests[i].exp); in ATF_TC_BODY()
88 ATF_CHECK_EQ_MSG(errno, tests[i].error, in ATF_TC_BODY()
90 tests[i].error); in ATF_TC_BODY()
91 ATF_CHECK_MSG(fabs(rv-tests[i].result)<2.0*DBL_EPSILON, in ATF_TC_BODY()
93 i, rv, tests[i].result, tests[i].result-rv); in ATF_TC_BODY()
222 const struct testcase *tests = test_vals; in ATF_TC_BODY() local
231 rv = scalbnf(tests[i].inval, tests[i].exp); in ATF_TC_BODY()
232 ATF_CHECK_EQ_MSG(errno, tests[i].error, in ATF_TC_BODY()
234 tests[i].error); in ATF_TC_BODY()
[all …]
/NextBSD/contrib/groff/contrib/gdiffmk/
HDChangeLog16 * tests/runtests.in: Added tests for gdiffmk's -D, -M, and -B
19 * tests/baseline8, tests/baseline9, tests/baseline10: New files.
23 * tests/runtests.in: Fix typo (s/$(srcdir)/${srcdir}/).
27 The configure script now generates tests/runtests.
29 * tests/tests.sh: Renamed to...
30 * tests/runtests.in: This.
32 * README, Makefile.sub (CLEANADD), tests/test_baseline7: Updated.
42 * tests/*: New files for testing gdiffmk.
/NextBSD/contrib/unbound/doc/
HDREADME.tests1 README unbound tests
3 For a quick test that runs unit tests and state machine tests, use
8 To make and run the long tests. The results are summarized at the end.
18 testdata/ contains the data for tests.
19 testcode/ contains scripts and c code for the tests.
21 do-tests.sh : runs all the tests in the testdata directory.
22 testbed.sh : compiles on a set of (user specific) hosts and runs do-tests.
/NextBSD/contrib/netbsd-tests/lib/libcrypt/
HDt_crypt.c75 } tests[] = { variable
126 for (size_t i = 0; tests[i].hash; i++) { in ATF_TC_BODY()
127 char *hash = crypt(tests[i].pw, tests[i].hash); in ATF_TC_BODY()
138 if (strcmp(hash, "*0") == 0 && strlen(tests[i].hash) < 13) in ATF_TC_BODY()
140 if (strcmp(hash, tests[i].hash)) in ATF_TC_BODY()
142 i, hash, tests[i].hash); in ATF_TC_BODY()

12345678910>>...36