/freebsd/contrib/byacc/ |
H A D | MANIFEST | 62 package/pkgsrc/DESCR scripts from NetBSD pkgsrc, for test-builds 63 package/pkgsrc/Makefile scripts from NetBSD pkgsrc, for test-builds 64 package/pkgsrc/PLIST scripts from NetBSD pkgsrc, for test-builds 65 package/pkgsrc/distinfo scripts from NetBSD pkgsrc, for test-builds 66 test subdirectory 67 test/README summary of "test" directory 68 test/btyacc subdirectory 69 test/btyacc/big_b.error exercise -L/-B options 70 test/btyacc/big_b.output exercise -L/-B options 71 test/btyacc/big_l.error exercise -L/-B options [all …]
|
H A D | CHANGES | 80 make test-differences smaller when compiling with YY_NO_LEAKS by replacing 135 * test/yacc/ok_syntax1.tab.h, test/yacc/ok_syntax1.tab.c, 136 test/btyacc/ok_syntax1.tab.h, test/btyacc/ok_syntax1.tab.c: 139 * test/ok_syntax1.y: 140 modify test for %union to add tag for testing reader.c 185 * test/run_test.sh: use context diff, to work with AIX 190 * makefile.in, test/run_make.sh, test/run_test.sh, test/run_lint.sh: 314 * test/run_test.sh: 319 * test/yacc/expr.oxout.tab.c, test/btyacc/expr.oxout.tab.c: regen 321 * test/expr.oxout.y, test/expr.oxout.h: fix gcc warnings [all …]
|
/freebsd/contrib/ntp/sntp/libevent/test/ |
H A D | include.am | 1 # test/Makefile.am for libevent 10 test/check-dumpevents.py \ 11 test/regress.gen.c \ 12 test/regress.gen.h \ 13 test/regress.rpc \ 14 test/rpcgen_wrapper.sh \ 15 test/print-winsock-errors.c \ 16 test/test.sh 19 test/bench \ 20 test/bench_cascade \ [all …]
|
/freebsd/contrib/libevent/test/ |
H A D | include.am | 1 # test/Makefile.am for libevent 10 test/check-dumpevents.py \ 11 test/regress.gen.c \ 12 test/regress.gen.h \ 13 test/regress.rpc \ 14 test/rpcgen_wrapper.sh \ 15 test/print-winsock-errors.c \ 16 test/test.sh 19 test/bench \ 20 test/bench_cascade \ [all …]
|
/freebsd/tools/regression/priv/ |
H A D | main.h | 40 #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 *test); argument 64 struct test *test); [all …]
|
/freebsd/sys/contrib/libsodium/ |
H A D | .gitignore | 78 test-driver 79 test/default/browser 80 test/default/*.asm.js 81 test/default/*.res 82 test/default/*.trs 83 test/default/aead_aes256gcm 84 test/default/aead_chacha20poly1305 85 test/default/aead_xchacha20poly1305 86 test/default/auth 87 test/default/auth2 [all …]
|
/freebsd/crypto/openssl/test/ |
H A D | test_test.c | 22 #define TEST(expected, test) test_case((expected), #test, (test)) argument 24 static int test_case(int expected, const char *test, int result) in test_case() argument 27 fprintf(stderr, "# FATAL: %s != %d\n", test, expected); in test_case() 35 if (!TEST(1, TEST_int_eq(1, 1)) in test_int() 36 || !TEST(0, TEST_int_eq(1, -1)) in test_int() 37 || !TEST(1, TEST_int_ne(1, 2)) in test_int() 38 || !TEST(0, TEST_int_ne(3, 3)) in test_int() 39 || !TEST(1, TEST_int_lt(4, 9)) in test_int() 40 || !TEST(0, TEST_int_lt(9, 4)) in test_int() 41 || !TEST(1, TEST_int_le(4, 9)) in test_int() [all …]
|
/freebsd/contrib/netbsd-tests/lib/libbluetooth/ |
H A D | t_sdp_put.c | 43 atf_tc_set_md_var(tc, "descr", "Test sdp_put_data results"); in ATF_TC_HEAD() 49 sdp_data_t test = { buf, buf + sizeof(buf) }; in ATF_TC_BODY() local 57 ATF_REQUIRE(sdp_put_data(&test, &value)); in ATF_TC_BODY() 58 test.end = test.next; in ATF_TC_BODY() 59 test.next = buf; in ATF_TC_BODY() 67 ATF_REQUIRE_EQ(test.end - test.next, sizeof(expect)); in ATF_TC_BODY() 68 ATF_CHECK(memcmp(expect, test.next, sizeof(expect)) == 0); in ATF_TC_BODY() 76 atf_tc_set_md_var(tc, "descr", "Test sdp_put_attr results"); in ATF_TC_HEAD() 82 sdp_data_t test = { buf, buf + sizeof(buf) }; in ATF_TC_BODY() local 89 ATF_REQUIRE_EQ(sdp_put_attr(&test, 0xabcd, &value), false); in ATF_TC_BODY() [all …]
|
H A D | t_sdp_set.c | 43 atf_tc_set_md_var(tc, "descr", "Test sdp_set_bool results"); in ATF_TC_HEAD() 53 sdp_data_t test = { data, data + sizeof(data) }; in ATF_TC_BODY() local 56 ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_BOOL); in ATF_TC_BODY() 57 ATF_REQUIRE(sdp_set_bool(&test, true)); in ATF_TC_BODY() 58 ATF_CHECK_EQ(test.next[1], 0x01); in ATF_TC_BODY() 59 ATF_REQUIRE(sdp_set_bool(&test, false)); in ATF_TC_BODY() 60 ATF_CHECK_EQ(test.next[1], 0x00); in ATF_TC_BODY() 61 ATF_REQUIRE(sdp_get_data(&test, &discard)); in ATF_TC_BODY() 63 ATF_CHECK_EQ(sdp_data_type(&test), SDP_DATA_NIL); in ATF_TC_BODY() 64 ATF_CHECK_EQ(sdp_set_bool(&test, true), false); /* not bool */ in ATF_TC_BODY() [all …]
|
/freebsd/contrib/libedit/TEST/ |
H A D | test_filecompletion.c | 54 /* simple test for escaping angular brackets */ 57 {"ang<ular>test", NULL}, 58 L"ls ang\\<ular\\>test " 61 /* test angular bracket inside double quotes: ls "dq_ang */ 64 {"dq_ang<ular>test", NULL}, 65 L"ls \"dq_ang<ular>test\"" 68 /* test angular bracket inside singlq quotes: ls "sq_ang */ 71 {"sq_ang<ular>test", NULL}, 72 L"ls 'sq_ang<ular>test'" 75 /* simple test for backslash */ [all …]
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | Makefile.in | 35 # test/Makefile.am for libevent 57 if test -z '$(MAKELEVEL)'; then \ 59 elif test -n '$(MAKE_HOST)'; then \ 61 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ 92 test $$skip_next = yes && { skip_next=no; continue; }; \ 108 test $$has_opt = yes 145 @BUILD_REGRESS_TRUE@am__append_12 = test/regress 146 @BUILD_REGRESS_TRUE@am__append_13 = test/regress.gen.c test/regres [all...] |
/freebsd/contrib/libevent/ |
H A D | Makefile.in | 35 # test/Makefile.am for libevent 57 if test -z '$(MAKELEVEL)'; then \ 59 elif test -n '$(MAKE_HOST)'; then \ 61 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ 92 test $$skip_next = yes && { skip_next=no; continue; }; \ 108 test $$has_opt = yes 145 @BUILD_REGRESS_TRUE@am__append_12 = test/regress 146 @BUILD_REGRESS_TRUE@am__append_13 = test/regress.gen.c test/regress.gen.h 148 @BUILD_WIN32_TRUE@am__append_15 = test/regress_iocp.c 149 @OPENSSL_TRUE@am__append_16 = test/regress_ssl.c [all …]
|
/freebsd/contrib/atf/doc/ |
H A D | atf-test-case.4 | 29 .Nm atf-test-case 30 .Nd generic description of test cases 33 .Em test case 38 Given this, test cases are very fine-grained, but they attempt to group 41 A test case is defined by three components regardless of the language it is 46 properties to describe what the test case does and how it behaves. 47 In other words: it defines the test case's 54 is the test case itself. 55 It executes all actions needed to reproduce the test, and checks for 62 the exit status of the test case. [all …]
|
/freebsd/sys/dev/ioat/ |
H A D | ioat_test.c | 57 MALLOC_DEFINE(M_IOAT_TEST, "ioat_test", "ioat test allocations"); 66 struct ioat_test *test; member 74 MTX_SYSINIT(ioat_test_lk, &ioat_test_lk, "test coordination mtx", MTX_DEF); 98 test_transaction *ioat_test_transaction_create(struct ioat_test *test, in ioat_test_transaction_destroy() 108 tx->length = test->buffer_size; in ioat_test_transaction_create() 111 if (test->testkind == IOAT_TEST_DMA_8K) in ioat_test_transaction_create() 112 tx->buf[i] = malloc(test->buffer_size, M_IOAT_TEST, in ioat_test_transaction_create() 115 tx->buf[i] = contigmalloc(test->buffer_size, in ioat_test_transaction_create() 142 struct ioat_test *test; in dump_hex() 146 test 85 struct ioat_test *test; ioat_test_transaction_destroy() local 104 ioat_test_transaction_create(struct ioat_test * test,unsigned num_buffers) ioat_test_transaction_create() argument 148 struct ioat_test *test; ioat_compare_ok() local 181 struct ioat_test *test; ioat_dma_test_callback() local 203 ioat_test_prealloc_memory(struct ioat_test * test,int index) ioat_test_prealloc_memory() argument 235 ioat_test_release_memory(struct ioat_test * test) ioat_test_release_memory() argument 249 ioat_test_submit_1_tx(struct ioat_test * test,bus_dmaengine_t dma) ioat_test_submit_1_tx() argument 361 struct ioat_test *test; ioat_dma_test() local [all...] |
/freebsd/contrib/atf/atf-c/ |
H A D | h_build.h | 33 * Test case data. 52 "test.c", 53 "test.o", 59 "cc", "-o", "test.o", "-c", "test.c", NULL 68 "test.c", 69 "test.o", 75 "cc", "-foo", "-o", "test.o", "-c", "test.c", NULL 84 "test.c", 85 "test.o", 91 "cc", "-f1", "-f2", "-f3", "-f4-f5", "-o", "test.o", [all …]
|
/freebsd/crypto/openssl/fuzz/ |
H A D | build.info | 80 …PROGRAMS{noinst}=asn1-test asn1parse-test bignum-test bndiv-test client-test conf-test crl-test se… 83 PROGRAMS{noinst}=cmp-test 87 PROGRAMS{noinst}=cms-test 91 PROGRAMS{noinst}=ct-test 95 PROGRAMS{noinst}=x509-test 98 SOURCE[asn1-test]=asn1.c test-corpus.c fuzz_rand.c 99 INCLUDE[asn1-test]=../include 100 DEPEND[asn1-test]=../libcrypto ../libssl 102 SOURCE[asn1parse-test]=asn1parse.c test-corpus.c 103 INCLUDE[asn1parse-test]=../include [all …]
|
/freebsd/tests/sys/file/ |
H A D | dup_test.c | 10 * Test #1: check if dup(2) works. 11 * Test #2: check if dup2(2) works. 12 * Test #3: check if dup2(2) returned a fd we asked for. 13 * Test #4: check if dup2(2) cleared close-on-exec flag for duped fd. 14 * Test #5: check if dup2(2) allows to dup fd to itself. 15 * Test #6: check if dup2(2) returned a fd we asked for. 16 * Test #7: check if dup2(2) did not clear close-on-exec flag for duped fd. 17 * Test #8: check if fcntl(F_DUPFD) works. 18 * Test #9: check if fcntl(F_DUPFD) cleared close-on-exec flag for duped fd. 19 * Test #10: check if dup2() to a fd > current maximum number of open files [all …]
|
/freebsd/contrib/libarchive/tar/test/ |
H A D | test_option_exclude.c | 7 #include "test.h" 18 * Now, try extracting from the test archive with various --exclude options. in DEFINE_TEST() 21 /* Test 1: Without --exclude */ in DEFINE_TEST() 25 systemf("%s -xf ../archive.tar >test.out 2>test.err", testprog)); in DEFINE_TEST() 28 assertEmptyFile("test.out"); in DEFINE_TEST() 29 assertEmptyFile("test.err"); in DEFINE_TEST() 32 /* Test 2: Selecting just one file */ in DEFINE_TEST() 36 systemf("%s -xf ../archive.tar file1 >test.out 2>test.err", testprog)); in DEFINE_TEST() 39 assertEmptyFile("test.out"); in DEFINE_TEST() 40 assertEmptyFile("test.err"); in DEFINE_TEST() [all …]
|
/freebsd/contrib/kyua/doc/ |
H A D | kyuafile.5.in | 33 .Nd Test suite description files 49 A test suite is a collection of test programs and is represented by a 50 hierarchical layout of test binaries on the file system. 51 Any subtree of the file system can represent a test suite, provided that it 54 which are the test suite definition files. 58 is a Lua script whose purpose is to describe the structure of the test 79 .Ss Test suite definition 82 registers any test programs, 85 must define the name of the test suite the test programs belong to by using the 89 The test suite name provided in the [all …]
|
/freebsd/tools/regression/netinet/ipdivert/ |
H A D | ipdivert.c | 31 * 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) in ok() argument 53 fprintf(stderr, "%s: OK\n", test); in ok() 57 fail(const char *test, const char *note) in fail() argument 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() [all …]
|
/freebsd/contrib/googletest/docs/reference/ |
H A D | testing.md | 5 This page lists the facilities provided by GoogleTest for writing test programs. 12 ### TEST {#TEST} 15 TEST(<em>TestSuiteName</em>, <em>TestName</em>) { 20 Defines an individual test named *`TestName`* in the test suite 24 and must not contain underscores (`_`). Tests in different test suites can have 27 The statements within the test body can be any code under test. 28 [Assertions](assertions.md) used within the test body determine the outcome of 29 the test. 39 Defines an individual test named *`TestName`* that uses the test fixture class 40 *`TestFixtureName`*. The test suite name is *`TestFixtureName`*. [all …]
|
/freebsd/contrib/kyua/model/ |
H A D | test_case.cpp | 46 /// Name of the test case; must be unique within the test program. 49 /// Metadata of the container test program. 53 /// of test programs _containing_ this test case, we can assume that the 54 /// referenced object will be alive for the lifetime of this test case. 57 /// Test case metadata. 60 /// Fake result to return instead of running the test case. 65 /// \param name_ The name of the test case within the test program. 66 /// \param md_defaults_ Metadata of the container test program. 67 /// \param md_ Metadata of the test case. 68 /// \param fake_result_ Fake result to return instead of running the test [all …]
|
/freebsd/contrib/googletest/googletest/test/ |
H A D | googletest-shuffle-test.py | 31 """Verifies that test shuffling works.""" 34 from googletest.test import gtest_test_utils 39 # The environment variables for test sharding. 77 """Runs the test program and returns its output.""" 86 """Runs the test program and returns a list of test lists. 94 test iteration. 109 """Returns a list of test cases in the given full test names. 112 tests: a list of full test names 115 A list of test cases from 'tests', in their original order. 120 for test in tests: [all …]
|
/freebsd/sys/contrib/openzfs/man/man1/ |
H A D | test-runner.1 | 57 is an executable file, it is added as a test. 64 is specified, the directory is treated as a test group. 66 .Sy Test Groups 78 Rather than executing the tests and logging the results, the test configuration 93 which can specify a series of tests and test groups to be executed. 96 .Ss Test Groups 97 A test group is comprised of a set of executable files, all of which exist in 104 Rather than running before and after each test, 105 these scripts are run only once each at the start and end of the test group. 106 .Ss Test Execution [all …]
|
/freebsd/contrib/googletest/docs/ |
H A D | primer.md | 12 So what makes a good test, and how does GoogleTest fit in? We believe: 14 1. Tests should be *independent* and *repeatable*. It's a pain to debug a test 16 tests by running each of them on a different object. When a test fails, 19 code. GoogleTest groups related tests into test suites that can share data 28 as possible. GoogleTest doesn't stop at the first test failure. Instead, it 29 only stops the current test and continues with the next. You can also set up 30 tests that report non-fatal failures after which the current test continues. 33 5. The testing framework should liberate test writers from housekeeping chores 34 and let them focus on the test *content*. GoogleTest automatically keeps 49 terms *Test*, *Test Case* and *Test Suite*, so beware of misunderstanding these. [all …]
|