/illumos-gate/usr/src/common/ficl/test/ |
H A D | testcase.fr | 7 : test-case ( n -- ) 21 see test-case 28 0 test-case 31 1 test-case 34 324 test-case 41 : test-case-2 ( n -- ) 58 see test-case-2 67 0 test-case-2 70 1 test-case-2 73 2 test-case-2 [all …]
|
/illumos-gate/usr/src/test/nvme-tests/tests/ioctl/ |
H A D | multi-lock-err.c | 95 nvme_ioctl_lock_t lock = *test->rlt_lock; in rec_lock_test() 100 test->rlt_desc, type); in rec_lock_test() 104 "0x%x, expected success", test->rlt_desc, type, in rec_lock_test() 109 lock = *test->rlt_lock; in rec_lock_test() 113 test->rlt_desc, type); in rec_lock_test() 119 test->rlt_desc, type, lock.nil_common.nioc_drv_err, in rec_lock_test() 130 nvme_ioctl_lock_t lock = *test->nlt_lock; in ns_lock_test() 135 test->nlt_desc, type); in ns_lock_test() 140 test->nlt_desc, type, lock.nil_common.nioc_drv_err, in ns_lock_test() 141 test->nlt_err); in ns_lock_test() [all …]
|
H A D | lock-order.c | 94 if (test->lot_locks[i] == NULL) in lock_verify_write_before_read() 124 "(%s)", test->lot_desc, i, res->loi_thread, in lock_verify_write_before_read() 153 if (test->lot_locks[i] == NULL) in lock_verify_ctrl_before_ns() 183 "(%s)", test->lot_desc, i, res->loi_thread, in lock_verify_ctrl_before_ns() 205 if (!lock_verify_ctrl_before_ns(test, nthr)) in lock_verif_ent_level() 207 if (!lock_verify_write_before_read(test, nthr)) in lock_verif_ent_level() 321 lock_order_test(const lock_order_test_t *test) in lock_order_test() argument 343 if (test->lot_locks[i] == NULL) in lock_order_test() 351 test->lot_desc, i); in lock_order_test() 377 test->lot_desc, i); in lock_order_test() [all …]
|
H A D | lock-signal.c | 63 const lock_sig_test_t *test = arg; in lock_signal_thr() local 64 nvme_ioctl_lock_t lock = *test->lss_lock; in lock_signal_thr() 86 test->lss_desc, NVME_IOCTL_E_LOCK_WAIT_SIGNAL, in lock_signal_thr() 91 "interrupted\n", test->lss_desc); in lock_signal_thr() 98 lock_signal_one(const lock_sig_test_t *test) in lock_signal_one() argument 105 ret = thr_create(NULL, 0, lock_signal_thr, (void *)test, 0, &thr); in lock_signal_one() 109 test->lss_desc); in lock_signal_one() 124 test->lss_desc, thr); in lock_signal_one() 130 "because we failed to join thread %u", test->lss_desc, thr); in lock_signal_one() 135 nvme_ioctl_test_lock(fd, test->lss_lock); in lock_signal_one() [all …]
|
H A D | ctrl-block-lock.c | 153 ctrl_block_test_one(int fd0, int fd1, const ctrl_block_test_t *test) in ctrl_block_test_one() argument 155 nvme_ioctl_lock_t lock0 = *test->cbt_lock0; in ctrl_block_test_one() 156 nvme_ioctl_lock_t lock1 = *test->cbt_lock1; in ctrl_block_test_one() 160 test->cbt_desc); in ctrl_block_test_one() 164 "expected success", test->cbt_desc, in ctrl_block_test_one() 171 test->cbt_desc); in ctrl_block_test_one() 173 } else if (lock1.nil_common.nioc_drv_err != test->cbt_ret1) { in ctrl_block_test_one() 175 "expected 0x%x", test->cbt_desc, in ctrl_block_test_one() 176 lock1.nil_common.nioc_drv_err, test->cbt_ret1); in ctrl_block_test_one() 180 (void) printf("TEST PASSED: %s\n", test->cbt_desc); in ctrl_block_test_one()
|
H A D | bad-lock.c | 246 bad_lock_test(int fd, const bad_lock_test_t *test, bool ns) in bad_lock_test() argument 248 nvme_ioctl_lock_t lock = test->blt_lock; in bad_lock_test() 253 test->blt_desc, type); in bad_lock_test() 257 if (lock.nil_common.nioc_drv_err != test->blt_err) { in bad_lock_test() 259 "expected 0x%x", test->blt_desc, type, in bad_lock_test() 260 lock.nil_common.nioc_drv_err, test->blt_err); in bad_lock_test() 271 nvme_ioctl_unlock_t unlock = test->but_unlock; in bad_unlock_test() 276 test->but_desc, type); in bad_unlock_test() 280 if (unlock.niu_common.nioc_drv_err != test->but_err) { in bad_unlock_test() 282 "expected 0x%x", test->but_desc, type, in bad_unlock_test() [all …]
|
/illumos-gate/usr/src/test/smbsrv-tests/doc/ |
H A D | README | 33 cd $SRC/test/smbsrv-tests 48 Add test user: 49 # useradd test 50 # smbadm enable-user test 51 # passwd test 67 <pool>/test 75 # zfs snapshot <pool>/test@a 76 # zfs snapshot <pool>/test@b 77 # zfs snapshot <pool>/test@c 81 # zfs set sharesmb=name=test <pool>/test [all …]
|
/illumos-gate/usr/src/test/nvme-tests/tests/unit/ |
H A D | version.c | 76 vers_test_one(const nvme_version_test_t *test) in vers_test_one() argument 78 bool res = nvme_vers_atleast(test->nvt_dev, test->nvt_targ); in vers_test_one() 79 if (res != test->nvt_pass) { in vers_test_one() 83 test->nvt_desc, test->nvt_dev->v_major, in vers_test_one() 84 test->nvt_dev->v_minor, test->nvt_targ->v_major, in vers_test_one() 85 test->nvt_targ->v_minor, rstr); in vers_test_one() 88 (void) printf("TEST PASSED: %s\n", test->nvt_desc); in vers_test_one()
|
H A D | controllers.c | 316 nvme_unit_field_test_one(const nvme_unit_field_test_t *test) in nvme_unit_field_test_one() argument 323 field = &test->nu_fields[test->nu_index]; in nvme_unit_field_test_one() 324 err = nvme_field_validate(field, test->nu_data, test->nu_value, buf, in nvme_unit_field_test_one() 327 if (err != test->nu_ret) { in nvme_unit_field_test_one() 329 "expected %s (%u)", test->nu_desc, in nvme_unit_field_test_one() 331 nvme_field_error_to_str(test->nu_ret), test->nu_ret); in nvme_unit_field_test_one() 336 test->nu_desc); in nvme_unit_field_test_one() 338 warnx("TEST FAILED: %s: error buffer was empty", test->nu_desc); in nvme_unit_field_test_one() 342 test->nu_desc); in nvme_unit_field_test_one() 347 test->nu_desc); in nvme_unit_field_test_one()
|
H A D | logs.c | 797 info = log_test_find_info(test->lst_desc, test->lst_short); in log_scope_test_one() 801 test->lst_desc, scope, test->lst_exp_scope); in log_scope_test_one() 816 info = log_test_find_info(test->lt_desc, test->lt_short); in log_size_test_one() 819 if (len != test->lt_size) { in log_size_test_one() 821 PRIu64, test->lt_desc, test->lt_size, len); in log_size_test_one() 825 test->lt_desc); in log_size_test_one() 828 if (var != test->lt_var) { in log_size_test_one() 830 test->lt_desc, test->lt_var, var); in log_size_test_one() 834 test->lt_desc); in log_size_test_one() 846 info = log_test_find_info(test->lit_desc, test->lit_short); in log_impl_test_one() [all …]
|
/illumos-gate/usr/src/test/libc-tests/tests/nl_langinfo/ |
H A D | nl_langinfo_test.c | 179 test_nl_langinfo_1(const char *locale, struct langinfo_test *test) in test_nl_langinfo_1() argument 197 for (int i = 0; test[i].value != NULL; i++) { in test_nl_langinfo_1() 198 v = nl_langinfo(test[i].param); in test_nl_langinfo_1() 200 test[i].param, test[i].value, v); in test_nl_langinfo_1() 201 if (strcmp(v, test[i].value) != 0) { in test_nl_langinfo_1() 204 test[i].param, test[i].value, v); in test_nl_langinfo_1() 235 for (int i = 0; test[i].value != NULL; i++) { in test_nl_langinfo_l() 236 v = nl_langinfo_l(test[i].param, loc); in test_nl_langinfo_l() 238 test[i].param, test[i].value, v); in test_nl_langinfo_l() 239 if (strcmp(v, test[i].value) != 0) { in test_nl_langinfo_l() [all …]
|
/illumos-gate/usr/src/lib/libsqlite/test/ |
H A D | trigger4.test | 21 create view test as 29 insert into test values(1,2,3); 40 sqlite db test.db 42 insert into test values(4,5,6); 59 update test set a=22 where id=1; 70 sqlite db test.db 85 insert into test values(7,8,9); 90 sqlite db test.db 92 insert into test values(7,8,9); 108 insert into test values(7,8,9); [all …]
|
H A D | all.test | 14 # $Id: all.test,v 1.19 2003/02/16 22:21:33 drh Exp $ 52 all.test 53 quick.test 54 malloc.test 55 misuse.test 56 memleak.test 58 # btree2.test 87 puts -nonewline memory-leak-test... 95 lappend ::failList memory-leak-test 105 catch {source $testdir/misuse.test} [all …]
|
/illumos-gate/usr/src/test/util-tests/tests/libjedec/ |
H A D | libjedec_spd.c | 162 libjedec_spd_test(const libjedec_spd_test_t *test) in libjedec_spd_test() argument 168 nvl = libjedec_spd(test->lst_data, test->lst_len, &err); in libjedec_spd_test() 169 if (err != test->lst_err) { in libjedec_spd_test() 171 test->lst_err, err); in libjedec_spd_test() 176 if (test->lst_err != LIBJEDEC_SPD_OK) { in libjedec_spd_test() 178 "an nvlist! Contents:", test->lst_err); in libjedec_spd_test() 183 if (test->lst_err == LIBJEDEC_SPD_OK) { in libjedec_spd_test() 190 if (pass && test->lst_check) { in libjedec_spd_test() 191 pass = test->lst_check(nvl); in libjedec_spd_test() 205 if (!libjedec_spd_test(test)) { in main() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/Documentation/ |
H A D | test-suite.rst | 4 Sparse has a number of test cases in its validation directory. The test-suite 6 embedding tags in C comments in the test cases. 13 Name of the test. This is the only mandatory tag. 17 A description of what the test checks. 24 run the test-case. 68 Mark the test as being known to fail. 91 Using test-suite 96 It can be called to check a single test with:: 104 Writing a test 107 The test-suite comes with a format command to make a test easier to write:: [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/INIT/ |
H A D | iffe.tst | 634 iffe: test: long int type ... 668 iffe: test: long int type ... 742 iffe: test: long int type ... 782 iffe: test: long int type ... 843 iffe: test: long int type ... 862 iffe: test: long int type ... 863 iffe: test: long int type ... 887 iffe: test: long int type ... 888 iffe: test: long int type ... 1750 print /* test header */ [all …]
|
/illumos-gate/usr/src/test/test-runner/stf/contrib/include/ |
H A D | ctiutils.shlib | 94 # cti_cancel() cancels the dedicated test purpose in the current test 169 test $# -eq 0 && return 362 if test $pathok -eq $1 383 test $# -eq 0 && return 588 if test -f cti_stdin 616 if test -s cti_stdout 620 if test -s cti_stderr 723 while test $# -gt 1 727 if test "$1" = "CALL" 746 if test $? -ne 0 [all …]
|
/illumos-gate/usr/src/test/os-tests/tests/portfs/ |
H A D | file_assoc.c | 95 fa_run_test(int portfd, int filefd, fa_test_t *test) in fa_run_test() argument 113 (void) printf("TEST FAILED: %s\n", test->fa_msg); in fa_run_test() 120 for (uint_t i = 0; test->fa_acts[i] != FA_DONE; i++) { in fa_run_test() 123 switch (test->fa_acts[i]) { in fa_run_test() 173 (void) printf("TEST FAILED: %s\n", test->fa_msg); in fa_run_test() 178 if (!test->fa_getevent) { in fa_run_test() 184 (void) printf("TEST FAILED: %s\n", test->fa_msg); in fa_run_test() 187 (void) printf("TEST PASSED: %s\n", test->fa_msg); in fa_run_test() 194 (void) printf("TEST FAILED: %s\n", test->fa_msg); in fa_run_test() 221 (void) printf("TEST PASSED: %s\n", test->fa_msg); in fa_run_test() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/validation/ |
H A D | sm_implied8.c | 5 int test, test2; variable 10 if (({int test = !!x; frob(); frob(); frob(); test;})) in func() 14 if (test) in func() 20 test = !!(x == 10); in func() 21 if (!test) in func()
|
/illumos-gate/usr/src/test/os-tests/tests/minttl/ |
H A D | minttl_err.c | 241 minttl_err_one(const minttl_err_test_t *test) in minttl_err_one() argument 246 sock = socket(test->me_domain, test->me_type, test->me_proto); in minttl_err_one() 248 warn("TEST FAILED: %s: failed to create socket", test->me_desc); in minttl_err_one() 252 val = test->me_value; in minttl_err_one() 253 if (setsockopt(sock, test->me_level, test->me_sockopt, &val, in minttl_err_one() 256 test->me_desc); in minttl_err_one() 257 } else if (errno != test->me_errno) { in minttl_err_one() 260 test->me_desc, strerrorname_np(test->me_errno), in minttl_err_one() 263 (void) printf("TEST PASSED: %s\n", test->me_desc); in minttl_err_one()
|
/illumos-gate/usr/src/test/os-tests/tests/ |
H A D | clock_gettime.c | 84 clock_test(clock_gettime_test_t *test) in clock_test() argument 90 if (clock_gettime(test->cgt_clock, &ts0) != 0) { in clock_test() 91 warn("failed to get clock %u", test->cgt_clock); in clock_test() 95 hrt0 = test->cgt_alt(); in clock_test() 96 hrt1 = test->cgt_alt(); in clock_test() 98 if (clock_gettime(test->cgt_clock, &ts1) != 0) { in clock_test() 99 warn("failed to get clock %u", test->cgt_clock); in clock_test() 103 hrt2 = test->cgt_alt(); in clock_test() 111 test->cgt_name, convts0, hrt0); in clock_test() 118 "alternate: %lld", test->cgt_name, hrt0, hrt1); in clock_test() [all …]
|
/illumos-gate/usr/src/lib/libc/amd64/gen/ |
H A D | strcpy.S | 37 test %edx, %edx 75 test %edx, %edx 172 test %edx, %edx 184 test %edx, %edx 197 test %edx, %edx 209 test %edx, %edx 236 test %edx, %edx 257 test %edx, %edx 281 test %edx, %edx 303 test %edx, %edx [all …]
|
/illumos-gate/usr/src/test/ |
H A D | README | 18 1. A Brief History of usr/src/test 25 1. A Brief History of usr/src/test 39 Currently, all the test suites under usr/src/test provide a wrapper script 41 may (for example) allow the script to specify which disks may be used by a test 44 file for a test suite. For specifics on the options available in the framework 58 with the exit value returned by the test. A test may also be marked SKIPPED in 59 the event that a prerequisite test is marked FAIL, or marked KILLED in the 60 event the test times out. Note that there is no way to force a test to be 61 marked SKIPPED; this is intentional. If a test must be skipped due to 64 run is that every test is marked PASS. [all …]
|
/illumos-gate/usr/src/test/util-tests/tests/awk/examples/out/ |
H A D | p.24 | 1 data/test.countries Russia 8650 262 Asia 2 data/test.countries Canada 3852 24 North America 3 data/test.countries China 3692 866 Asia 4 data/test.countries USA 3615 219 North America 5 data/test.countries Brazil 3286 116 South America
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | md5.c | 336 test (char *buffer, char *expected) in test() function 354 test ("", "d41d8cd98f00b204e9800998ecf8427e"); in main() 355 test ("a", "0cc175b9c0f1b6a831c399e269772661"); in main() 356 test ("abc", "900150983cd24fb0d6963f7d28e17f72"); in main() 357 test ("message digest", "f96b697d7cb7938d525a2f31aaf161d0"); in main() 358 test ("abcdefghijklmnopqrstuvwxyz", "c3fcd3d76192e4007dfb496cca67e13b"); in main() 359 test ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", in main() 363 test ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz3456", in main() 365 test ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz345", in main() 367 test ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz34567", in main() [all …]
|