/freebsd/tools/regression/netinet/ipdivert/ |
H A D | 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() function 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/crypto/openssl/test/ssl-tests/ |
H A D | 03-custom_verify.cnf | 5 test-0 = 0-verify-success 6 test-1 = 1-verify-custom-reject 7 test-2 = 2-verify-custom-allow 8 test-3 = 3-verify-custom-retry 9 test-4 = 4-noverify-success 10 test-5 = 5-noverify-ignore-custom-reject 11 test-6 = 6-noverify-accept-custom-allow 12 test-7 = 7-verify-fail-no-root 13 test-8 = 8-verify-custom-success-no-root 14 test-9 = 9-verify-custom-fail-no-root [all …]
|
H A D | 04-client_auth.cnf | 5 test-0 = 0-server-auth-flex 6 test-1 = 1-client-auth-flex-request 7 test-2 = 2-client-auth-flex-require-fail 8 test-3 = 3-client-auth-flex-require 9 test-4 = 4-client-auth-flex-rsa-pss 10 test-5 = 5-client-auth-flex-rsa-pss-bad 11 test-6 = 6-client-auth-flex-require-non-empty-names 12 test-7 = 7-client-auth-flex-noroot 13 test-8 = 8-server-auth-TLSv1 14 test-9 = 9-client-auth-TLSv1-request [all …]
|
H A D | 26-tls13_client_auth.cnf | 5 test-0 = 0-server-auth-TLSv1.3 6 test-1 = 1-client-auth-TLSv1.3-request 7 test-2 = 2-client-auth-TLSv1.3-require-fail 8 test-3 = 3-client-auth-TLSv1.3-require 9 test-4 = 4-client-auth-TLSv1.3-require-non-empty-names 10 test-5 = 5-client-auth-TLSv1.3-noroot 11 test-6 = 6-client-auth-TLSv1.3-request-post-handshake 12 test-7 = 7-client-auth-TLSv1.3-require-fail-post-handshake 13 test-8 = 8-client-auth-TLSv1.3-require-post-handshake 14 test-9 = 9-client-auth-TLSv1.3-require-non-empty-names-post-handshake [all …]
|
H A D | 03-custom_verify.cnf.in | 10 ## SSL test configurations 22 test => { "ExpectedResult" => "Success" }, 25 # Same test as above but with a custom callback that always fails. 34 test => { 40 # Same test as above but with a custom callback that always succeeds. 49 test => { 54 # Same test as above but with a custom callback that requests retry once. 63 test => { 77 test => { "ExpectedResult" => "Success" }, 80 # Same test as above but with a custom callback that always fails. [all …]
|
/freebsd/crypto/krb5/src/tests/ |
H A D | t_renew.py | 12 def test(testname, life, rlife, exp_life, exp_rlife, env=None): function 21 fail('%s: did not get tickets' % testname) 26 fail('%s: ticket unexpectedly renewable' % testname) 28 fail('%s: ticket unexpectedly non-renewable' % testname) 42 fail('%s: expected life %d, got %d' % (testname, exp_life, life)) 46 fail('%s: ticket has unexpected renew_till' % testname) 48 fail('%s: ticket is renewable but has no renew_till' % testname) 52 fail('%s: expected rlife %d, got %d' % 56 test('simple', '1h', '2h', 3600, 7200) 69 test('non-renewable', '1h', None, 3600, None) [all …]
|
H A D | t_sn2princ.py | 29 fail('Expected %s, got %s' % (expected, out)) 31 def test(host, princhost, princrealm): function 111 fail('Expected one try for %s' % fprinc) 163 test(oname, rname, 'R3') 164 test(oname + ':123', rname + ':123', 'R3') 165 test(oname + ':xyZ', rname + ':xyZ', 'R3')
|
H A D | t_rdreq.py | 17 def test(tserver, server, expected): function 23 fail('unexpected rdreq output') 29 test(princ1, None, nokeytab_err) 30 test(princ1, princ1, nokeytab_err) 31 test(princ1, matchprinc, nokeytab_err) 36 test(princ1, None, '0 success') 37 test(princ1, princ1, '0 success') 38 test(princ1, matchprinc, '0 success') 42 test(princ2, princ2, '45 No key table entry found for host/2@KRBTEST.COM') 48 test(princ1, nomatchprinc, nomatch_err) [all …]
|
/freebsd/crypto/openssh/openbsd-compat/regress/ |
H A D | strtonumtest.c | 40 int fail; variable 43 test(const char *p, long long lb, long long ub, int ok) in test() function 52 fail = 1; in test() 56 fail = 1; in test() 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() [all …]
|
H A D | strduptest.c | 22 static int fail = 0; variable 25 test(const char *a) in test() function 31 fail = 1; in test() 35 fail = 1; in test() 42 test(""); in main() 43 test("a"); in main() 44 test("\0"); in main() 45 test("abcdefghijklmnopqrstuvwxyz"); in main() 46 return fail; in main()
|
/freebsd/contrib/wpa/src/common/ |
H A D | common_module_tests.c | 95 const struct ieee802_11_parse_test_data *test; in ieee802_11_parse_tests() local 99 test = &parse_tests[i]; in ieee802_11_parse_tests() 100 res = ieee802_11_parse_elems(test->data, test->len, &elems, 1); in ieee802_11_parse_tests() 101 if (res != test->result || in ieee802_11_parse_tests() 102 ieee802_11_ie_count(test->data, test->len) != test->count) { in ieee802_11_parse_tests() 211 const struct rsn_ie_parse_test_data *test; in rsn_ie_parse_tests() local 214 test = &rsn_parse_tests[i]; in rsn_ie_parse_tests() 215 if (wpa_parse_wpa_ie_rsn(test->data, test->len, &data) != in rsn_ie_parse_tests() 216 test->result) { in rsn_ie_parse_tests() 398 goto fail; in sae_tests() [all …]
|
/freebsd/tests/sys/file/ |
H A D | closefrom_test.c | 53 static int test = 1; variable 59 printf("ok %d - %s\n", test, descr); in ok() 60 test++; in ok() 64 fail(const char *descr, const char *fmt, ...) in fail() function 68 printf("not ok %d - %s", test, descr); in fail() 69 test++; in fail() 80 #define fail_err(descr) fail((descr), "%s", strerror(errno)) 152 fail("open", "bad descriptor %d", start); in main() 158 fail("highest_fd", "bad descriptor %d != %d", start, fd); in main() 165 fail("closefrom", "highest fd %d", fd); in main() [all …]
|
/freebsd/crypto/krb5/src/tests/gssapi/ |
H A D | t_enctypes.py | 39 def test(msg, ienc, aenc, tktenc='', tktsession='', proto='', isubkey='', function 45 fail(msg) 47 fail(msg) 53 fail(msg) 64 test('noargs', None, None, 73 test('init aes128', 'aes128-cts', None, 81 test('both aes128', 'aes128-cts', 'aes128-cts', 94 test('init des3', 'des3', None, 105 test('upgrade noargs', None, None, 115 test('upgrade init aes128+rc4', 'aes128-cts rc4', None, [all …]
|
/freebsd/sys/contrib/openzfs/config/ |
H A D | find_system_library.m4 | 16 AS_IF([test -n "$2"], [PKG_CHECK_MODULES([$1], [$2], [ 23 AS_IF([test "x$[$1][_CFLAGS]" != x], [_header_found=1]) 24 AS_IF([test "x$[$1][_LIBS]" != x], [_library_found=1]) 33 AS_IF([test "x$_prefixdir" != "x/usr"], [ 35 AS_IF([test "x$_library_found" = x], [ 44 ], [AS_IF([test "x$_header_found" = "x1"], [ 45 # if pkg-config or the user set CFLAGS, fail if the header is unusable 61 AS_IF([test "x$_header_found" = "x1"], [ 62 AS_IF([test "x$_library_found" = x], [ 72 AS_IF([test " [all...] |
H A D | lib-ld.m4 | 34 [test "$withval" = no || with_gnu_ld=yes], 39 if test "${PATH_SEPARATOR+set}" != set; then 42 # so we have to set that as well for the test. 50 if test -n "$LD"; then 52 elif test "$GCC" = yes; then 54 elif test "$with_gnu_ld" = yes; then 59 if test -n "$LD"; then 60 # Let the user override the test with a path. 65 acl_cv_path_LD= # Final result of this test 67 if test "$GCC" = yes; then [all …]
|
/freebsd/contrib/netbsd-tests/include/sys/ |
H A D | t_tree.c | 80 test(void) in test() function 83 int fail, i, j; in test() local 86 fail = 0; in test() 91 fail++; in test() 93 return fail; in test() 105 int i, fail, f; in ATF_TC_BODY() local 108 fail = 0; in ATF_TC_BODY() 110 f = test(); in ATF_TC_BODY() 113 fail += f; in ATF_TC_BODY()
|
/freebsd/contrib/wpa/src/crypto/ |
H A D | crypto_module_tests.c | 1389 const struct passphrase_test *test = &passphrase_tests[i]; in test_sha1() local 1391 if (pbkdf2_sha1(test->passphrase, in test_sha1() 1392 (const u8 *) test->ssid, strlen(test->ssid), in test_sha1() 1394 os_memcmp(psk, test->psk, 32) == 0) in test_sha1() 1405 const struct rfc6070_test *test = &rfc6070_tests[i]; in test_sha1() local 1407 if (pbkdf2_sha1(test->p, (const u8 *) test->s, strlen(test->s), in test_sha1() 1408 test->c, dk, test->dk_len) == 0 && in test_sha1() 1409 os_memcmp(dk, test->dk, test->dk_len) == 0) in test_sha1() 2318 static int run_hpke_test(const struct hpke_test *test) in run_hpke_test() argument 2326 wpa_printf(MSG_INFO, "- %s", test->name); in run_hpke_test() [all …]
|
/freebsd/contrib/netbsd-tests/net/net/ |
H A D | t_unix.c | 71 goto fail; \ 133 fail: in acc() 140 test(bool closeit, size_t len) in test() function 249 fail: in test() 274 ATF_REQUIRE_MSG(test(false, 254) == -1, "test(false, 254): %s", in ATF_TC_BODY() 289 ATF_REQUIRE_MSG(test(false, 253) == 0, "test(false, 253): %s", in ATF_TC_BODY() 303 ATF_REQUIRE_MSG(test(true, 100) == 0, "test(true, 100): %s", in ATF_TC_BODY() 325 test(false, atoi(argv[1])); in main() 326 test(true, atoi(argv[1])); in main()
|
/freebsd/contrib/atf/atf-sh/ |
H A D | libatf-sh.subr | 34 # A boolean variable that indicates whether we are parsing a test case's 41 # The file to which the test case will print its result. 44 # The test program's source directory: i.e. where its auxiliary data files 48 # Indicates the test case we are currently processing. 51 # List of meta-data variables for the current test case. 54 # The list of all test cases provided by the test program. 64 # Adds the given test case to the list of test cases that form the test 83 atf_fail "atf-check failed; see the output of the test for details" 99 test "${_val1}" = "${_val2}" || \ 116 test "${_val1}" != "${_val2}" || \ [all …]
|
/freebsd/contrib/arm-optimized-routines/ |
H A D | README | 25 routines that fail to do so are located in an 35 math/test/ - math test and benchmark related sources. 39 networking/test/ - networking test and benchmark related sources. 43 routines that fail to do so are located in an 50 string/test/ - string test and benchmark related sources. 78 routines will fail to build if CC is too old. 80 The test system requires libmpfr and libmpc.
|
/freebsd/tools/regression/ |
H A D | README | 2 This directory is for regression test programs. 4 A regression test program is one that will exercise a particular bit of the 8 can contain more than one test, and can be implemented in any scripting 11 The test protocol is quite simple. At its most basic, each .t file should, 18 Each test should produce a single line of output. This line should start 24 to indicate whether or not the test succeeded. 'n' is the test's number. 26 considered to be the name of the test. Naming tests is optional, but 29 A test may be written which is conditional, and may need to be skipped. 31 A test may be skipped by printing '# skip Reason for skipping' after the 32 test name. For example, [all …]
|
/freebsd/tools/regression/posixsem/ |
H A D | test.c | 40 static struct regression_test *test; variable 55 if (test->rt_name) in vprint_status() 56 printf(" - %s", test->rt_name); in vprint_status() 83 fail(void) in fail() function 122 test = *testp; in run_tests() 123 test->rt_function(); in run_tests()
|
/freebsd/contrib/googletest/googletest/include/gtest/internal/ |
H A D | gtest-death-test-internal.h | 110 const char* file, int line, DeathTest** test); 117 explicit ReturnSentinel(DeathTest* test) : test_(test) {} in ReturnSentinel() argument 180 int line, DeathTest** test) = 0; in GTEST_DISABLE_MSC_WARNINGS_POP_() 187 const char* file, int line, DeathTest** test) override; 221 #define GTEST_DEATH_TEST_(statement, predicate, regex_or_matcher, fail) \ argument 250 : fail(::testing::internal::DeathTest::LastMessage())
|
/freebsd/contrib/ntp/sntp/libevent/test/ |
H A D | tinytest_macros.h | 89 #define tt_want_(b, msg, fail) \ argument 94 fail; \ 113 #define tt_assert_test_fmt_type(a,b,str_test,type,test,printf_type,printf_fmt, \ argument 118 int tt_status_ = (test); \ 143 #define tt_assert_test_type(a,b,str_test,type,test,fmt,die_on_fail) \ argument 144 tt_assert_test_fmt_type(a,b,str_test,type,test,type,fmt, \ 147 #define tt_assert_test_type_opt(a,b,str_test,type,test,fmt,die_on_fail) \ argument 148 tt_assert_test_fmt_type(a,b,str_test,type,test,type,fmt, \
|
/freebsd/contrib/libevent/test/ |
H A D | tinytest_macros.h | 89 #define tt_want_(b, msg, fail) \ argument 94 fail; \ 113 #define tt_assert_test_fmt_type(a,b,str_test,type,test,printf_type,printf_fmt, \ argument 118 int tt_status_ = (test); \ 143 #define tt_assert_test_type(a,b,str_test,type,test,fmt,die_on_fail) \ argument 144 tt_assert_test_fmt_type(a,b,str_test,type,test,type,fmt, \ 147 #define tt_assert_test_type_opt(a,b,str_test,type,test,fmt,die_on_fail) \ argument 148 tt_assert_test_fmt_type(a,b,str_test,type,test,type,fmt, \
|