/external/ltp/testcases/network/iptables/ |
D | iptables_tests.sh | 21 tst_res TINFO "INIT: Inititalizing tests." 31 tst_res TINFO "INIT: Flushing all rules." 58 tst_res TINFO "$cmd will list all rules in table filter." 61 tst_res TFAIL "$cmd failed to list rules." 67 tst_res TFAIL "$cmd failed to list rules." 71 tst_res TINFO "$cmd lists rules." 76 tst_res TINFO "$cmd will list all rules in table nat." 79 tst_res TFAIL "$cmd failed to list rules." 85 tst_res TFAIL "$cmd failed to list rules." 89 tst_res TINFO "$cmd lists rules." [all …]
|
/external/ltp/testcases/kernel/controllers/pids/ |
D | pids.sh | 62 tst_res TINFO "removing created directories" 65 tst_res TINFO "Umounting pids" 138 tst_res TFAIL "fork failed unexpectedly" 140 tst_res TPASS "fork didn't fail" 142 tst_res TBROK "pids_task1 failed" 151 tst_res TINFO "limit the number of pid to $max" 161 tst_res TPASS "fork failed as expected" 163 tst_res TFAIL "fork didn't fail despite the limit" 165 tst_res TBROK "pids_task1 failed" 174 tst_res TINFO "limit the number of avalaible pid to $lim" [all …]
|
/external/ltp/testcases/kernel/syscalls/ipc/msgctl/ |
D | msgctl01.c | 46 tst_res(TFAIL | TTERRNO, "msgctl() returned %li", TST_RET); in verify_msgctl() 50 tst_res(TPASS, "msgctl(IPC_STAT)"); in verify_msgctl() 53 tst_res(TPASS, "msg_stime = 0"); in verify_msgctl() 55 tst_res(TFAIL, "msg_stime = %lu", (unsigned long)buf.msg_stime); in verify_msgctl() 58 tst_res(TPASS, "msg_rtime = 0"); in verify_msgctl() 60 tst_res(TFAIL, "msg_rtime = %lu", (unsigned long)buf.msg_rtime); in verify_msgctl() 63 tst_res(TPASS, "msg_ctime = %lu, expected %lu", in verify_msgctl() 66 tst_res(TFAIL, "msg_ctime = %lu, expected %lu", in verify_msgctl() 71 tst_res(TPASS, "msg_qnum = 0"); in verify_msgctl() 73 tst_res(TFAIL, "msg_qnum = %li", (long)buf.msg_qnum); in verify_msgctl() [all …]
|
/external/ltp/testcases/kernel/logging/kmsg/ |
D | kmsg01.c | 251 tst_res(TINFO, "TEST: nonblock read"); in test_read_nonblock() 256 tst_res(TPASS, "non-block read returned EAGAIN"); in test_read_nonblock() 258 tst_res(TFAIL|TTERRNO, "non-block read returned: %ld", in test_read_nonblock() 267 tst_res(TINFO, "TEST: blocking read"); in test_read_block() 272 tst_res(TPASS, "read blocked"); in test_read_block() 274 tst_res(TFAIL|TTERRNO, "read returned: %ld", TST_RET); in test_read_block() 283 tst_res(TINFO, "TEST: partial read"); in test_partial_read() 288 tst_res(TPASS|TTERRNO, "read failed as expected"); in test_partial_read() 290 tst_res(TFAIL, "read returned: %ld", TST_RET); in test_partial_read() 301 tst_res(TINFO, "TEST: injected messages appear in /dev/kmsg"); in test_inject() [all …]
|
/external/ltp/testcases/kernel/syscalls/times/ |
D | times03.c | 84 tst_res(TFAIL | TERRNO, "times failed"); in generate_stime() 100 tst_res(TFAIL, "buf1.tms_utime = %li", buf1.tms_utime); in verify_times() 102 tst_res(TPASS, "buf1.tms_utime <= 5"); in verify_times() 105 tst_res(TFAIL, "buf1.tms_stime = %li", buf1.tms_stime); in verify_times() 107 tst_res(TPASS, "buf1.tms_stime <= 5"); in verify_times() 116 tst_res(TFAIL, "buf2.tms_utime = 0"); in verify_times() 118 tst_res(TPASS, "buf2.tms_utime = %li", buf2.tms_utime); in verify_times() 121 tst_res(TFAIL, "buf1.tms_utime (%li) >= buf2.tms_utime (%li)", in verify_times() 124 tst_res(TPASS, "buf1.tms_utime (%li) < buf2.tms_utime (%li)", in verify_times() 129 tst_res(TFAIL, "buf2.tms_stime = 0"); in verify_times() [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/commands/ar/ |
D | ar01 | 42 tst_res TPASS "ar added new file after another (-a)" 44 tst_res TFAIL "ar failed to add new file after another (-a)" 61 tst_res TPASS "ar moved file correctly (-ma)" 63 tst_res TFAIL "ar failed to move file (-ma)" 79 tst_res TPASS "ar added new file before another (-b)" 81 tst_res TFAIL "ar failed to add new file before another (-b)" 98 tst_res TPASS "ar moved file correctly (-mb)" 100 tst_res TFAIL "ar failed to move file (-mb)" 112 tst_res TFAIL "ar produced output unexpectedly (-c)" 115 tst_res TPASS "ar haven't produced output (-c)" [all …]
|
/external/ltp/testcases/kernel/security/integrity/ima/tests/ |
D | ima_tpm.sh | 29 tst_res TINFO "verify boot aggregate" 41 tst_res TINFO "TPM Hardware Support not enabled in kernel or no TPM chip found" 44 tst_res TPASS "bios boot aggregate is 0" 46 tst_res TFAIL "bios boot aggregate is not 0" 51 tst_res TPASS "bios aggregate matches IMA boot aggregate" 53 tst_res TFAIL "bios aggregate does not match IMA boot aggregate" 63 tst_res TINFO "verify PCR (Process Control Register)" 71 tst_res TFAIL "failed to get PCR-10" 88 tst_res TINFO "verify PCR values" 91 tst_res TINFO "evmctl version: $(evmctl --version)" [all …]
|
D | ima_measurements.sh | 34 [ -f "$POLICY" ] || tst_res TINFO "not using default policy" 60 tst_res TINFO "IMA measurement tests assume tcb policy to be loaded (ima_policy=tcb)" 107 tst_res TFAIL "cannot find measurement record for '$TEST_FILE'" 110 tst_res TINFO "measurement record: '$line'" 114 tst_res TFAIL "cannot find digest (index: $DIGEST_INDEX)" 126 tst_res TFAIL "algorithm must be either md5 or sha1 (digest: '$digest')" 131 tst_res TFAIL "cannot find algorithm" 135 tst_res TFAIL "cannot find digest" 139 tst_res TINFO "computing digest for $algorithm algorithm" 144 tst_res TPASS "correct digest found" [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/network/lib6/ |
D | in6_02.c | 60 tst_res(TINFO, "IPv6 if_nametoindex() test"); in if_nametoindex_test() 64 tst_res(TCONF, "LHOST_IFACES not defined or invalid"); in if_nametoindex_test() 70 tst_res(TFAIL, "if_nametoindex(%s) %ld [should be %szero]", in if_nametoindex_test() 78 tst_res(TFAIL, in if_nametoindex_test() 85 tst_res(TINFO, "if_nametoindex(%s) %ld", in if_nametoindex_test() 89 tst_res(TPASS, "if_nametoindex() test succeeded"); in if_nametoindex_test() 100 tst_res(TFAIL, in sub_if_indextoname_test() 105 tst_res(TINFO, "if_indextoname(%d) returns NULL", if_index); in sub_if_indextoname_test() 111 tst_res(TFAIL, in sub_if_indextoname_test() 116 tst_res(TINFO, "if_indextoname(%d) returns '%s'", if_index, ifname); in sub_if_indextoname_test() [all …]
|
D | in6_01.c | 72 tst_res(TINFO, "type of in6.s6_addr[0] is uint8_t"); in test_in6_addr() 74 tst_res(TFAIL, "sizeof(in6.s6_addr) != 16"); in test_in6_addr() 76 tst_res(TPASS, "sizeof(in6.s6_addr) == 16"); in test_in6_addr() 100 tst_res(TPASS, "all sockaddr_in6 fields present and correct"); in test_sockaddr_in6() 109 tst_res(TINFO, "IN6ADDR_ANY_INIT present"); in test_global_in6_def() 111 tst_res(TINFO, "in6addr_any present and correct"); in test_global_in6_def() 113 tst_res(TFAIL, "in6addr_any incorrect value"); in test_global_in6_def() 117 tst_res(TINFO, "IN6ADDR_LOOPBACK_INIT present"); in test_global_in6_def() 119 tst_res(TINFO, "in6addr_loopback present and correct"); in test_global_in6_def() 121 tst_res(TFAIL, "in6addr_loopback incorrect value"); in test_global_in6_def() [all …]
|
/external/ltp/testcases/kernel/syscalls/readahead/ |
D | readahead02.c | 134 tst_res(TINFO, "creating test file of size: %zu", testfile_size); in create_testfile() 188 tst_res(TINFO, "max ra estimate: %lu", in read_testfile() 198 tst_res(TINFO, "readahead calls made: %zu", i); in read_testfile() 204 tst_res(TPASS, "offset is still at 0 as expected"); in read_testfile() 206 tst_res(TFAIL, "offset has changed to: %lu", offset); in read_testfile() 244 tst_res(TINFO, "Test #%d: %s", n, tc->tname); in test_readahead() 247 tst_res(TCONF, in test_readahead() 263 tst_res(TINFO, "read_testfile(0)"); in test_readahead() 274 tst_res(TINFO, "read_testfile(1)"); in test_readahead() 282 tst_res(TCONF, "CONFIG_ADVISE_SYSCALLS not configured " in test_readahead() [all …]
|
/external/ltp/testcases/commands/nm/ |
D | nm01 | 46 tst_res TPASS "Got correct listing" 48 tst_res TFAIL "Got incorrect listing" 55 tst_res TPASS "Got correct listing" 57 tst_res TFAIL "Got incorrect listing" 67 tst_res TFAIL "Got internal symbols with -g" 70 tst_res TPASS "Got only external symbols with -g" 79 tst_res TFAIL "Got non-octal symbol values with -f" 82 tst_res TPASS "Got an octal symbol values with -f" 91 tst_res TPASS "Got SysV format with -f sysv" 93 tst_res TFAIL "Got wrong format with -f sysv" [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/numa/ |
D | numa01.sh | 88 tst_res TINFO "The system contains $total_nodes nodes: $nodes_list" 108 tst_res TFAIL \ 117 tst_res TPASS "NUMA local node and memory affinity" 142 tst_res TFAIL \ 152 tst_res TPASS "NUMA preferred node policy" 178 tst_res TFAIL \ 188 tst_res TPASS "NUMA share memory allocated in preferred node" 207 tst_res TFAIL \ 215 tst_res TPASS "NUMA interleave policy" 234 tst_res TFAIL \ [all …]
|
/external/ltp/testcases/kernel/syscalls/fallocate/ |
D | fallocate04.c | 80 tst_res(TINFO, "reading the file, compare with expected buffer"); in check_file_data() 96 tst_res(TINFO, "allocate '%zu' bytes", buf_size); in test01() 110 tst_res(TPASS, "test-case succeeded"); in test01() 117 tst_res(TINFO, "read allocated file size '%zu'", alloc_size0); in test02() 118 tst_res(TINFO, "make a hole with FALLOC_FL_PUNCH_HOLE"); in test02() 134 tst_res(TINFO, "check that file has a hole with lseek(,,SEEK_HOLE)"); in test02() 144 tst_res(TINFO, "lseek() doesn't support SEEK_HOLE, " in test02() 151 tst_res(TINFO, "found a hole at '%ld' offset", ret); in test02() 156 tst_res(TINFO, "allocated file size before '%zu' and after '%zu'", in test02() 168 tst_res(TPASS, "test-case succeeded"); in test02() [all …]
|
/external/ltp/testcases/kernel/syscalls/prctl/ |
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/kernel/syscalls/keyctl/ |
D | keyctl05.c | 103 tst_res(TCONF, "kernel doesn't support key type '%s'", in test_update_nonupdatable() 108 tst_res(TCONF, "kernel is missing x509 cert parser " in test_update_nonupdatable() 113 tst_res(TCONF, "kernel is missing crypto algorithms " in test_update_nonupdatable() 118 tst_res(TBROK | TTERRNO, "unexpected error adding '%s' key", in test_update_nonupdatable() 130 tst_res(TBROK | TTERRNO, in test_update_nonupdatable() 135 tst_res(TINFO, "Try to update the '%s' key...", type); in test_update_nonupdatable() 138 tst_res(TBROK, in test_update_nonupdatable() 143 tst_res(TBROK | TTERRNO, in test_update_nonupdatable() 147 tst_res(TPASS, "updating '%s' key expectedly failed with EOPNOTSUPP", in test_update_nonupdatable() 166 tst_res(TBROK | TTERRNO, "failed to add 'user' key"); in test_update_setperm_race() [all …]
|
/external/ltp/testcases/kernel/mem/lib/ |
D | mem.c | 38 tst_res(TINFO, "thread (%lx), allocating %ld bytes.", in alloc_mem() 87 tst_res(TINFO | TERRNO, "malloc"); in child_alloc() 95 tst_res(TINFO | TRERRNO, "pthread_create"); in child_alloc() 140 tst_res(TINFO, "expected victim is %d.", pid); in oom() 145 tst_res(TPASS, "victim signalled: (%d) %s", in oom() 149 tst_res(TFAIL, "victim signalled: (%d) %s", in oom() 155 tst_res(TPASS, "victim retcode: (%d) %s", in oom() 158 tst_res(TFAIL, "victim unexpectedly ended with " in oom() 163 tst_res(TFAIL, "victim unexpectedly ended"); in oom() 179 tst_res(TINFO, "mempolicy need NUMA system support"); in set_global_mempolicy() [all …]
|
/external/ltp/testcases/kernel/syscalls/writev/ |
D | writev07.c | 59 tst_res(TINFO, "starting test with initial file offset: %d ", in test_partially_valid_iovec() 75 tst_res(TFAIL | TTERRNO, "unexpected errno"); in test_partially_valid_iovec() 82 tst_res(TINFO, "got EFAULT"); in test_partially_valid_iovec() 87 tst_res(TFAIL, "file was written to"); in test_partially_valid_iovec() 89 tst_res(TPASS, "file stayed untouched"); in test_partially_valid_iovec() 93 tst_res(TPASS, "offset stayed unchanged"); in test_partially_valid_iovec() 95 tst_res(TFAIL, "offset changed to %ld", in test_partially_valid_iovec() 103 tst_res(TINFO, "writev() has written %ld bytes", TST_RET); in test_partially_valid_iovec() 105 tst_res(TFAIL, "writev wrote more than expected"); in test_partially_valid_iovec() 114 tst_res(TPASS, "file has expected content"); in test_partially_valid_iovec() [all …]
|
/external/ltp/testcases/commands/mv/ |
D | mv_tests.sh | 49 tst_res TINFO "Test #$1: Creating $numdirs directories." 50 tst_res TINFO "Test #$1: filling each dir with $numfiles files." 102 tst_res TINFO "Test #1: mv <dir1> <dir2> will move dir1 to dir2 and" \ 113 tst_res TINFO "Test #1: creating output file" 116 tst_res TINFO "Test #1: creating expected output file" 119 tst_res TINFO "Test #1: comparing expected out and actual output file" 123 tst_res TFAIL "Test #1: mv failed." 125 tst_res TINFO "Test #1: expected same as actual" 127 tst_res TFAIL "Test #1: mv did not delete old" \ 130 tst_res TPASS "Test #1: mv success" [all …]
|
/external/ltp/testcases/kernel/syscalls/waitpid/ |
D | waitpid09.c | 74 tst_res(TFAIL, "waitpid(WNOHANG) returned %d, expected 0", in case0() 83 tst_res(TPASS, "waitpid(pid, WNOHANG) = 0 for a running child"); in case0() 106 tst_res(TFAIL, "waitpid(WNOHANG) returned %d, expected %d", in case1() 113 tst_res(TFAIL, "Child exited abnormally"); in case1() 118 tst_res(TFAIL, "Child exited with %d, expected 0", in case1() 123 tst_res(TPASS, "waitpid(pid, WNOHANG) = pid for an exited child"); in case1() 134 tst_res(TFAIL, "Expected -1, got %d", ret); in case2() 138 tst_res(TFAIL, "Expected %s, got %s", in case2() 143 tst_res(TPASS, "waitpid(-1, 0) = -1 with ECHILD if no children"); in case2() 153 tst_res(TFAIL, "WNOHANG: Expected -1, got %d", ret); in case3() [all …]
|
/external/ltp/testcases/commands/eject/ |
D | eject-tests.sh | 63 tst_res TPASS "Eject listed default device" 65 tst_res TFAIL "Eject failed to list default device" 77 tst_res TPASS "Drive successfully ejected" 79 tst_res TFAIL "Eject failed" 100 tst_res TCONF "Failed to mount $CD_DRIVE, no disk in drive?" 105 tst_res TINFO "$CD_DRIVE mounted sucessfully" 119 tst_res TFAIL "$CD_DRIVE is stil moutned" 121 tst_res TPASS "$CD_DRIVE umounted succesfully" 142 tst_res TPASS "$CD_DRIVE was auto-ejected" 144 tst_res TFAIL "$CD_DRIVE was not auto-ejected" [all …]
|