/external/ltp/testcases/network/iptables/ |
D | iptables_lib.sh | 61 tst_res TINFO "INIT: Flushing all rules" 85 tst_res TCONF "$toolname not applicable for test $1" 91 tst_res TINFO "$cmd will list all rules in table filter" 94 tst_res TFAIL "$cmd failed to list rules" 100 tst_res TFAIL "$cmd failed to list rules" 104 tst_res TINFO "$cmd lists rules" 109 tst_res TINFO "$cmd will list all rules in table nat" 112 tst_res TFAIL "$cmd failed to list rules" 118 tst_res TFAIL "$cmd failed to list rules" 122 tst_res TINFO "$cmd lists rules" [all …]
|
/external/ltp/testcases/network/iproute/ |
D | ip_tests.sh | 23 tst_res TINFO "inititalizing tests" 59 tst_res TINFO "test 'ip link set' command" 60 tst_res TINFO "changing mtu size of $iface device" 65 tst_res TFAIL "ip command failed" 71 tst_res TPASS "successfully changed mtu size" 74 tst_res TFAIL "MTU value set to $MTUSZ, but expected 1281" 80 tst_res TINFO "test 'ip link show' command (list device attributes)" 84 tst_res TFAIL "'ip link show $iface' command failed" 88 tst_res TPASS "$iface correctly listed" 93 tst_res TINFO "test 'ip addr' command with loopback dev" [all …]
|
/external/ltp/testcases/kernel/controllers/pids/ |
D | pids.sh | 41 tst_res TINFO "removing created directories" 44 tst_res TINFO "Umounting pids" 117 tst_res TFAIL "fork failed unexpectedly" 119 tst_res TPASS "fork didn't fail" 121 tst_res TBROK "pids_task1 failed" 130 tst_res TINFO "limit the number of pid to $max" 140 tst_res TPASS "fork failed as expected" 142 tst_res TFAIL "fork didn't fail despite the limit" 144 tst_res TBROK "pids_task1 failed" 153 tst_res TINFO "limit the number of avalaible pid to $lim" [all …]
|
/external/ltp/testcases/kernel/syscalls/ipc/msgctl/ |
D | msgctl01.c | 33 tst_res(TFAIL | TTERRNO, "msgctl() returned %li", TST_RET); in verify_msgctl() 37 tst_res(TPASS, "msgctl(IPC_STAT)"); in verify_msgctl() 40 tst_res(TPASS, "msg_stime = 0"); in verify_msgctl() 42 tst_res(TFAIL, "msg_stime = %lu", (unsigned long)buf.msg_stime); in verify_msgctl() 45 tst_res(TPASS, "msg_rtime = 0"); in verify_msgctl() 47 tst_res(TFAIL, "msg_rtime = %lu", (unsigned long)buf.msg_rtime); in verify_msgctl() 50 tst_res(TPASS, "msg_ctime = %lu, expected %lu", in verify_msgctl() 53 tst_res(TFAIL, "msg_ctime = %lu, expected %lu", in verify_msgctl() 58 tst_res(TPASS, "msg_qnum = 0"); in verify_msgctl() 60 tst_res(TFAIL, "msg_qnum = %li", (long)buf.msg_qnum); in verify_msgctl() [all …]
|
/external/ltp/testcases/kernel/logging/kmsg/ |
D | kmsg01.c | 232 tst_res(TINFO, "TEST: nonblock read"); in test_read_nonblock() 237 tst_res(TPASS, "non-block read returned EAGAIN"); in test_read_nonblock() 239 tst_res(TFAIL|TTERRNO, "non-block read returned: %ld", in test_read_nonblock() 248 tst_res(TINFO, "TEST: blocking read"); in test_read_block() 253 tst_res(TPASS, "read blocked"); in test_read_block() 255 tst_res(TFAIL|TTERRNO, "read returned: %ld", TST_RET); in test_read_block() 264 tst_res(TINFO, "TEST: partial read"); in test_partial_read() 269 tst_res(TPASS|TTERRNO, "read failed as expected"); in test_partial_read() 271 tst_res(TFAIL, "read returned: %ld", TST_RET); in test_partial_read() 282 tst_res(TINFO, "TEST: injected messages appear in /dev/kmsg"); in test_inject() [all …]
|
/external/ltp/testcases/kernel/syscalls/times/ |
D | times03.c | 71 tst_res(TFAIL | TERRNO, "times failed"); in generate_stime() 87 tst_res(TFAIL, "buf1.tms_utime = %li", buf1.tms_utime); in verify_times() 89 tst_res(TPASS, "buf1.tms_utime <= 5"); in verify_times() 92 tst_res(TFAIL, "buf1.tms_stime = %li", buf1.tms_stime); in verify_times() 94 tst_res(TPASS, "buf1.tms_stime <= 5"); in verify_times() 103 tst_res(TFAIL, "buf2.tms_utime = 0"); in verify_times() 105 tst_res(TPASS, "buf2.tms_utime = %li", buf2.tms_utime); in verify_times() 108 tst_res(TFAIL, "buf1.tms_utime (%li) >= buf2.tms_utime (%li)", in verify_times() 111 tst_res(TPASS, "buf1.tms_utime (%li) < buf2.tms_utime (%li)", in verify_times() 116 tst_res(TFAIL, "buf2.tms_stime = 0"); in verify_times() [all …]
|
/external/ltp/testcases/kernel/device-drivers/zram/ |
D | zram_lib.sh | 35 tst_res TINFO "create '$dev_num' zram device(s)" 44 tst_res TPASS "test succeeded" 51 tst_res TCONF "The device attribute max_comp_streams was"\ 56 tst_res TINFO "set max_comp_streams to zram device(s)" 70 tst_res TINFO "$sys_path = '$max_streams' ($i/$dev_num)" 73 tst_res TPASS "test succeeded" 79 tst_res TCONF "device attribute comp_algorithm is"\ 87 tst_res TINFO "test that we can set compression algorithm" 89 tst_res TINFO "supported algs: $algs" 96 tst_res TINFO "$sys_path = '$alg' ($i/$dev_num)" [all …]
|
/external/ltp/testcases/network/nfs/nfsstat01/ |
D | nfsstat01 | 37 tst_res TINFO "checking RPC calls for server/client" 42 tst_res TINFO "calls $server_calls/$client_calls" 44 tst_res TINFO "Checking for tracking of RPC calls for server/client" 49 tst_res TINFO "new calls $new_server_calls/$new_client_calls" 52 tst_res TFAIL "server RPC calls not increased" 54 tst_res TPASS "server RPC calls increased" 58 tst_res TFAIL "client RPC calls not increased" 60 tst_res TPASS "client RPC calls increased" 63 tst_res TINFO "checking NFS calls for server/client" 74 tst_res TINFO "calls $server_calls/$client_calls" [all …]
|
/external/ltp/testcases/kernel/security/integrity/ima/tests/ |
D | ima_tpm.sh | 16 tst_res TINFO "verify boot aggregate" 28 tst_res TINFO "TPM Hardware Support not enabled in kernel or no TPM chip found" 31 tst_res TPASS "bios boot aggregate is 0" 33 tst_res TFAIL "bios boot aggregate is not 0" 38 tst_res TPASS "bios aggregate matches IMA boot aggregate" 40 tst_res TFAIL "bios aggregate does not match IMA boot aggregate" 50 tst_res TINFO "verify PCR (Process Control Register)" 58 tst_res TFAIL "failed to get PCR-10" 75 tst_res TINFO "verify PCR values" 78 tst_res TINFO "evmctl version: $(evmctl --version)" [all …]
|
D | ima_measurements.sh | 22 [ -f "$POLICY" ] || tst_res TINFO "not using default policy" 93 tst_res TFAIL "cannot find measurement record for '$TEST_FILE'" 96 tst_res TINFO "measurement record: '$line'" 100 tst_res TFAIL "cannot find digest (index: $DIGEST_INDEX)" 112 tst_res TFAIL "algorithm must be either md5 or sha1 (digest: '$digest')" 117 tst_res TFAIL "cannot find algorithm" 121 tst_res TFAIL "cannot find digest" 125 tst_res TINFO "computing digest for $algorithm algorithm" 130 tst_res TPASS "correct digest found" 132 tst_res TFAIL "digest not found" [all …]
|
/external/ltp/testcases/commands/ar/ |
D | ar01.sh | 34 tst_res TPASS "ar added new file after another (-a)" 36 tst_res TFAIL "ar failed to add new file after another (-a)" 53 tst_res TPASS "ar moved file correctly (-ma)" 55 tst_res TFAIL "ar failed to move file (-ma)" 71 tst_res TPASS "ar added new file before another (-b)" 73 tst_res TFAIL "ar failed to add new file before another (-b)" 90 tst_res TPASS "ar moved file correctly (-mb)" 92 tst_res TFAIL "ar failed to move file (-mb)" 104 tst_res TFAIL "ar produced output unexpectedly (-c)" 107 tst_res TPASS "ar haven't produced output (-c)" [all …]
|
/external/ltp/testcases/kernel/syscalls/statx/ |
D | statx04.c | 44 tst_res(TPASS, in test_flagged() 51 tst_res(TPASS, "STATX_ATTR_COMPRESSED flag is set"); in test_flagged() 53 tst_res(TFAIL, "STATX_ATTR_COMPRESSED flag is not set"); in test_flagged() 56 tst_res(TPASS, "STATX_ATTR_APPEND flag is set"); in test_flagged() 58 tst_res(TFAIL, "STATX_ATTR_APPEND flag is not set"); in test_flagged() 61 tst_res(TPASS, "STATX_ATTR_IMMUTABLE flag is set"); in test_flagged() 63 tst_res(TFAIL, "STATX_ATTR_IMMUTABLE flag is not set"); in test_flagged() 66 tst_res(TPASS, "STATX_ATTR_NODUMP flag is set"); in test_flagged() 68 tst_res(TFAIL, "STATX_ATTR_NODUMP flag is not set"); in test_flagged() 77 tst_res(TPASS, in test_unflagged() [all …]
|
D | statx01.c | 62 tst_res(TPASS, in test_normal_file() 69 tst_res(TPASS, "stx_uid(%u) is correct", buff.stx_uid); in test_normal_file() 71 tst_res(TFAIL, "stx_uid(%u) is different from euid(%u)", in test_normal_file() 75 tst_res(TPASS, "stx_gid(%u) is correct", buff.stx_gid); in test_normal_file() 77 tst_res(TFAIL, "stx_gid(%u) is different from egid(%u)", in test_normal_file() 81 tst_res(TPASS, in test_normal_file() 84 tst_res(TFAIL, in test_normal_file() 89 tst_res(TPASS, "stx_mode(%u) is correct", buff.stx_mode); in test_normal_file() 91 tst_res(TFAIL, "stx_mode(%u) is different from expected(%u)", in test_normal_file() 96 tst_res(TPASS, "stx_blocks(%"PRIu64") is valid", in test_normal_file() [all …]
|
/external/ltp/testcases/kernel/syscalls/prctl/ |
D | prctl07.c | 48 tst_res(TPASS, in check_proc_capamb() 52 tst_res(TFAIL, in check_proc_capamb() 58 tst_res(flag ? TPASS : TFAIL, in check_proc_capamb() 62 tst_res(flag ? TFAIL : TPASS, in check_proc_capamb() 74 tst_res(TPASS, "PR_CAP_AMBIENT_RAISE %s succeeded", message); in check_cap_raise() 76 tst_res(TFAIL, "PR_CAP_AMBIENT_RAISE %s failed unexpectedly", in check_cap_raise() 81 tst_res(TFAIL, in check_cap_raise() 85 tst_res(TPASS, in check_cap_raise() 88 tst_res(TFAIL | TTERRNO, in check_cap_raise() 98 tst_res(val ? TPASS : TFAIL, in check_cap_is_set() [all …]
|
D | prctl04.c | 95 tst_res(TPASS, "SECCOMP_MODE_FILTER permits fork(2)"); in check_filter_mode_inherit() 101 tst_res(TPASS, in check_filter_mode_inherit() 104 tst_res(TFAIL, in check_filter_mode_inherit() 117 tst_res(TFAIL | TTERRNO, in check_strict_mode() 124 tst_res(TPASS, in check_strict_mode() 127 tst_res(TFAIL, "prctl(PR_GET_SECCOMP) succeed unexpectedly"); in check_strict_mode() 132 tst_res(TPASS, in check_strict_mode() 137 tst_res(TFAIL, in check_strict_mode() 154 tst_res(TCONF, in check_filter_mode() 157 tst_res(TFAIL | TERRNO, in check_filter_mode() [all …]
|
D | prctl03.c | 40 tst_res(TFAIL | TTERRNO, "prctl(PR_GET_CHILD_SUBREAPER) failed"); in check_get_subreaper() 45 tst_res(TPASS, "prctl(PR_GET_CHILD_SUBREAPER) got expected %d", in check_get_subreaper() 48 tst_res(TFAIL, "prctl(PR_GET_CHILD_SUBREAPER) got %d, expected %d", in check_get_subreaper() 64 tst_res(TCONF, in verify_prctl() 67 tst_res(TFAIL | TTERRNO, in verify_prctl() 73 tst_res(TPASS, "prctl(PR_SET_CHILD_SUBREAPER) succeeded"); in verify_prctl() 83 tst_res(TFAIL, in verify_prctl() 88 tst_res(TPASS, "PPID of orphaned process was reparented"); in verify_prctl() 100 tst_res(TPASS, "wait() got orphaned process, pid %d, status %d", in verify_prctl() 103 tst_res(TFAIL | TERRNO, in verify_prctl() [all …]
|
/external/ltp/testcases/network/lib6/ |
D | in6_02.c | 46 tst_res(TINFO, "IPv6 if_nametoindex() test"); in if_nametoindex_test() 50 tst_res(TCONF, "LHOST_IFACES not defined or invalid"); in if_nametoindex_test() 56 tst_res(TFAIL, "if_nametoindex(%s) %ld [should be %szero]", in if_nametoindex_test() 64 tst_res(TFAIL, in if_nametoindex_test() 71 tst_res(TINFO, "if_nametoindex(%s) %ld", in if_nametoindex_test() 75 tst_res(TPASS, "if_nametoindex() test succeeded"); in if_nametoindex_test() 86 tst_res(TFAIL, in sub_if_indextoname_test() 91 tst_res(TINFO, "if_indextoname(%d) returns NULL", if_index); in sub_if_indextoname_test() 97 tst_res(TFAIL, in sub_if_indextoname_test() 102 tst_res(TINFO, "if_indextoname(%d) returns '%s'", if_index, ifname); in sub_if_indextoname_test() [all …]
|
D | in6_01.c | 57 tst_res(TINFO, "type of in6.s6_addr[0] is uint8_t"); in test_in6_addr() 59 tst_res(TFAIL, "sizeof(in6.s6_addr) != 16"); in test_in6_addr() 61 tst_res(TPASS, "sizeof(in6.s6_addr) == 16"); in test_in6_addr() 85 tst_res(TPASS, "all sockaddr_in6 fields present and correct"); in test_sockaddr_in6() 94 tst_res(TINFO, "IN6ADDR_ANY_INIT present"); in test_global_in6_def() 96 tst_res(TINFO, "in6addr_any present and correct"); in test_global_in6_def() 98 tst_res(TFAIL, "in6addr_any incorrect value"); in test_global_in6_def() 102 tst_res(TINFO, "IN6ADDR_LOOPBACK_INIT present"); in test_global_in6_def() 104 tst_res(TINFO, "in6addr_loopback present and correct"); in test_global_in6_def() 106 tst_res(TFAIL, "in6addr_loopback incorrect value"); in test_global_in6_def() [all …]
|
/external/ltp/testcases/commands/nm/ |
D | nm01.sh | 30 tst_res TPASS "Got correct listing" 32 tst_res TFAIL "Got incorrect listing" 39 tst_res TPASS "Got correct listing" 41 tst_res TFAIL "Got incorrect listing" 51 tst_res TFAIL "Got internal symbols with -g" 54 tst_res TPASS "Got only external symbols with -g" 63 tst_res TFAIL "Got non-octal symbol values with -f" 66 tst_res TPASS "Got an octal symbol values with -f" 75 tst_res TPASS "Got SysV format with -f sysv" 77 tst_res TFAIL "Got wrong format with -f sysv" [all …]
|
/external/ltp/testcases/kernel/syscalls/readahead/ |
D | readahead02.c | 131 tst_res(TINFO, "creating test file of size: %zu", testfile_size); in create_testfile() 180 tst_res(TINFO, "readahead calls made: %zu", i); in read_testfile() 186 tst_res(TPASS, "offset is still at 0 as expected"); in read_testfile() 188 tst_res(TFAIL, "offset has changed to: %lu", offset); in read_testfile() 226 tst_res(TINFO, "Test #%d: %s", n, tc->tname); in test_readahead() 229 tst_res(TCONF, in test_readahead() 245 tst_res(TINFO, "read_testfile(0)"); in test_readahead() 256 tst_res(TINFO, "read_testfile(1)"); in test_readahead() 264 tst_res(TCONF, "CONFIG_ADVISE_SYSCALLS not configured " in test_readahead() 271 tst_res(TCONF, "readahead not supported on %s", in test_readahead() [all …]
|
/external/ltp/testcases/kernel/controllers/cgroup/ |
D | cgroup_regression_test.sh | 59 tst_res TPASS $ok_msg 65 tst_res TFAIL "kernel BUG was detected!" 68 tst_res TFAIL "kernel WARNING was detected!" 71 tst_res TFAIL "kernel NULL pointer dereference!" 74 tst_res TFAIL "kernel lockdep warning was detected!" 82 tst_res TWARN "BUG FOUND!" 104 tst_res TFAIL "failed to mount cgroup filesystem" 129 tst_res TFAIL "Failed to mount cgroup filesystem" 142 tst_res TFAIL "wrong notify_on_release value" 144 tst_res TPASS "notify_on_release is inherited" [all …]
|
/external/ltp/testcases/kernel/syscalls/quotactl/ |
D | quotactl02.h | 62 tst_res(TFAIL | TERRNO, in check_qoff() 68 tst_res(TFAIL, "xfs quota enforcement was on unexpectedly"); in check_qoff() 72 tst_res(TPASS, "quotactl() succeeded to %s", desp); in check_qoff() 82 tst_res(TFAIL | TERRNO, in check_qon() 88 tst_res(TFAIL, "xfs quota enforcement was off unexpectedly"); in check_qon() 92 tst_res(TPASS, "quotactl() succeeded to %s", desp); in check_qon() 104 tst_res(TFAIL | TERRNO, in check_qoffv() 110 tst_res(TFAIL, "xfs quota enforcement was on unexpectedly"); in check_qoffv() 114 tst_res(TPASS, "quotactl() succeeded to %s", desp); in check_qoffv() 126 tst_res(TFAIL | TERRNO, in check_qonv() [all …]
|
/external/ltp/testcases/kernel/syscalls/acct/ |
D | acct02.c | 82 tst_res(TINFO, "ac_comm != '%s' ('%s')", COMMAND, in verify_acct() 93 tst_res(TINFO, "ac_btime_diff %u", btime_diff); in verify_acct() 98 tst_res(TINFO, "ac_uid != %d (%d)", getuid(), in verify_acct() 104 tst_res(TINFO, "ac_gid != %d (%d)", getgid(), in verify_acct() 111 tst_res(TINFO, "user_time/clock_ticks > 1 (%d/%d: %.2f)", in verify_acct() 118 tst_res(TINFO, "sys_time/clock_ticks > 1 (%d/%d: %.2f)", in verify_acct() 125 tst_res(TINFO, "elap_time/clock_ticks >= 2 (%d/%d: %.2f)", in verify_acct() 131 tst_res(TINFO, "ac_exitcode != %d (%d)", rc, in verify_acct() 139 tst_res(TINFO, "ac_ppid != %d (%d)", (uint32_t)getpid(), in verify_acct() 145 tst_res(TINFO, "ac_version != 3 (%d)", in verify_acct() [all …]
|
/external/ltp/testcases/kernel/syscalls/fallocate/ |
D | fallocate04.c | 66 tst_res(TINFO, "reading the file, compare with expected buffer"); in check_file_data() 82 tst_res(TINFO, "allocate '%zu' bytes", buf_size); in test01() 96 tst_res(TPASS, "test-case succeeded"); 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() 154 tst_res(TPASS, "test-case succeeded"); in test02() [all …]
|
/external/ltp/testcases/kernel/numa/ |
D | numa01.sh | 65 tst_res TINFO "The system contains $total_nodes nodes: $nodes_list" 85 tst_res TFAIL \ 94 tst_res TPASS "NUMA local node and memory affinity" 119 tst_res TFAIL \ 129 tst_res TPASS "NUMA preferred node policy" 148 tst_res TFAIL \ 156 tst_res TPASS "NUMA interleave policy" 180 tst_res TFAIL \ 188 tst_res TPASS "NUMA phycpubind policy" 204 tst_res TFAIL \ [all …]
|