/freebsd-9.3-release/tools/regression/priv/ |
H A D | main.h | 42 #define KENV_VAR_NAME "test" 43 #define KENV_VAR_VALUE "test" 49 void setup_dir(const char *test, char *dpathp, uid_t uid, gid_t gid, 51 void setup_file(const char *test, char *fpathp, uid_t uid, gid_t gid, 53 void expect(const char *test, int error, int expected_error, 57 * Definition for a particular test, both used to manage the test list in 58 * main.c, and passed to tests so they can be aware of which specific test is 61 struct test { struct 64 struct test *tes [all...] |
H A D | priv_audit_control.c | 36 * XXXRW: It would be a good idea to also test auditctl(), which also tests 51 priv_audit_control_setup(int asroot, int injail, struct test *test) argument 62 priv_audit_control(int asroot, int injail, struct test *test) argument 82 priv_audit_control_cleanup(int asroot, int injail, struct test *test) argument
|
H A D | priv_clock_settime.c | 50 priv_clock_settime_setup(int asroot, int injail, struct test *test) argument 62 priv_clock_settime(int asroot, int injail, struct test *test) argument 81 priv_clock_settime_cleanup(int asroot, int injail, struct test *test) argument
|
H A D | priv_settimeofday.c | 50 priv_settimeofday_setup(int asroot, int injail, struct test *test) argument 61 priv_settimeofday(int asroot, int injail, struct test *test) argument 80 priv_settimeofday_cleanup(int asroot, int injail, struct test *test) argument
|
H A D | priv_vfs_chroot.c | 47 priv_vfs_chroot_setup(int asroot, int injail, struct test *test) argument 54 priv_vfs_chroot(int asroot, int injail, struct test *test) argument 70 priv_vfs_chroot_cleanup(int asroot, int injail, struct test *test) argument
|
H A D | priv_vm_madv_protect.c | 47 priv_vm_madv_protect_setup(int asroot, int injail, struct test *test) argument 54 priv_vm_madv_protect(int asroot, int injail, struct test *test) argument 73 priv_vm_madv_protect_cleanup(int asroot, int injail, struct test *test) argument
|
H A D | priv_vm_mlock.c | 47 priv_vm_mlock_setup(int asroot, int injail, struct test *test) argument 54 priv_vm_mlock(int asroot, int injail, struct test *test) argument 70 priv_vm_mlock_cleanup(int asroot, int injail, struct test *test) argument
|
H A D | priv_vm_munlock.c | 47 priv_vm_munlock_setup(int asroot, int injail, struct test *test) argument 54 priv_vm_munlock(int asroot, int injail, struct test *test) argument 71 priv_vm_munlock_cleanup(int asroot, int injail, struct test *test) argument
|
H A D | priv_vfs_stickyfile.c | 54 struct test *test) 65 struct test *test) 76 struct test *test) 87 struct test *test) 97 priv_vfs_stickyfile_dir_fowner(int asroot, int injail, struct test *test) argument 53 priv_vfs_stickyfile_dir_fowner_setup(int asroot, int injail, struct test *test) argument 64 priv_vfs_stickyfile_dir_fother_setup(int asroot, int injail, struct test *test) argument 75 priv_vfs_stickyfile_file_fowner_setup(int asroot, int injail, struct test *test) argument 86 priv_vfs_stickyfile_file_fother_setup(int asroot, int injail, struct test *test) argument 117 priv_vfs_stickyfile_dir_fother(int asroot, int injail, struct test *test) argument 137 priv_vfs_stickyfile_file_fowner(int asroot, int injail, struct test *test) argument 157 priv_vfs_stickyfile_file_fother(int asroot, int injail, struct test *test) argument 177 priv_vfs_stickyfile_dir_cleanup(int asroot, int injail, struct test *test) argument 187 priv_vfs_stickyfile_file_cleanup(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_vfs_chmod.c | 53 priv_vfs_chmod_froot_setup(int asroot, int injail, struct test *test) argument 63 priv_vfs_chmod_fowner_setup(int asroot, int injail, struct test *test) argument 73 priv_vfs_chmod_fother_setup(int asroot, int injail, struct test *test) argument 83 priv_vfs_chmod_froot(int asroot, int injail, struct test *test) argument 101 priv_vfs_chmod_fowner(int asroot, int injail, struct test *test) argument 120 priv_vfs_chmod_fother(int asroot, int injail, struct test *test) argument 139 priv_vfs_chmod_cleanup(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_vfs_chown.c | 61 priv_vfs_chown_uid_setup(int asroot, int injail, struct test *test) argument 71 priv_vfs_chown_uid(int asroot, int injail, struct test *test) argument 91 priv_vfs_chown_mygid_setup(int asroot, int injail, struct test *test) argument 95 * Create a file with a matching uid to the test process, but not a 105 priv_vfs_chown_mygid(int asroot, int injail, struct test *test) argument 125 priv_vfs_chown_othergid_setup(int asroot, int injail, struct test *tes argument 139 priv_vfs_chown_othergid(int asroot, int injail, struct test *test) argument 157 priv_vfs_chown_cleanup(int asroot, int injail, struct test *test) argument [all...] |
H A D | priv_vfs_setgid.c | 53 priv_vfs_setgid_fowner_setup(int asroot, int injail, struct test *test) argument 63 priv_vfs_setgid_fother_setup(int asroot, int injail, struct test *test) argument 74 priv_vfs_setgid_fowner(int asroot, int injail, struct test *test) argument 94 priv_vfs_setgid_fother(int asroot, int injail, struct test *test) argument 114 priv_vfs_setgid_cleanup(int asroot, int injail, struct test *test) argument [all...] |
/freebsd-9.3-release/contrib/ntp/tests/libntp/ |
H A D | lfptostr.c | 2 * This file contains test for both mfptoa and mfptoms (which uses dolfptoa), 48 l_fp test = {{200}, 0}; /* exact 200.0000000000 */ local 50 TEST_ASSERT_EQUAL_STRING("200.0000000000", mfptoa(test.l_ui, test.l_uf, LFP_MAX_PRECISION)); 51 TEST_ASSERT_EQUAL_STRING("200000.0000000", mfptoms(test.l_ui, test.l_uf, LFP_MAX_PRECISION_MS)); 56 l_fp test = {{-100}, 0}; /* -100 */ local 58 TEST_ASSERT_EQUAL_STRING("-100.0000000000", lfptoa(&test, LFP_MAX_PRECISION)); 59 TEST_ASSERT_EQUAL_STRING("-100000.0000000", lfptoms(&test, LFP_MAX_PRECISION_MS)); 64 l_fp test local 72 l_fp test = {{-100}, ONE_FOURTH}; /* -99.75 */ local 80 l_fp test = {{10}, ONE_FOURTH}; /* 10.25 */ local 88 l_fp test = {{10}, HALF}; /* 10.5 */ local 96 l_fp test = {{5}, THREE_FOURTH}; /* 5.75 */ local 104 l_fp test = {{8}, ONE_FOURTH}; /* 8.25 */ local 112 l_fp test = {{1}, HALF_PROMILLE_UP}; /* slightly more than 1.0005 */ local 122 l_fp test = {{1}, HALF_PROMILLE_DOWN}; /* slightly less than 1.0005 */ local 131 l_fp test = {{3000000000UL}, 0}; local [all...] |
H A D | sfptostr.c | 2 * This file contains test for both fptoa and fptoms (which uses dofptoa), 34 s_fp test = 300 << 16; // exact 300.000000 local 36 TEST_ASSERT_EQUAL_STRING("300.000000", fptoa(test, SFP_MAX_PRECISION)); 37 TEST_ASSERT_EQUAL_STRING("300000.000", fptoms(test, SFP_MAX_PRECISION)); 42 s_fp test = -(200 << 16); // exact -200.000000 local 44 TEST_ASSERT_EQUAL_STRING("-200.000000", fptoa(test, SFP_MAX_PRECISION)); 45 TEST_ASSERT_EQUAL_STRING("-200000.000", fptoms(test, SFP_MAX_PRECISION)); 50 s_fp test = (300 << 16) + (1 << 15); // 300 + 0.5 local 52 TEST_ASSERT_EQUAL_STRING("300.500000", fptoa(test, SFP_MAX_PRECISION)); 53 TEST_ASSERT_EQUAL_STRING("300500.000", fptoms(test, SFP_MAX_PRECISIO 58 s_fp test = -(200 << 16) - (1 << 15); // -200 - 0.5 local 66 s_fp test = (300 << 16) - (1 << 14); // 300 - 0.25 local 74 s_fp test = -(200 << 16) + (1 << 14)*3; // -200 + 0.75 local 82 s_fp test = 300 << 16; // 300 local 90 s_fp test = (2 << 16) + (1 << 14)*3; // 2 + 0.25*3 = 2.75 local [all...] |
/freebsd-9.3-release/tools/regression/file/dup/ |
H A D | dup.c | 64 int orgfd, fd1, fd2, test = 0; local 73 printf("ok %d - dup(2) works\n", ++test); 82 printf("ok %d - dup2(2) works\n", ++test); 85 ++test; 88 test); 90 printf("ok %d - dup2(2) returned a correct fd\n", test); 93 ++test; 96 test); 98 printf("ok %d - dup2(2) cleared close-on-exec\n", test); 119 * the way it is supposed to be and test her [all...] |
/freebsd-9.3-release/tools/regression/netinet/ipdivert/ |
H A D | ipdivert.c | 33 * This is a test tool for IP divert sockets. For the time being, it just 35 * behaviour. It would be highly desirable to broaden this test tool to 52 ok(const char *test) argument 55 fprintf(stderr, "%s: OK\n", test); 59 fail(const char *test, const char *note) argument 62 fprintf(stderr, "%s - %s: FAIL (%s)\n", test, note, strerror(errno)); 67 failx(const char *test, const char *note) argument 70 fprintf(stderr, "%s - %s: FAIL\n", test, note); 75 ipdivert_create(const char *test) argument 81 fail(test, "socke 86 ipdivert_close(const char *test, int s) argument 94 ipdivert_bind(const char *test, int s, u_short port, int expect) argument 119 const char *test; local [all...] |
/freebsd-9.3-release/crypto/openssh/openbsd-compat/regress/ |
H A D | strduptest.c | 23 test(const char *a) function 40 test(""); 41 test("a"); 42 test("\0"); 43 test("abcdefghijklmnopqrstuvwxyz");
|
H A D | strtonumtest.c | 41 test(const char *p, long long lb, long long ub, int ok) function 60 test("1", 0, 10, 1); 61 test("0", -2, 5, 1); 62 test("0", 2, 5, 0); 63 test("0", 2, LLONG_MAX, 0); 64 test("-2", 0, LLONG_MAX, 0); 65 test("0", -5, LLONG_MAX, 1); 66 test("-3", -3, LLONG_MAX, 1); 67 test("-9223372036854775808", LLONG_MIN, LLONG_MAX, 1); 68 test("922337203685477580 [all...] |
/freebsd-9.3-release/tools/regression/sockets/unix_passfd/ |
H A D | unix_passfd.c | 41 * data", or control messages. This regression test is intended to exercise 44 * there are cyclic file descriptor references. Right now we test only with 45 * stream sockets, but ideally we'd also test with datagram sockets. 49 domainsocketpair(const char *test, int *fdp) argument 53 err(-1, "%s: socketpair(PF_UNIX, SOCK_STREAM)", test); 65 tempfile(const char *test, int *fdp) argument 73 err(-1, "%s: mkstemp(%s)", test, path); 79 dofstat(const char *test, int fd, struct stat *sb) argument 83 err(-1, "%s: fstat", test); 87 samefile(const char *test, struc argument 97 sendfd(const char *test, int sockfd, int sendfd) argument 135 recvfd(const char *test, int sockfd, int *recvfd) argument 184 const char *test; local [all...] |
/freebsd-9.3-release/sys/dev/vxge/include/ |
H A D | vxge-os-pal.h | 63 * @test: C-condition to check 71 #define vxge_assert(test) { \ 72 if (!(test)) vxge_os_bug("bad cond: "#test" at %s:%d\n", \ 75 #define vxge_assert(test)
|
/freebsd-9.3-release/tools/regression/lib/msun/ |
H A D | test-lrint.c | 48 #define test(func, x, result, excepts) do { \ macro 56 test(lrint, x, result, excepts); \ 57 test(lrintf, x, result, excepts); \ 58 test(lrintl, x, result, excepts); \ 59 test(llrint, x, result, excepts); \ 60 test(llrintf, x, result, excepts); \ 61 test(llrintl, x, result, excepts); \ 89 test(lrint, 0x7fffffff.8p0, IGNORE, FE_INVALID); 90 test(lrint, -0x80000000.4p0, -0x80000000l, FE_INEXACT); 93 test(lrin [all...] |
H A D | test-lround.c | 44 #define test(func, x, result, excepts) do { \ macro 52 test(lround, x, result, excepts); \ 53 test(lroundf, x, result, excepts); \ 54 test(llround, x, result, excepts); \ 55 test(llroundf, x, result, excepts); \ 79 test(lround, 0x7fffffff.8p0, IGNORE, FE_INVALID); 80 test(lround, -0x80000000.8p0, IGNORE, FE_INVALID); 81 test(lround, 0x80000000.0p0, IGNORE, FE_INVALID); 82 test(lround, 0x7fffffff.4p0, 0x7fffffffl, FE_INEXACT); 83 test(lroun [all...] |
/freebsd-9.3-release/tools/regression/usr.bin/m4/ |
H A D | regress.sh | 3 # Go into the regression test directory, handed to us by make(1) 14 for test in GNU/changecom changecom; do 15 case "$test" in 19 test=`basename $test` 26 case "$test" in 28 $M4 < regress.$test.in | diff -u regress.$GNU$test.out - 32 echo "ok - $test # Test detected no regression, output matches." 35 echo "not ok - $test # Tes [all...] |
/freebsd-9.3-release/tools/regression/ia64/emulated/ |
H A D | brl.t | 41 local $test = "${type}_${pred}_${var}"; 42 local $tmpfile = "/tmp/" . $$ . "_$test"; 45 $st = system("cc -o $tmpfile -DTYPE=$type -DPRED=$pred -DVAR=$var -Wall -O1 -g $srcdir/test.c"); 47 print "not ok $nr $test # compiling $test\n"; 52 print "ok $nr $test\n"; 55 print "not ok $nr $test # invalid combination\n"; 58 print "not ok $nr $test # long branch failure\n"; 61 print "not ok $nr $test # signalled (exit status $st)\n"; 69 # We can only test th [all...] |
/freebsd-9.3-release/crypto/openssl/crypto/hmac/ |
H A D | hmactest.c | 88 } test[4] = { variable in typeref:struct:test_st 90 "", 0, "More text test vectors to stuff up EBCDIC machines :-)", 54, 129 printf("test skipped: MD5 disabled\n"); 133 ebcdic2ascii(test[0].data, test[0].data, test[0].data_len); 134 ebcdic2ascii(test[1].data, test[1].data, test[1].data_len); 135 ebcdic2ascii(test[ [all...] |