Searched refs:test (Results 1 - 25 of 781) sorted by relevance

1234567891011>>

/freebsd-current/tools/regression/priv/
H A Dmain.h40 #define KENV_VAR_NAME "test"
41 #define KENV_VAR_VALUE "test"
47 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,
55 * Definition for a particular test, both used to manage the test list in
56 * main.c, and passed to tests so they can be aware of which specific test is
59 struct test { struct
62 struct test *tes
[all...]
H A Dpriv_settimeofday.c48 priv_settimeofday_setup(int asroot, int injail, struct test *test) argument
59 priv_settimeofday(int asroot, int injail, struct test *test) argument
78 priv_settimeofday_cleanup(int asroot, int injail, struct test *test) argument
H A Dpriv_vfs_chroot.c45 priv_vfs_chroot_setup(int asroot, int injail, struct test *test) argument
52 priv_vfs_chroot(int asroot, int injail, struct test *test) argument
68 priv_vfs_chroot_cleanup(int asroot, int injail, struct test *test) argument
H A Dpriv_clock_settime.c48 priv_clock_settime_setup(int asroot, int injail, struct test *test) argument
60 priv_clock_settime(int asroot, int injail, struct test *test) argument
79 priv_clock_settime_cleanup(int asroot, int injail, struct test *test) argument
H A Dpriv_audit_control.c34 * XXXRW: It would be a good idea to also test auditctl(), which also tests
49 priv_audit_control_setup(int asroot, int injail, struct test *test) argument
60 priv_audit_control(int asroot, int injail, struct test *test) argument
80 priv_audit_control_cleanup(int asroot, int injail, struct test *test) argument
H A Dpriv_vm_madv_protect.c45 priv_vm_madv_protect_setup(int asroot, int injail, struct test *test) argument
52 priv_vm_madv_protect(int asroot, int injail, struct test *test) argument
71 priv_vm_madv_protect_cleanup(int asroot, int injail, struct test *test) argument
H A Dpriv_vm_munlock.c45 priv_vm_munlock_setup(int asroot, int injail, struct test *test) argument
52 priv_vm_munlock(int asroot, int injail, struct test *test) argument
69 priv_vm_munlock_cleanup(int asroot, int injail, struct test *test) argument
H A Dpriv_vm_mlock.c45 priv_vm_mlock_setup(int asroot, int injail, struct test *test) argument
52 priv_vm_mlock(int asroot, int injail, struct test *test) argument
68 priv_vm_mlock_cleanup(int asroot, int injail, struct test *test) argument
H A Dpriv_vfs_stickyfile.c52 struct test *test)
63 struct test *test)
74 struct test *test)
85 struct test *test)
95 priv_vfs_stickyfile_dir_fowner(int asroot, int injail, struct test *test) argument
51 priv_vfs_stickyfile_dir_fowner_setup(int asroot, int injail, struct test *test) argument
62 priv_vfs_stickyfile_dir_fother_setup(int asroot, int injail, struct test *test) argument
73 priv_vfs_stickyfile_file_fowner_setup(int asroot, int injail, struct test *test) argument
84 priv_vfs_stickyfile_file_fother_setup(int asroot, int injail, struct test *test) argument
115 priv_vfs_stickyfile_dir_fother(int asroot, int injail, struct test *test) argument
135 priv_vfs_stickyfile_file_fowner(int asroot, int injail, struct test *test) argument
155 priv_vfs_stickyfile_file_fother(int asroot, int injail, struct test *test) argument
175 priv_vfs_stickyfile_dir_cleanup(int asroot, int injail, struct test *test) argument
185 priv_vfs_stickyfile_file_cleanup(int asroot, int injail, struct test *test) argument
[all...]
/freebsd-current/crypto/openssl/test/
H A Dgenerate_ssl_tests.pl46 my $source = srctop_file("test", "ssl_test.tmpl");
54 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
[all...]
H A Dhexstr_test.c69 struct testdata *test = &tbl_testdata[test_index]; local
71 if (!TEST_ptr(buf = ossl_hexstr2buf_sep(test->in, &len, test->sep))
72 || !TEST_mem_eq(buf, len, test->expected, test->expected_len)
73 || !TEST_ptr(out = ossl_buf2hexstr_sep(buf, len, test->sep))
74 || !TEST_str_eq(out, test->in))
90 struct testdata *test = &tbl_testdata[test_index]; local
92 if (test->sep != '_') {
93 if (!TEST_ptr(buf = OPENSSL_hexstr2buf(test
119 struct testdata *test = &tbl_testdata[test_index]; local
[all...]
/freebsd-current/tools/regression/netinet/ipdivert/
H A Dipdivert.c31 * This is a test tool for IP divert sockets. For the time being, it just
33 * behaviour. It would be highly desirable to broaden this test tool to
50 ok(const char *test) argument
53 fprintf(stderr, "%s: OK\n", test);
57 fail(const char *test, const char *note) argument
60 fprintf(stderr, "%s - %s: FAIL (%s)\n", test, note, strerror(errno));
65 failx(const char *test, const char *note) argument
68 fprintf(stderr, "%s - %s: FAIL\n", test, note);
73 ipdivert_create(const char *test) argument
79 fail(test, "socke
84 ipdivert_close(const char *test, int s) argument
92 ipdivert_bind(const char *test, int s, u_short port, int expect) argument
117 const char *test; local
[all...]
/freebsd-current/crypto/openssh/openbsd-compat/regress/
H A Dstrduptest.c25 test(const char *a) function
42 test("");
43 test("a");
44 test("\0");
45 test("abcdefghijklmnopqrstuvwxyz");
H A Dstrtonumtest.c43 test(const char *p, long long lb, long long ub, int ok) function
62 test("1", 0, 10, 1);
63 test("0", -2, 5, 1);
64 test("0", 2, 5, 0);
65 test("0", 2, LLONG_MAX, 0);
66 test("-2", 0, LLONG_MAX, 0);
67 test("0", -5, LLONG_MAX, 1);
68 test("-3", -3, LLONG_MAX, 1);
69 test("-9223372036854775808", LLONG_MIN, LLONG_MAX, 1);
70 test("922337203685477580
[all...]
/freebsd-current/contrib/libarchive/libarchive/test/
H A Dtest_archive_set_error.c26 #include "test.h"
29 test(struct archive *a, int code, const char *msg) function
44 test(a, 12, "abcdefgh");
45 test(a, 0, "123456");
46 test(a, -1, "tuvw");
47 test(a, 34, "XYZ");
/freebsd-current/tests/sys/file/
H A Ddup_test.c81 int orgfd, fd1, fd2, test = 0; local
90 printf("ok %d - dup(2) works\n", ++test);
99 printf("ok %d - dup2(2) works\n", ++test);
102 ++test;
105 test);
107 printf("ok %d - dup2(2) returned a correct fd\n", test);
110 ++test;
113 test);
115 printf("ok %d - dup2(2) cleared close-on-exec\n", test);
136 * the way it is supposed to be and test her
[all...]
/freebsd-current/contrib/netbsd-tests/usr.bin/xlint/lint1/
H A Dd_type_question_colon.c8 test(void) { function
13 test();
/freebsd-current/contrib/atf/atf-c/
H A Dbuild_test.c102 * Internal test cases.
108 atf_tc_set_md_var(tc, "descr", "Tests the test case internal "
155 struct c_o_test *test; local
157 for (test = c_o_tests; test->expargv[0] != NULL; test++) {
158 printf("> Test: %s\n", test->msg);
160 verbose_set_env("ATF_BUILD_CC", test->cc);
161 verbose_set_env("ATF_BUILD_CFLAGS", test->cflags);
162 verbose_set_env("ATF_BUILD_CPPFLAGS", test
184 struct cpp_test *test; local
212 struct cxx_o_test *test; local
[all...]
/freebsd-current/contrib/netbsd-tests/lib/libbluetooth/
H A Dt_sdp_put.c49 sdp_data_t test = { buf, buf + sizeof(buf) }; local
57 ATF_REQUIRE(sdp_put_data(&test, &value));
58 test.end = test.next;
59 test.next = buf;
67 ATF_REQUIRE_EQ(test.end - test.next, sizeof(expect));
68 ATF_CHECK(memcmp(expect, test.next, sizeof(expect)) == 0);
82 sdp_data_t test = { buf, buf + sizeof(buf) }; local
89 ATF_REQUIRE_EQ(sdp_put_attr(&test,
115 sdp_data_t test = { buf, buf + sizeof(buf) }; local
173 sdp_data_t test = { buf, buf + sizeof(buf) }; local
198 sdp_data_t test = { buf, buf + sizeof(buf) }; local
224 sdp_data_t test = { buf, buf + sizeof(buf) }; local
261 sdp_data_t test = { buf, buf + sizeof(buf) }; local
288 sdp_data_t test = { buf, buf + sizeof(buf) }; local
333 sdp_data_t test = { buf, buf + sizeof(buf) }; local
360 sdp_data_t test = { buf, buf + sizeof(buf) }; local
391 sdp_data_t test = { buf, buf + sizeof(buf) }; local
429 sdp_data_t test = { buf, buf + sizeof(buf) }; local
476 sdp_data_t test = { buf, buf + sizeof(buf) }; local
541 sdp_data_t test = { buf, buf + sizeof(buf) }; local
570 sdp_data_t test = { buf, buf + sizeof(buf) }; local
603 sdp_data_t test = { buf, buf + sizeof(buf) }; local
647 sdp_data_t test = { buf, buf + sizeof(buf) }; local
706 sdp_data_t test = { buf, buf + sizeof(buf) }; local
740 sdp_data_t test = { buf, buf + sizeof(buf) }; local
774 sdp_data_t test = { buf, buf + sizeof(buf) }; local
818 sdp_data_t test = { buf, buf + sizeof(buf) }; local
[all...]
H A Dt_sdp_set.c53 sdp_data_t test = { data, data + sizeof(data) }; local
56 ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_BOOL);
57 ATF_REQUIRE(sdp_set_bool(&test, true));
58 ATF_CHECK_EQ(test.next[1], 0x01);
59 ATF_REQUIRE(sdp_set_bool(&test, false));
60 ATF_CHECK_EQ(test.next[1], 0x00);
61 ATF_REQUIRE(sdp_get_data(&test, &discard));
63 ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_NIL);
64 ATF_CHECK_EQ(sdp_set_bool(&test, true), false); /* not bool */
65 ATF_REQUIRE(sdp_get_data(&test,
97 sdp_data_t test = { data, data + sizeof(data) }; local
177 sdp_data_t test = { data, data + sizeof(data) }; local
250 sdp_data_t test = { data, data + sizeof(data) }; local
309 sdp_data_t test = { data, data + sizeof(data) }; local
[all...]
H A Dt_sdp_match.c58 sdp_data_t test = { data, data + sizeof(data) }; local
65 ATF_REQUIRE_EQ(sdp_match_uuid16(&test, 0x1100), false); /* mismatch */
66 ATF_REQUIRE(sdp_match_uuid16(&test, 0x1111));
68 ATF_REQUIRE_EQ(sdp_match_uuid16(&test, 0x1234), false); /* not uuid */
69 ATF_REQUIRE(sdp_get_data(&test, &nil)); /* (skip) */
71 ATF_REQUIRE(sdp_match_uuid16(&test, 0x1234));
73 ATF_REQUIRE(sdp_match_uuid16(&test, 0x3456));
75 ATF_REQUIRE_EQ(sdp_match_uuid16(&test, 0x1234), false); /* mismatch */
76 ATF_REQUIRE(sdp_match_uuid16(&test, 0x4321));
78 ATF_CHECK_EQ(test
[all...]
/freebsd-current/lib/msun/tests/
H A Dlrint_test.c41 #include "test-utils.h"
43 #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);
87 test(lrin
[all...]
/freebsd-current/contrib/atf/atf-c++/
H A Dbuild_test.cpp105 // Internal test cases.
111 set_md_var("descr", "Tests the test case internal equal_argvs function");
155 for (struct c_o_test* test = c_o_tests; test->expargv[0] != NULL;
156 test++) {
157 std::cout << "> Test: " << test->msg << "\n";
159 verbose_set_env("ATF_BUILD_CC", test->cc);
160 verbose_set_env("ATF_BUILD_CFLAGS", test->cflags);
161 verbose_set_env("ATF_BUILD_CPPFLAGS", test->cppflags);
164 atf::build::c_o(test
[all...]
/freebsd-current/sys/dev/ioat/
H A Dioat_test.c57 MALLOC_DEFINE(M_IOAT_TEST, "ioat_test", "ioat test allocations");
66 struct ioat_test *test; member in struct:test_transaction
74 MTX_SYSINIT(ioat_test_lk, &ioat_test_lk, "test coordination mtx", MTX_DEF);
85 struct ioat_test *test; local
88 test = tx->test;
92 if (test->testkind == IOAT_TEST_DMA_8K)
104 test_transaction *ioat_test_transaction_create(struct ioat_test *test, argument
114 tx->length = test->buffer_size;
117 if (test
148 struct ioat_test *test; local
181 struct ioat_test *test; local
203 ioat_test_prealloc_memory(struct ioat_test *test, int index) argument
235 ioat_test_release_memory(struct ioat_test *test) argument
249 ioat_test_submit_1_tx(struct ioat_test *test, bus_dmaengine_t dma) argument
361 struct ioat_test *test; local
[all...]
/freebsd-current/contrib/bmake/unit-tests/
H A Ddepsrc-nopath.exp1 : Making test-regular from depsrc-nopath.dir/regular.file
2 : Making test-nopath from nopath.file

Completed in 328 milliseconds

1234567891011>>