/third_party/ltp/testcases/network/iptables/ |
D | iptables_lib.sh | 61 tst_res TINFO "INIT: Flushing all rules" 91 tst_res TINFO "$cmd will list all rules in table filter" 104 tst_res TINFO "$cmd lists rules" 109 tst_res TINFO "$cmd will list all rules in table nat" 122 tst_res TINFO "$cmd lists rules" 127 tst_res TINFO "$cmd will list all rules in table mangle" 139 tst_res TINFO "$cmd lists rules" 148 tst_res TINFO "Use $toolname to DROP packets from particular IP" 149 tst_res TINFO "Rule to block icmp from $loc_addr" 158 tst_res TINFO "Pinging $loc_addr" [all …]
|
/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl21.c | 327 tst_resm(TINFO, "Enter block 1"); in main() 350 tst_resm(TINFO, "Test block 1: FAILED"); in main() 352 tst_resm(TINFO, "Test block 1: PASSED"); in main() 354 tst_resm(TINFO, "Exit block 1"); in main() 357 tst_resm(TINFO, "Enter block 2"); in main() 381 tst_resm(TINFO, "Test block 2: FAILED"); in main() 383 tst_resm(TINFO, "Test block 2: PASSED"); in main() 386 tst_resm(TINFO, "Exit block 2"); in main() 389 tst_resm(TINFO, "Enter block 3"); in main() 432 tst_resm(TINFO, "Test block 3: FAILED"); in main() [all …]
|
D | fcntl18.c | 75 tst_resm(TINFO, "Enter block 1"); in main() 91 tst_resm(TINFO, "Block 1 FAILED"); in main() 93 tst_resm(TINFO, "Block 1 PASSED"); in main() 95 tst_resm(TINFO, "Exit block 1"); in main() 97 tst_resm(TINFO, "Skip block 1 on uClinux"); in main() 103 tst_resm(TINFO, "Enter block 2"); in main() 114 tst_resm(TINFO, "Block 2 FAILED"); in main() 116 tst_resm(TINFO, "Block 2 PASSED"); in main() 118 tst_resm(TINFO, "Exit block 2"); in main() 120 tst_resm(TINFO, "Skip block 2 on uClinux"); in main() [all …]
|
D | fcntl20.c | 320 tst_resm(TINFO, "Enter block 1"); in main() 355 tst_resm(TINFO, "Test block 1: FAILED"); in main() 357 tst_resm(TINFO, "Test block 1: PASSED"); in main() 359 tst_resm(TINFO, "Exit block 1"); in main() 362 tst_resm(TINFO, "Enter block 2"); in main() 398 tst_resm(TINFO, "Test block 2: FAILED"); in main() 400 tst_resm(TINFO, "Test block 2: PASSED"); in main() 401 tst_resm(TINFO, "Exit block 2"); in main() 404 tst_resm(TINFO, "Enter block 3"); in main() 441 tst_resm(TINFO, "Test block 3: FAILED"); in main() [all …]
|
D | fcntl19.c | 321 tst_resm(TINFO, "Enter block 1"); in main() 356 tst_resm(TINFO, "Test block 1: FAILED"); in main() 358 tst_resm(TINFO, "Test block 1: PASSED"); in main() 360 tst_resm(TINFO, "Exit block 1"); in main() 363 tst_resm(TINFO, "Enter block 2"); in main() 399 tst_resm(TINFO, "Test block 2: FAILED"); in main() 401 tst_resm(TINFO, "Test block 2: PASSED"); in main() 403 tst_resm(TINFO, "Exit block 2"); in main() 406 tst_resm(TINFO, "Enter block 3"); in main() 443 tst_resm(TINFO, "Test block 3: FAILED"); in main() [all …]
|
D | fcntl17.c | 189 tst_resm(TINFO, "child 1 starting"); in do_child1() 192 tst_resm(TINFO, "child 1 lock err %d", err); in do_child1() 195 tst_resm(TINFO, "child 1 pid %d locked", getpid()); in do_child1() 200 tst_resm(TINFO, "child 1 resuming"); in do_child1() 202 tst_resm(TINFO, "child 1 unlocked"); in do_child1() 205 tst_resm(TINFO, "child 1 exiting"); in do_child1() 221 tst_resm(TINFO, "child 2 starting"); in do_child2() 224 tst_resm(TINFO, "child 2 lock err %d", err); in do_child2() 227 tst_resm(TINFO, "child 2 pid %d locked", getpid()); in do_child2() 232 tst_resm(TINFO, "child 2 resuming"); in do_child2() [all …]
|
/third_party/ltp/testcases/kernel/fs/ftest/ |
D | libftest.c | 34 tst_resm(TINFO, "\tBuf:"); in ft_dumpiov() 45 tst_resm(TINFO, "\t%" PRIx32 "x,", in ft_dumpiov() 48 tst_resm(TINFO, "\t%d*%" PRIx32 "x, ", i - idx, in ft_dumpiov() 55 tst_resm(TINFO, "\t ... more"); in ft_dumpiov() 61 tst_resm(TINFO, "\t%" PRIx32 "x", buf[idx] & 0xff); in ft_dumpiov() 63 tst_resm(TINFO, "\t%d*%" PRIx32 "x", i - idx, buf[idx]); in ft_dumpiov() 73 tst_resm(TINFO, "\tBits array:"); in ft_dumpbits() 76 tst_resm(TINFO, "\t%td:\t", 8 * (buf - bits)); in ft_dumpbits() 79 tst_resm(TINFO, "\t%td:\t", 8 * (buf - bits)); in ft_dumpbits() 81 tst_resm(TINFO, "\t%02" PRIx32 "x ", *((char *)buf) & 0xff); in ft_dumpbits() [all …]
|
/third_party/ltp/lib/newlib_tests/ |
D | test_macros01.c | 35 tst_res(TINFO, "Testing TST_EXP_FD macro"); in do_test() 37 tst_res(TINFO, "TST_PASS = %i", TST_PASS); in do_test() 39 tst_res(TINFO, "TST_PASS = %i", TST_PASS); in do_test() 41 tst_res(TINFO, "TST_PASS = %i", TST_PASS); in do_test() 43 tst_res(TINFO, "TST_PASS = %i", TST_PASS); in do_test() 45 tst_res(TINFO, "Testing TST_EXP_FD_SILENT macro"); in do_test() 47 tst_res(TINFO, "TST_PASS = %i", TST_PASS); in do_test() 49 tst_res(TINFO, "TST_PASS = %i from TST_EXP_FD_SILENT(pass_fd, ...)", TST_PASS); in do_test() 51 tst_res(TINFO, "TST_PASS = %i", TST_PASS); in do_test() 53 tst_res(TINFO, "TST_PASS = %i from TST_EXP_FD_SILENT(zero_val, ...)", TST_PASS); in do_test()
|
D | test_macros04.c | 35 tst_res(TINFO, "Testing TST_EXP_PID macro"); in do_test() 37 tst_res(TINFO, "TST_PASS = %i", TST_PASS); in do_test() 39 tst_res(TINFO, "TST_PASS = %i", TST_PASS); in do_test() 41 tst_res(TINFO, "TST_PASS = %i", TST_PASS); in do_test() 43 tst_res(TINFO, "TST_PASS = %i", TST_PASS); in do_test() 45 tst_res(TINFO, "Testing TST_EXP_PID_SILENT macro"); in do_test() 47 tst_res(TINFO, "TST_PASS = %i", TST_PASS); in do_test() 49 tst_res(TINFO, "TST_PASS = %i from TST_EXP_PID_SILENT(pass_pid, ...)", TST_PASS); in do_test() 51 tst_res(TINFO, "TST_PASS = %i", TST_PASS); in do_test() 53 tst_res(TINFO, "TST_PASS = %i from TST_EXP_PID_SILENT(zero_val, ...)", TST_PASS); in do_test()
|
D | test_macros02.c | 30 tst_res(TINFO, "Testing TST_EXP_FAIL macro"); in do_test() 32 tst_res(TINFO, "TST_PASS = %i", TST_PASS); in do_test() 34 tst_res(TINFO, "TST_PASS = %i", TST_PASS); in do_test() 36 tst_res(TINFO, "TST_PASS = %i", TST_PASS); in do_test() 38 tst_res(TINFO, "TST_PASS = %i", TST_PASS); in do_test() 40 tst_res(TINFO, "Testing TST_EXP_FAIL2 macro"); in do_test() 42 tst_res(TINFO, "TST_PASS = %i", TST_PASS); in do_test() 44 tst_res(TINFO, "TST_PASS = %i", TST_PASS); in do_test() 46 tst_res(TINFO, "TST_PASS = %i", TST_PASS); in do_test() 48 tst_res(TINFO, "TST_PASS = %i", TST_PASS); in do_test()
|
D | test_macros03.c | 30 tst_res(TINFO, "Testing TST_EXP_PASS macro"); in do_test() 32 tst_res(TINFO, "TST_PASS = %i", TST_PASS); in do_test() 34 tst_res(TINFO, "TST_PASS = %i", TST_PASS); in do_test() 36 tst_res(TINFO, "TST_PASS = %i", TST_PASS); in do_test() 38 tst_res(TINFO, "Testing TST_EXP_PASS_SILENT macro"); in do_test() 40 tst_res(TINFO, "TST_PASS = %i", TST_PASS); in do_test() 42 tst_res(TINFO, "TST_PASS = %i from TST_EXP_PASS_SILENT(pass_fn, ...)", TST_PASS); in do_test() 44 tst_res(TINFO, "TST_PASS = %i", TST_PASS); in do_test()
|
D | runtest.sh | 35 TINFO) return 16;; 81 runtest_res TINFO "=== Run $target tests ===" 84 runtest_res TINFO "* $i" 110 runtest_res TINFO "=== $target TEST RESULTS ===" 111 runtest_res TINFO "$(echo $tpass | wc -w)x TPASS:$tpass" 112 runtest_res TINFO "$(echo $tfail | wc -w)x TFAIL:$tfail" 113 runtest_res TINFO "$(echo $tbrok | wc -w)x TBROK:$tbrok" 114 runtest_res TINFO "$(echo $twarn | wc -w)x TWARN:$twarn" 115 runtest_res TINFO "$(echo $tconf | wc -w)x TCONF:$tconf" 175 runtest_res TINFO "PATH='$PATH'" [all …]
|
/third_party/ltp/testcases/kernel/mem/vmtests/ |
D | stack_space.c | 151 tst_resm(TINFO, "System resource may be too low."); in runtest() 165 tst_resm(TINFO, "\t%s[%d] exited status = 0x%x\n", prog, child, in runtest() 169 tst_resm(TINFO, "\tFailed - expected 0 exit status."); in runtest() 180 tst_resm(TINFO, "\tWrong # children waited on, count = %d", in runtest() 272 tst_resm(TINFO, "Prev "); in dotest() 275 tst_resm(TINFO, "Next "); in dotest() 289 tst_resm(TINFO, "Prev "); in dotest() 292 tst_resm(TINFO, "Next "); in dotest() 353 tst_resm(TINFO, "Buf: ... "); 355 tst_resm(TINFO, "%x, ", buf[i]); [all …]
|
D | data_space.c | 176 tst_resm(TINFO, "\t%s[%d] exited status = 0x%x\n", prog, child, in runtest() 304 tst_resm(TINFO, "\tPrev "); 307 tst_resm(TINFO, "\tNext "); 321 tst_resm(TINFO, "\tPrev "); 324 tst_resm(TINFO, "\tNext "); 345 tst_resm(TINFO, 385 tst_resm(TINFO, "Buf: ... "); 387 tst_resm(TINFO, "%x, ", buf[i]); 388 tst_resm(TINFO, "\n"); 398 tst_resm(TINFO, "%x, ", buf[idx] & 0xff); [all …]
|
/third_party/ltp/testcases/network/iproute/ |
D | ip_tests.sh | 24 tst_res TINFO "inititalizing tests" 60 tst_res TINFO "test 'ip link set' command" 61 tst_res TINFO "changing mtu size of $iface device" 81 tst_res TINFO "test 'ip link show' command (list device attributes)" 94 tst_res TINFO "test 'ip addr' command with loopback dev" 95 tst_res TINFO "add a new protocol address to the device" 103 tst_res TINFO "show protocol address" 110 tst_res TINFO "delete protocol address" 130 tst_res TINFO "test 'ip neigh' command" 131 tst_res TINFO "add a new neighbor (or replace existed)" [all …]
|
/third_party/ltp/testcases/kernel/syscalls/fallocate/ |
D | fallocate04.c | 66 tst_res(TINFO, "reading the file, compare with expected buffer"); in check_file_data() 73 tst_res_hexd(TINFO, exp_buf, size, "expected:"); in check_file_data() 74 tst_res_hexd(TINFO, rbuf, size, "but read:"); in check_file_data() 82 tst_res(TINFO, "allocate '%zu' bytes", buf_size); in test01() 103 tst_res(TINFO, "read allocated file size '%zu'", alloc_size0); in test02() 104 tst_res(TINFO, "make a hole with FALLOC_FL_PUNCH_HOLE"); in test02() 120 tst_res(TINFO, "check that file has a hole with lseek(,,SEEK_HOLE)"); in test02() 130 tst_res(TINFO, "lseek() doesn't support SEEK_HOLE, " in test02() 137 tst_res(TINFO, "found a hole at '%ld' offset", ret); in test02() 142 tst_res(TINFO, "allocated file size before '%zu' and after '%zu'", in test02() [all …]
|
/third_party/ltp/testcases/commands/logrotate/ |
D | logrotate_tests.sh | 120 tst_resm TINFO "CLEAN: removing all cron jobs." 124 tst_resm TINFO "CLEAN: removing $LTPTMP" 150 tst_resm TINFO "Test #1: create a configfile $LTPTMP/var_mesg.config" 151 tst_resm TINFO "Test #1: use logrotate -f <config> to force rotation" 152 tst_resm TINFO "Test #1: this will rotate the log file according to" 153 tst_resm TINFO "Test #1: the specification in the configfile." 154 tst_resm TINFO "Test #1: 1. rotate /var/log/tst_logfile file." 155 tst_resm TINFO "Test #1: 2. compresses it." 260 tst_resm TINFO "Test #2: create a configfile $LTPTMP/tst_largelog.conf" 261 tst_resm TINFO "Test #2: logrotate $LTPTMP/tst_largelog.conf - cronjob" [all …]
|
/third_party/ltp/testcases/kernel/device-drivers/zram/ |
D | zram03.c | 40 tst_res(TINFO, "create a zram device with %ld bytes in size", SIZE); in set_disksize() 50 tst_res(TINFO, "map this zram device into memory"); in write_device() 54 tst_res(TINFO, "write all the memory"); in write_device() 68 tst_res(TINFO, "verify contents from device"); in verify_device() 96 tst_res(TINFO, "Reset zram"); in reset() 105 tst_res(TINFO, "%s", zram_block_path); in print() 108 tst_res(TINFO, "%s is %s", filename, value); in print() 118 tst_res(TINFO, "%s from %s is %s", nread, zram_stat_path, nread_val); in print_stat() 119 tst_res(TINFO, "%s from %s is %s", nwrite, zram_stat_path, nwrite_val); in print_stat() 131 tst_res(TINFO, "%s from %s is %s", orig, zram_mm_stat_path, orig_val); in print_mm_stat() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/acct/ |
D | acct02.c | 65 tst_res(TINFO, ACCT_V3 "=%c", kconfig.choice); in acct_version_is_3() 86 tst_res(TINFO, "ac_comm != '%s' ('%s')", COMMAND, in verify_acct() 97 tst_res(TINFO, "ac_btime_diff %u", btime_diff); in verify_acct() 102 tst_res(TINFO, "ac_uid != %d (%d)", getuid(), in verify_acct() 108 tst_res(TINFO, "ac_gid != %d (%d)", getgid(), in verify_acct() 115 tst_res(TINFO, "user_time/clock_ticks > 1 (%d/%d: %.2f)", in verify_acct() 122 tst_res(TINFO, "sys_time/clock_ticks > 1 (%d/%d: %.2f)", in verify_acct() 129 tst_res(TINFO, "elap_time/clock_ticks >= 2 (%d/%d: %.2f)", in verify_acct() 135 tst_res(TINFO, "ac_exitcode != %d (%d)", rc, in verify_acct() 143 tst_res(TINFO, "ac_ppid != %d (%d)", (uint32_t)getpid(), in verify_acct() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/statvfs/ |
D | statvfs01.c | 65 tst_resm(TINFO, "This call is similar to statfs"); in main() 66 tst_resm(TINFO, "Extracting info about the '%s' file system", in main() 68 tst_resm(TINFO, "file system block size = %lu bytes", buf.f_bsize); in main() 69 tst_resm(TINFO, "file system fragment size = %lu bytes", buf.f_frsize); in main() 70 tst_resm(TINFO, "file system free blocks = %ju", in main() 72 tst_resm(TINFO, "file system total inodes = %ju", in main() 74 tst_resm(TINFO, "file system free inodes = %ju", in main() 76 tst_resm(TINFO, "file system id = %lu", buf.f_fsid); in main() 77 tst_resm(TINFO, "file system max filename length = %lu", buf.f_namemax); in main()
|
/third_party/ltp/testcases/kernel/syscalls/syslog/ |
D | syslog06 | 41 tst_resm TINFO "syslog: Testing the log option: LOG_NDELAY..." 66 tst_resm TINFO " Test the logging option: LOG_NDELAY" 67 tst_resm TINFO " o Do openlog() without LOG_NDELAY option." 68 tst_resm TINFO " o open a file and check the returned file descriptor" 69 tst_resm TINFO " It should be 3." 70 tst_resm TINFO " o Now do openlog() with LOG_NDELAY option." 71 tst_resm TINFO " o open a file and check the returned file descriptor." 72 tst_resm TINFO " It should be greater than 3."
|
D | syslogtst.c | 63 tst_resm(TINFO, in main() 75 tst_resm(TINFO, in main() 161 tst_resm(TINFO, in main() 193 tst_resm(TINFO, "/var/log/messages restored.."); in main() 202 tst_resm(TINFO, "openlog() without LOG_NDELAY option..."); in main() 206 tst_resm(TINFO, in main() 223 tst_resm(TINFO, "openlog() with LOG_NDELAY option..."); in main() 235 tst_resm(TINFO, "open() has returned expected fd: %d", in main() 310 tst_resm(TINFO, "SIGINT is received."); in sig_handler() 315 tst_resm(TINFO, "SIGTERM is received."); in sig_handler() [all …]
|
/third_party/ltp/testcases/kernel/sched/pthreads/ |
D | pth_str03.c | 205 tst_resm(TINFO, "thread %d started", my_index); in synchronize_children() 286 tst_resm(TINFO, "pthread_cond_timedwait (sync) %d: %s", in synchronize_children() 370 tst_resm(TINFO, "thread %d creating kids, cdepth=%d", my_index, in doit() 378 tst_resm(TINFO, "pthread_create (doit): %s", in doit() 422 tst_resm(TINFO, in doit() 434 tst_resm(TINFO, "thread %d is a leaf node, depth=%d", my_index, in doit() 466 tst_resm(TINFO, in doit() 503 tst_resm(TINFO, in doit() 516 tst_resm(TINFO, "thread %d exiting, depth=%d, status=%d, addr=%p", in doit() 534 tst_resm(TINFO, "pthread_mutex_init(node_mutex): %s", in main() [all …]
|
D | pth_str01.c | 188 tst_resm(TINFO, "thread %d started", my_index); in synchronize_children() 280 tst_resm(TINFO, in synchronize_children() 377 tst_resm(TINFO, "thread %d creating kids, cdepth=%d", my_index, in doit() 393 tst_resm(TINFO, "pthread_create (doit): %s", in doit() 445 tst_resm(TINFO, "thread %d is a leaf node, depth=%d", my_index, in doit() 481 tst_resm(TINFO, in doit() 520 tst_resm(TINFO, in doit() 535 tst_resm(TINFO, "thread %d exiting, depth=%d, status=%d, addr=%p", in doit() 556 tst_resm(TINFO, "pthread_mutex_init(node_mutex): %s", in main() 565 tst_resm(TINFO, "pthread_cond_init(node_condvar): %s", in main() [all …]
|
/third_party/ltp/testcases/kernel/security/umip/ |
D | umip_basic_test.c | 40 tst_res(TINFO, "TEST sgdt, sgdt result save at [%p]", val); in asm_sgdt() 50 tst_res(TINFO, "TEST sidt, sidt result save at [%p]", val); in asm_sidt() 59 tst_res(TINFO, "TEST sldt, sldt result save at [%p]", &val); in asm_sldt() 68 tst_res(TINFO, "TEST smsw, smsw result save at [%p]", &val); in asm_smsw() 77 tst_res(TINFO, "TEST str, str result save at [%p]", &val); in asm_str() 122 tst_res(TINFO, "Linux kernel version is v5.4 or after than v5.4"); in verify_umip_instruction() 131 tst_res(TINFO, "Linux kernel version is before than v5.4"); in verify_umip_instruction() 138 tst_res(TINFO, "Linux kernel version is v5.10 or higher"); in verify_umip_instruction() 147 tst_res(TINFO, "Linux kernel version is earlier than v5.10"); in verify_umip_instruction() 175 tst_res(TINFO, "cpuinfo contains umip, CPU supports umip"); in setup()
|