/third_party/ltp/testcases/network/iptables/ |
D | iptables_lib.sh | 60 tst_res TINFO "INIT: Flushing all rules" 84 tst_res TCONF "$toolname not applicable for test $1" 90 tst_res TINFO "$cmd will list all rules in table filter" 93 tst_res TFAIL "$cmd failed to list rules" 99 tst_res TFAIL "$cmd failed to list rules" 103 tst_res TINFO "$cmd lists rules" 108 tst_res TINFO "$cmd will list all rules in table nat" 111 tst_res TFAIL "$cmd failed to list rules" 117 tst_res TFAIL "$cmd failed to list rules" 121 tst_res TINFO "$cmd lists rules" [all …]
|
/third_party/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 …]
|
/third_party/ltp/testcases/kernel/controllers/pids/ |
D | pids.sh | 49 tst_res TINFO "test starts with cgroup version $cgroup_version" 96 tst_res TFAIL "fork failed unexpectedly" 98 tst_res TPASS "fork didn't fail" 100 tst_res TBROK "pids_task1 failed" 109 tst_res TINFO "limit the number of pid to $max" 119 tst_res TPASS "fork failed as expected" 121 tst_res TFAIL "fork didn't fail despite the limit" 123 tst_res TBROK "pids_task1 failed" 132 tst_res TINFO "limit the number of avalaible pid to $lim" 141 tst_res TFAIL "fork failed unexpectedly" [all …]
|
/third_party/ltp/lib/newlib_tests/ |
D | test_parse_filesize.c | 18 tst_res(TFAIL, "return code %d (%s)", ret, tst_strerrno(ret)); in do_test() 21 tst_res(TPASS, "value is %lli", val); in do_test() 23 tst_res(TFAIL, "%lli != %lli", val, 1LL); in do_test() 28 tst_res(TFAIL, "return code %d (%s)", ret, tst_strerrno(ret)); in do_test() 31 tst_res(TPASS, "value is %lli", val); in do_test() 33 tst_res(TFAIL, "%lli != %lli", val, 1024LL); in do_test() 37 tst_res(TFAIL, "return code %d (%s)", ret, tst_strerrno(ret)); in do_test() 40 tst_res(TPASS, "value is %lli", val); in do_test() 42 tst_res(TFAIL, "%lli != %lli", val, 1048576LL); in do_test() 46 tst_res(TFAIL, "return code %d (%s)", ret, tst_strerrno(ret)); in do_test() [all …]
|
D | test_timer.c | 27 tst_res(TPASS, "ns_diff = 0"); in test_diff() 29 tst_res(TFAIL, "ns_diff = %lli", diff); in test_diff() 34 tst_res(TPASS, "us_diff = 0"); in test_diff() 36 tst_res(TFAIL, "us_diff = %lli", diff); in test_diff() 41 tst_res(TPASS, "ms_diff = 0"); in test_diff() 43 tst_res(TFAIL, "ms_diff = %lli", diff); in test_diff() 54 tst_res(TPASS, "ts1 < ts2"); in test_lt() 56 tst_res(TFAIL, "ts1 >= ts2"); in test_lt() 61 tst_res(TFAIL, "ts1 < ts2"); in test_lt() 63 tst_res(TPASS, "ts1 >= ts2"); in test_lt() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/ipc/semctl/ |
D | semctl07.c | 41 tst_res(TFAIL, "sem_nsems = %lu, expected %lu", in verify_semctl() 44 tst_res(TPASS, "sem_nsems = %lu", arg.buf->sem_nsems); in verify_semctl() 48 tst_res(TFAIL, "sem_perm.uid = %d, expected %d", in verify_semctl() 51 tst_res(TPASS, "sem_perm.uid = %d", arg.buf->sem_perm.uid); in verify_semctl() 55 tst_res(TFAIL, "sem_perm.gid = %d, expected %d", in verify_semctl() 58 tst_res(TPASS, "sem_perm.gid = %d", arg.buf->sem_perm.gid); in verify_semctl() 62 tst_res(TFAIL, "sem_perm.cuid = %d, expected %d", in verify_semctl() 65 tst_res(TPASS, "sem_perm.cuid = %d", arg.buf->sem_perm.cuid); in verify_semctl() 69 tst_res(TFAIL, "sem_perm.cgid = %d, expected %d", in verify_semctl() 72 tst_res(TPASS, "sem_perm.cgid = %d", arg.buf->sem_perm.cgid); in verify_semctl() [all …]
|
/third_party/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 …]
|
/third_party/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 …]
|
/third_party/ltp/testcases/kernel/controllers/cgroup_fj/ |
D | cgroup_fj_function.sh | 35 tst_res TCONF "Controller mounted on cgroup2 hierarchy, skipping test" 40 tst_res TFAIL "Failed to attach task" 45 tst_res TFAIL "Failed to attach task" 49 tst_res TPASS "Task attached successfully" 57 tst_res TCONF "Controller mounted on cgroup2 hierarchy, skipping test" 64 tst_res TFAIL "Failed to move $start_path/ltp_2 to $start_path/ltp_3" 70 tst_res TFAIL "Failed to remove $start_path/ltp_3" 74 tst_res TPASS "Successfully moved $start_path/ltp_2 to $start_path/ltp_3" 82 tst_res TCONF "Controller mounted on cgroup2 hierarchy, skipping test" 89 tst_res TFAIL "Moved $start_path/ltp_2 over existing $start_path/ltp_1" [all …]
|
/third_party/ltp/testcases/kernel/syscalls/ipc/msgrcv/ |
D | msgrcv07.c | 64 tst_res(TFAIL | TTERRNO, "msgrcv(MSG_EXCEPT) failed"); in test_msg_except() 68 tst_res(TPASS, "msgrcv(MSG_EXCEPT) succeeded"); in test_msg_except() 71 tst_res(TPASS, "MSG_EXCEPT excepted MSGTYPE2 and got MSGTYPE1"); in test_msg_except() 73 tst_res(TFAIL, "MSG_EXCEPT didn't get MSGTYPE1 message"); in test_msg_except() 91 tst_res(TFAIL | TTERRNO, "msgrcv(MSG_NOERROR) failed"); in test_msg_noerror() 95 tst_res(TPASS, "msgrcv(MSG_NOERROR) succeeded"); in test_msg_noerror() 98 tst_res(TPASS, "MSG_NOERROR truncated message correctly"); in test_msg_noerror() 100 tst_res(TFAIL, "MSG_NOERROR truncated message incorrectly"); in test_msg_noerror() 112 tst_res(TCONF, "MSG_COPY not supported"); in test_msg_copy() 125 tst_res(TCONF, in test_msg_copy() [all …]
|
/third_party/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 …]
|
/third_party/ltp/testcases/kernel/security/integrity/ima/tests/ |
D | ima_tpm.sh | 29 tst_res TINFO "used algorithm: $ALGORITHM" 33 tst_res TINFO "$ERRMSG_TPM, testing TPM-bypass" 35 tst_res TINFO "TPM major version: $TPM_VERSION" 46 tst_res TINFO "TPM kernel config:" 48 tst_res TINFO "$i" 157 tst_res TFAIL "evmctl failed, trying with --ignore-violations" 165 [ $ret -ne 0 ] && tst_res TWARN "evmctl failed, trying to continue $msg" 171 tst_res $res "failed to find aggregate PCR-10 $msg" 172 tst_res TINFO "hash file:" 185 tst_res TPASS "bios boot aggregate is $zero" [all …]
|
/third_party/ltp/testcases/kernel/syscalls/setns/ |
D | setns02.c | 47 tst_res(TFAIL|TERRNO, CP"uname"); in do_child_newuts() 48 tst_res(TINFO, CP"hostname (inherited from parent): %s", in do_child_newuts() 52 tst_res(TFAIL|TERRNO, CP"sethostname"); in do_child_newuts() 54 tst_res(TFAIL|TERRNO, CP"uname"); in do_child_newuts() 56 tst_res(TINFO, CP"hostname changed to: %s", uts.nodename); in do_child_newuts() 58 tst_res(TFAIL, CP"expected hostname to be different"); in do_child_newuts() 61 tst_res(TPASS, CP"hostname is different in parent/child"); in do_child_newuts() 64 tst_res(TINFO, CP"attempting to switch ns back to parent ns"); in do_child_newuts() 66 tst_res(TFAIL|TERRNO, CP"setns"); in do_child_newuts() 70 tst_res(TFAIL|TERRNO, CP"uname"); in do_child_newuts() [all …]
|
/third_party/ltp/libs/libltpsigwait/ |
D | sigwait.c | 27 tst_res(TPASS, "Wait interrupted by expected signal"); in test_empty_set() 29 tst_res(TFAIL | TTERRNO, "Expected error number EINTR, got"); in test_empty_set() 31 tst_res(TFAIL, "Expected return value -1, got: %ld", TST_RET); in test_empty_set() 57 tst_res(TPASS, "Wait interrupted by timeout"); in test_timeout() 59 tst_res(TFAIL | TTERRNO, "Expected error number EAGAIN, got"); in test_timeout() 61 tst_res(TFAIL, "Expected return value -1, got: %ld", TST_RET); in test_timeout() 88 tst_res(TPASS, "struct siginfo is correct"); in test_unmasked_matching() 90 tst_res(TFAIL, "struct siginfo mismatch"); in test_unmasked_matching() 92 tst_res(TFAIL | TTERRNO, "sigwaitinfo() failed"); in test_unmasked_matching() 113 tst_res(TPASS, "Wait interrupted by expected signal"); in test_unmasked_matching_noinfo() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/statx/ |
D | statx01.c | 62 tst_res(TCONF, "stx_mnt_id is not supported until linux 5.8"); in test_mnt_id() 77 tst_res(TINFO, "%s doesn't contain %"PRIu64" %d:%d", in test_mnt_id() 85 tst_res(TPASS, in test_mnt_id() 89 tst_res(TFAIL, in test_mnt_id() 105 tst_res(TPASS, in test_normal_file() 112 tst_res(TPASS, "stx_uid(%u) is correct", buff.stx_uid); in test_normal_file() 114 tst_res(TFAIL, "stx_uid(%u) is different from euid(%u)", in test_normal_file() 118 tst_res(TPASS, "stx_gid(%u) is correct", buff.stx_gid); in test_normal_file() 120 tst_res(TFAIL, "stx_gid(%u) is different from egid(%u)", in test_normal_file() 124 tst_res(TPASS, in test_normal_file() [all …]
|
/third_party/ltp/testcases/network/nfs/nfsstat01/ |
D | nfsstat01.sh | 35 tst_res TINFO "checking RPC calls for server/client" 40 tst_res TINFO "calls $server_calls/$client_calls" 42 tst_res TINFO "Checking for tracking of RPC calls for server/client" 47 tst_res TINFO "new calls $new_server_calls/$new_client_calls" 50 tst_res TFAIL "server RPC calls not increased" 52 tst_res TPASS "server RPC calls increased" 56 tst_res TFAIL "client RPC calls not increased" 58 tst_res TPASS "client RPC calls increased" 61 tst_res TINFO "checking NFS calls for server/client" 72 tst_res TINFO "calls $server_calls/$client_calls" [all …]
|
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 …]
|
/third_party/ltp/testcases/kernel/syscalls/prctl/ |
D | prctl07.c | 52 tst_res(TPASS, "PR_CAP_AMBIENT_RAISE %s succeeded", message); in check_cap_raise() 54 tst_res(TFAIL, "PR_CAP_AMBIENT_RAISE %s failed unexpectedly", in check_cap_raise() 59 tst_res(TFAIL, in check_cap_raise() 63 tst_res(TPASS, in check_cap_raise() 66 tst_res(TFAIL | TTERRNO, in check_cap_raise() 76 tst_res(val ? TPASS : TFAIL, in check_cap_is_set() 79 tst_res(val ? TFAIL : TPASS, in check_cap_is_set() 82 tst_res(TFAIL | TTERRNO, "PR_CAP_AMBIENT_IS_SET failed"); in check_cap_is_set() 89 tst_res(TFAIL | TTERRNO, in check_cap_lower() 92 tst_res(TPASS, "PR_CAP_AMBIENT_LOWER %s succeeded", message); in check_cap_lower() [all …]
|
/third_party/ltp/testcases/kernel/device-drivers/zram/ |
D | zram_lib.sh | 63 tst_res TINFO "create '$dev_num' zram device(s)" 67 tst_res TINFO "zram module already loaded, kernel supports zram-control interface" 76 tst_res TPASS "all zram devices (/dev/zram$dev_start~$dev_end) successfully created" 94 tst_res TPASS "all zram devices (/dev/zram0~$dev_end) successfully created" 100 tst_res TCONF "The device attribute max_comp_streams was"\ 105 tst_res TINFO "set max_comp_streams to zram device(s)" 119 tst_res TINFO "$sys_path = '$max_streams'" 122 tst_res TPASS "test succeeded" 128 tst_res TCONF "device attribute comp_algorithm is"\ 136 tst_res TINFO "test that we can set compression algorithm" [all …]
|
/third_party/ltp/testcases/commands/ar/ |
D | ar01.sh | 32 tst_res TPASS "$AR added new file after another (-a)" 34 tst_res TFAIL "$AR failed to add new file after another (-a)" 51 tst_res TPASS "$AR moved file correctly (-ma)" 53 tst_res TFAIL "$AR failed to move file (-ma)" 69 tst_res TPASS "$AR added new file before another (-b)" 71 tst_res TFAIL "$AR failed to add new file before another (-b)" 88 tst_res TPASS "$AR moved file correctly (-mb)" 90 tst_res TFAIL "$AR failed to move file (-mb)" 102 tst_res TFAIL "$AR produced output unexpectedly (-c)" 105 tst_res TPASS "$AR haven't produced output (-c)" [all …]
|
/third_party/ltp/testcases/network/lib6/ |
D | in6_02.c | 50 tst_res(TINFO, "IPv6 if_nametoindex() test"); in if_nametoindex_test() 54 tst_res(TCONF, "LHOST_IFACES not defined or invalid"); in if_nametoindex_test() 60 tst_res(TFAIL, "if_nametoindex(%s) %ld [should be %szero]", in if_nametoindex_test() 68 tst_res(TFAIL, in if_nametoindex_test() 75 tst_res(TINFO, "if_nametoindex(%s) %ld", in if_nametoindex_test() 79 tst_res(TPASS, "if_nametoindex() test succeeded"); in if_nametoindex_test() 90 tst_res(TFAIL, in sub_if_indextoname_test() 95 tst_res(TINFO, "if_indextoname(%d) returns NULL", if_index); in sub_if_indextoname_test() 101 tst_res(TFAIL, in sub_if_indextoname_test() 106 tst_res(TINFO, "if_indextoname(%d) returns '%s'", if_index, ifname); in sub_if_indextoname_test() [all …]
|
D | in6_01.c | 62 tst_res(TINFO, "type of in6.s6_addr[0] is uint8_t"); in test_in6_addr() 64 tst_res(TFAIL, "sizeof(in6.s6_addr) != 16"); in test_in6_addr() 66 tst_res(TPASS, "sizeof(in6.s6_addr) == 16"); in test_in6_addr() 90 tst_res(TPASS, "all sockaddr_in6 fields present and correct"); in test_sockaddr_in6() 99 tst_res(TINFO, "IN6ADDR_ANY_INIT present"); in test_global_in6_def() 101 tst_res(TINFO, "in6addr_any present and correct"); in test_global_in6_def() 103 tst_res(TFAIL, "in6addr_any incorrect value"); in test_global_in6_def() 107 tst_res(TINFO, "IN6ADDR_LOOPBACK_INIT present"); in test_global_in6_def() 109 tst_res(TINFO, "in6addr_loopback present and correct"); in test_global_in6_def() 111 tst_res(TFAIL, "in6addr_loopback incorrect value"); in test_global_in6_def() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/add_key/ |
D | add_key05.c | 50 tst_res(TINFO, "Created user %s", pw->pw_name); in add_user() 61 tst_res(TWARN | TERRNO, "'userdel -r %s' failed", username); in clean_user() 88 tst_res(TINFO, "test max bytes under unprivileged user"); in verify_max_bytes() 93 tst_res(TFAIL | TTERRNO, "add key test2 failed"); in verify_max_bytes() 109 tst_res(TFAIL, "add_key(test_inv) succeeded unexpectedltly"); in verify_max_bytes() 113 tst_res(TPASS | TTERRNO, "add_key(test_inv) failed as expected"); in verify_max_bytes() 115 tst_res(TFAIL | TTERRNO, "add_key(test_inv) failed expected EDQUOT got"); in verify_max_bytes() 120 tst_res(TFAIL | TTERRNO, "add key test3 failed"); in verify_max_bytes() 125 tst_res(TFAIL | TTERRNO, "add key test4 failed"); in verify_max_bytes() 132 tst_res(TFAIL | TTERRNO, "add_key(test_max) failed unexpectedly"); in verify_max_bytes() [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() 124 tst_res(TFAIL, "Got SIGSEGV"); in verify_umip_instruction() 127 tst_res(TPASS, "Didn't receive SIGSEGV, child exited with %s", 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() [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 …]
|