Home
last modified time | relevance | path

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

12345678910>>...26

/freebsd-9-stable/tools/regression/doat/
Ddoat.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 …]
/freebsd-9-stable/crypto/heimdal/lib/asn1/
Dcheck-der.c58 struct test_case tests[] = { in test_integer() local
74 int ntests = sizeof(tests) / sizeof(*tests); in test_integer()
77 tests[i].val = &values[i]; in test_integer()
78 asprintf (&tests[i].name, "integer %d", values[i]); in test_integer()
79 if (tests[i].name == NULL) in test_integer()
83 ret = generic_test (tests, ntests, sizeof(int), in test_integer()
91 free (tests[i].name); in test_integer()
182 struct test_case tests[] = { in test_unsigned() local
196 int ntests = sizeof(tests) / sizeof(*tests); in test_unsigned()
199 tests[i].val = &values[i]; in test_unsigned()
[all …]
Dcheck-gen.c94 struct test_case tests[] = { in test_principal() local
119 int ntests = sizeof(tests) / sizeof(*tests); in test_principal()
122 tests[i].val = &values[i]; in test_principal()
123 asprintf (&tests[i].name, "Principal %d", i); in test_principal()
126 ret = generic_test (tests, ntests, sizeof(Principal), in test_principal()
133 free (tests[i].name); in test_principal()
160 struct test_case tests[] = { in test_authenticator() local
185 int ntests = sizeof(tests) / sizeof(*tests); in test_authenticator()
188 tests[i].val = &values[i]; in test_authenticator()
189 asprintf (&tests[i].name, "Authenticator %d", i); in test_authenticator()
[all …]
Dcheck-common.c193 generic_test (const struct test_case *tests, in generic_test() argument
214 current_test = tests[i].name; in generic_test()
228 buf_sz = tests[i].byte_len; in generic_test()
233 tests[i].val, &sz); in generic_test()
235 printf ("encoding of %s failed %d\n", tests[i].name, ret); in generic_test()
239 if (sz != tests[i].byte_len) { in generic_test()
241 tests[i].name, in generic_test()
242 (unsigned long)sz, (unsigned long)tests[i].byte_len); in generic_test()
248 length_sz = (*length) (tests[i].val); in generic_test()
251 tests[i].name, (unsigned long)length_sz, (unsigned long)sz); in generic_test()
[all …]
/freebsd-9-stable/tools/regression/tmpfs/
DMakefile4 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 …]
/freebsd-9-stable/crypto/heimdal/lib/roken/
Dparse_time-test.c48 } tests[] = { variable
65 for (i = 0; i < sizeof(tests)/sizeof(tests[0]); ++i) { in main()
68 sz = unparse_time(tests[i].val, NULL, 0); in main()
69 if (sz != tests[i].size) in main()
71 (unsigned long)sz, i, (unsigned long)tests[i].size); in main()
73 for (buf_sz = 0; buf_sz < tests[i].size + 2; buf_sz++) { in main()
77 sz = unparse_time(tests[i].val, buf, buf_sz); in main()
78 if (sz != tests[i].size) in main()
81 (unsigned long)tests[i].size, in main()
83 if (buf_sz > 0 && memcmp(buf, tests[i].str, buf_sz - 1) != 0) in main()
[all …]
Dparse_bytes-test.c47 } tests[] = { variable
66 for (i = 0; i < sizeof(tests)/sizeof(tests[0]); ++i) { in main()
68 int val = parse_bytes (tests[i].str, tests[i].def_unit); in main()
71 if (val != tests[i].val) { in main()
73 tests[i].str, in main()
74 tests[i].def_unit ? tests[i].def_unit : "none", in main()
75 val, tests[i].val); in main()
78 if (tests[i].canonicalp) { in main()
79 len = unparse_bytes (tests[i].val, buf, sizeof(buf)); in main()
80 if (strcmp (tests[i].str, buf) != 0) { in main()
[all …]
Dstrpftime-test.c51 } tests[] = { variable
239 for (i = 0; i < sizeof(tests)/sizeof(tests[0]); ++i) { in main()
242 tm = gmtime (&tests[i].t); in main()
244 for (j = 0; tests[i].vals[j].format != NULL; ++j) { in main()
250 len = strftime (buf, sizeof(buf), tests[i].vals[j].format, tm); in main()
253 tests[i].vals[j].format, (unsigned long)len, in main()
258 if (strcmp (buf, tests[i].vals[j].result) != 0) { in main()
260 tests[i].vals[j].format, buf, in main()
261 tests[i].vals[j].result); in main()
266 ptr = strptime (tests[i].vals[j].result, in main()
[all …]
/freebsd-9-stable/contrib/expat/
DMakefile.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
106 @for d in lib xmlwf examples tests ; do \
166 tests/chardata.@OBJEXT@: tests/chardata.c tests/chardata.h
167 tests/minicheck.@OBJEXT@: tests/minicheck.c tests/minicheck.h
168 tests/runtests.@OBJEXT@: tests/runtests.c tests/chardata.h
[all …]
DMANIFEST108 tests/benchmark/README.txt
109 tests/benchmark/benchmark.c
110 tests/benchmark/benchmark.dsp
111 tests/benchmark/benchmark.dsw
112 tests/README.txt
113 tests/chardata.c
114 tests/chardata.h
115 tests/minicheck.c
116 tests/minicheck.h
117 tests/runtests.c
[all …]
/freebsd-9-stable/contrib/bmake/
DFILES94 unit-tests/Makefile.in
95 unit-tests/comment
96 unit-tests/cond1
97 unit-tests/doterror
98 unit-tests/dotwait
99 unit-tests/error
100 unit-tests/export
101 unit-tests/export-all
102 unit-tests/export-env
103 unit-tests/forloop
[all …]
/freebsd-9-stable/lib/libc/regex/grot/
DMakefile68 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 …]
Dsplit.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()
/freebsd-9-stable/tools/regression/mmap/
Dmmap.c41 } tests[] = { variable
82 printf("1..%zu\n", nitems(tests)); in main()
83 for (i = 0; i < (int)nitems(tests); i++) { in main()
84 p = mmap((void *)tests[i].addr, PAGE_SIZE, in main()
88 if (tests[i].ok[map_at_zero] != 0) in main()
91 tests[i].ok[map_at_zero] == 0 ? "" : "not ", in main()
93 tests[i].addr); in main()
95 if (tests[i].ok[map_at_zero] != 1) in main()
98 tests[i].ok[map_at_zero] == 1 ? "" : "not ", in main()
100 tests[i].addr, p); in main()
/freebsd-9-stable/contrib/groff/contrib/gdiffmk/
DChangeLog16 * 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.
/freebsd-9-stable/contrib/expat/tests/
Dminicheck.c43 tc->next_tcase = suite->tests; in suite_add_tcase()
44 suite->tests = tc; in suite_add_tcase()
64 tcase_test_function *new_tests = realloc(tc->tests, new_size); in tcase_add_test()
66 if (new_tests != tc->tests) { in tcase_add_test()
67 free(tc->tests); in tcase_add_test()
68 tc->tests = new_tests; in tcase_add_test()
72 tc->tests[tc->ntests] = test; in tcase_add_test()
118 tc = suite->tests; in srunner_run_all()
137 (tc->tests[i])(); in srunner_run_all()
/freebsd-9-stable/tools/regression/
DREADME17 where m is the number of tests that will be run.
27 considered to be the name of the test. Naming tests is optional, but
31 For example, the netatalk tests require 'options NETATALK' in the kernel.
39 yet). 'todo' tests are expected to fail, so when they start working the
40 test framework can alert you to this happy occurence. Flag these tests
51 To run the tests and parse their output install the devel/p5-Test-Harness
52 port. This includes the prove(1) command which is used to run the tests
55 prove geom_concat # run all the tests in geom_concat
56 prove -r lib # run all tests in lib/, and subdirectories
58 prove -r # run *all* the tests
[all …]
/freebsd-9-stable/crypto/openssl/fips/aes/
Dfips_aes_selftest.c60 } tests[] = { variable
77 tests[0].key[0]++; in FIPS_corrupt_aes()
89 tests[n].key, NULL, in FIPS_selftest_aes()
90 tests[n].plaintext, in FIPS_selftest_aes()
91 tests[n].ciphertext, 16) <= 0) in FIPS_selftest_aes()
/freebsd-9-stable/contrib/ntp/sntp/unity/auto/
Dgenerate_test_runner.rb49 tests = []
61 tests = find_tests(source)
68 generate(input_file, output_file, tests, used_mocks, testfile_includes)
77 def generate(input_file, output_file, tests, used_mocks, testfile_includes) argument
80 create_externs(output, tests, used_mocks)
84 create_main(output, input_file, tests, used_mocks)
199 def create_externs(output, tests, mocks) argument
204 tests.each do |test|
317 def create_main(output, filename, tests, used_mocks) argument
335 tests.each do |test|
[all …]
/freebsd-9-stable/contrib/ntp/sntp/m4/
Dsntp_problemtests.m44 dnl Some platforms have problems building or running certain tests.
6 dnl framework, sometimes we may need to disable these tests.
16 AC_MSG_CHECKING([if we want to enable tests with undiagnosed problems])
18 [problem-tests],
20 [--enable-problem-tests],
21 [+ enable tests with undiagnosed problems]
Dntp_problemtests.m44 dnl Some platforms have problems building or running certain tests.
6 dnl framework, sometimes we may need to disable these tests.
16 AC_MSG_CHECKING([if we want to enable tests with undiagnosed problems])
18 [problem-tests],
20 [--enable-problem-tests],
21 [+ enable tests with undiagnosed problems]
/freebsd-9-stable/crypto/heimdal/lib/krb5/
Dtest_pkinit_dh2key.c72 } tests[] = { variable
210 for (i = 0; i < sizeof(tests)/sizeof(tests[0]); i++) { in main()
211 test_dh2key(i, context, &tests[i].X, NULL, NULL, in main()
212 tests[i].type, &tests[i].key); in main()
/freebsd-9-stable/tools/regression/lib/msun/
Dtest-nearbyint.c79 static const float tests[] = { variable
92 static const int ntests = sizeof(tests) / sizeof(tests[0]) / 2; in main()
97 testit(i + 1, tests[i * 2], tests[i * 2 + 1]); in main()
/freebsd-9-stable/crypto/openssh/regress/
DREADME.regress3 $ ./configure && make tests
8 The test consists of 2 parts. The first is the file-based tests which is
10 based tests, which are driven by a driver script (test-exec.sh) which is
24 systems using PAM) require sudo to execute some tests.
25 TEST_SSH_TRACE: set to "yes" for verbose output from tests
31 TEST_SSH_PORT: TCP port to be used for the listening tests.
38 Individual tests.
41 $ make tests LTESTS=agent-timeout
58 At the time of writing, the individual tests are:
88 Failed tests can be difficult to diagnose. Suggestions:
[all …]
/freebsd-9-stable/lib/libcrypt/
Dcrypt-sha256.c304 } tests[] = variable
357 #define ntests (sizeof (tests) / sizeof (tests[0]))
415 SHA256_Update(&ctx, tests[cnt].input, strlen(tests[cnt].input)); in main()
417 if (memcmp(tests[cnt].result, sum, 32) != 0) { in main()
419 printf("%02X", tests[cnt].result[i]); in main()
429 for (i = 0; tests[cnt].input[i] != '\0'; ++i) in main()
430 SHA256_Update(&ctx, &tests[cnt].input[i], 1); in main()
432 if (memcmp(tests[cnt].result, sum, 32) != 0) { in main()
434 printf("%02X", tests[cnt].result[i]); in main()

12345678910>>...26