/external/ltp/testcases/network/iptables/ |
D | iptables_tests.sh | 33 tst_resm TINFO "INIT: Inititalizing tests." 43 tst_resm TINFO "INIT: Flushing all rules." 71 tst_resm TINFO "$cmd will list all rules in table filter." 74 tst_resm TFAIL "$cmd failed to list rules." 80 tst_resm TFAIL "$cmd failed to list rules." 84 tst_resm TINFO "$cmd lists rules." 89 tst_resm TINFO "$cmd will list all rules in table nat." 92 tst_resm TFAIL "$cmd failed to list rules." 98 tst_resm TFAIL "$cmd failed to list rules." 102 tst_resm TINFO "$cmd lists rules." [all …]
|
/external/ltp/testcases/kernel/io/stress_floppy/ |
D | stress_floppy | 62 tst_resm TINFO "Floppy diskette drive fd0 available." 71 tst_resm TINFO "Testing format..." 74 tst_resm TFAIL "Format failed!" 76 tst_resm TPASS "Format successful." 84 tst_resm TINFO "Testing $the_file tar..." 87 tst_resm TFAIL "$the_file Tar write failed!" 90 tst_resm TINFO "$the_file Tar write passed." 94 tst_resm TFAIL "$the_file Tar read failed!" 97 tst_resm TINFO "$the_file Tar read passed." 101 tst_resm TFAIL "Diff of the $the_file tar files failed!" [all …]
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl21.c | 102 tst_resm(TFAIL, "Couldn't open temp file! errno = %d", errno); in setup() 106 tst_resm(TFAIL, "Couldn't write to temp file! errno = %d", in setup() 115 tst_resm(TFAIL, "SIGCLD signal setup failed, errno: %d", errno); in setup() 141 tst_resm(TFAIL, "fcntl on file failed, errno =%d", in do_child() 177 tst_resm(TFAIL, "lock type is wrong should be %s is %s", in compare_lock() 183 tst_resm(TFAIL, "lock whence is wrong should be %d is %d", in compare_lock() 189 tst_resm(TFAIL, "region starts in wrong place, should be" in compare_lock() 195 tst_resm(TFAIL, in compare_lock() 202 tst_resm(TFAIL, "locking pid is wrong, should be %d is %d", in compare_lock() 213 tst_resm(TFAIL, "fcntl on file failed, errno =%d", errno); in unlock_file() [all …]
|
D | fcntl19.c | 104 tst_resm(TFAIL, "Couldn't open temp file! errno = %d", errno); in setup() 108 tst_resm(TFAIL, "Couldn't write to temp file! errno = %d", in setup() 117 tst_resm(TFAIL, "SIGCLD signal setup failed, errno: %d", errno); in setup() 137 tst_resm(TFAIL | TERRNO, "fcntl on file failed"); in do_child() 170 tst_resm(TFAIL, "lock type is wrong should be %s is %s", in compare_lock() 176 tst_resm(TFAIL, "lock whence is wrong should be %d is %d", in compare_lock() 182 tst_resm(TFAIL, "region starts in wrong place, should be" in compare_lock() 188 tst_resm(TFAIL, in compare_lock() 195 tst_resm(TFAIL, "locking pid is wrong, should be %d is %d", in compare_lock() 206 tst_resm(TFAIL, "fcntl on file failed, errno =%d", errno); in unlock_file() [all …]
|
D | fcntl20.c | 105 tst_resm(TFAIL | TERRNO, "mkstemp failed"); in setup() 134 tst_resm(TFAIL | TERRNO, "fcntl on file failed"); in do_child() 169 tst_resm(TFAIL, "lock type is wrong should be %s is %s", in compare_lock() 175 tst_resm(TFAIL, "lock whence is wrong should be %d is %d", in compare_lock() 181 tst_resm(TFAIL, "region starts in wrong place, should be" in compare_lock() 187 tst_resm(TFAIL, in compare_lock() 194 tst_resm(TFAIL, "locking pid is wrong, should be %d is %d", in compare_lock() 205 tst_resm(TFAIL, "fcntl on file failed, errno =%d", errno); in unlock_file() 232 tst_resm(TFAIL, "couldn't send message to child"); in parent_put() 240 tst_resm(TFAIL, "couldn't get message from child"); in parent_get() [all …]
|
D | fcntl17.c | 109 tst_resm(TFAIL, "Couldn't create parent_pipe! errno = %d", in setup() 114 tst_resm(TFAIL, "Couldn't create child_pipe1! errno = %d", in setup() 119 tst_resm(TFAIL, "Couldn't create child_pipe2! errno = %d", in setup() 124 tst_resm(TFAIL, "Couldn't create child_pipe3! errno = %d", in setup() 132 tst_resm(TFAIL, "Couldn't open temp file! errno = %d", errno); in setup() 136 tst_resm(TFAIL, "Couldn't write to temp file! errno = %d", in setup() 145 tst_resm(TFAIL, "SIGALRM signal setup failed, errno: %d", in setup() 155 tst_resm(TFAIL, "SIGCLD signal setup failed, errno: %d", errno); in setup() 189 tst_resm(TINFO, "child 1 starting"); in do_child1() 192 tst_resm(TINFO, "child 1 lock err %d", err); in do_child1() [all …]
|
D | fcntl18.c | 75 tst_resm(TINFO, "Enter block 1"); in main() 78 tst_resm(TFAIL, "file opening error"); in main() 85 tst_resm(TPASS, "Test F_GETLK: for errno EFAULT PASSED"); in main() 87 tst_resm(TFAIL, "Test F_GETLK: for errno EFAULT FAILED"); 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() 108 tst_resm(TPASS, "Test F_GETLK64: for errno EFAULT PASSED"); in main() [all …]
|
D | fcntl13.c | 62 tst_resm(TFAIL, "fcntl(2) failed to FAIL"); in main() 64 tst_resm(TFAIL, "Expected EINVAL got %d", errno); in main() 66 tst_resm(TPASS, "got EINVAL"); in main() 70 tst_resm(TFAIL, "F_SETLK: fcntl(2) failed to FAIL"); in main() 72 tst_resm(TFAIL, "F_SETLK: Expected EFAULT got %d", in main() 75 tst_resm(TPASS, "F_SETLK: got EFAULT"); in main() 79 tst_resm(TFAIL, "F_SETLKW: fcntl(2) failed to FAIL"); in main() 81 tst_resm(TFAIL, "F_SETLKW: Expected EFAULT got %d", in main() 84 tst_resm(TPASS, "F_SETLKW: got EFAULT"); in main() 88 tst_resm(TFAIL, "F_GETLK: fcntl(2) failed to FAIL"); in main() [all …]
|
/external/ltp/testcases/network/iproute/ |
D | ip_tests.sh | 33 tst_resm TINFO "inititalizing tests" 74 tst_resm TINFO "test 'ip link set' command" 75 tst_resm TINFO "changing mtu size of $iface device" 80 tst_resm TFAIL "ip command failed" 86 tst_resm TPASS "successfully changed mtu size" 89 tst_resm TFAIL "MTU value set to $MTUSZ, but expected 1281" 95 tst_resm TINFO "test 'ip link show' command (list device attributes)" 99 tst_resm TFAIL "'ip link show $iface' command failed" 103 tst_resm TPASS "$iface correctly listed" 108 tst_resm TINFO "test 'ip addr' command with loopback dev" [all …]
|
/external/ltp/testcases/kernel/syscalls/getcwd/ |
D | getcwd02.c | 105 tst_resm(TINFO, "%s: can't run %s", TCID, pwd); in main() 131 tst_resm(TINFO, "Enter Block 1"); in do_block1() 134 tst_resm(TFAIL|TERRNO, "getcwd() failed unexpectedly"); in do_block1() 138 tst_resm(TFAIL, "getcwd() returned unexpected working " in do_block1() 142 tst_resm(TINFO, "Exit Block 1"); in do_block1() 144 tst_resm(TFAIL, "Block 1 FAILED"); in do_block1() 146 tst_resm(TPASS, "Block 1 PASSED"); in do_block1() 153 tst_resm(TINFO, "Enter Block 2"); in do_block2() 157 tst_resm(TFAIL|TERRNO, "getcwd() failed unexpectedly (wanted EINVAL)"); in do_block2() 160 tst_resm(TINFO, "Exit Block 2"); in do_block2() [all …]
|
/external/ltp/testcases/kernel/syscalls/getpgid/ |
D | getpgid01.c | 80 tst_resm(TINFO, "%s PASSED", TCID); in main() 82 tst_resm(TINFO, "%s FAILED", TCID); in main() 87 tst_resm(TINFO, "Enter block 1"); in main() 90 tst_resm(TFAIL | TERRNO, "getpgid(0) failed"); in main() 95 tst_resm(TINFO, "Test block 1: getpgid(0) FAILED"); in main() 97 tst_resm(TPASS, "Test block 1: getpgid(0) PASSED"); in main() 98 tst_resm(TINFO, "Exit block 1"); in main() 101 tst_resm(TINFO, "Enter block 2"); in main() 106 tst_resm(TFAIL | TERRNO, "getpgid(%d) failed", my_pid); in main() 109 tst_resm(TFAIL, "getpgid(my_pid=%d) != getpgid(0) " in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/eventfd/ |
D | eventfd01.c | 94 tst_resm(TINFO | TERRNO, "error clearing counter"); in clear_counter() 122 tst_resm(TINFO | TERRNO, "error setting counter value"); in set_counter() 139 tst_resm(TBROK | TERRNO, "error reading eventfd"); in read_test() 144 tst_resm(TPASS, "counter value matches required"); in read_test() 146 tst_resm(TFAIL, "counter value mismatch: " in read_test() 160 tst_resm(TBROK, "error clearing counter"); in read_eagain_test() 167 tst_resm(TPASS, "read failed with EAGAIN as expected"); in read_eagain_test() 169 tst_resm(TFAIL | TERRNO, "read failed (wanted EAGAIN)"); in read_eagain_test() 171 tst_resm(TFAIL, "read returned with %d", ret); in read_eagain_test() 186 tst_resm(TBROK, "error setting counter value to %" PRIu64, val); in write_test() [all …]
|
/external/ltp/testcases/kernel/syscalls/writev/ |
D | writev01.c | 169 tst_resm(TPASS, "Enter Block 1"); in main() 174 tst_resm(TPASS, "Received EINVAL as expected"); in main() 176 tst_resm(TFAIL, "Expected errno = EINVAL, " in main() 179 tst_resm(TFAIL, "writev failed to fail"); in main() 180 tst_resm(TINFO, "Exit block 1"); in main() 187 tst_resm(TPASS, "Enter block 2"); in main() 190 tst_resm(TBROK | TERRNO, "block2: 1st lseek failed"); in main() 197 tst_resm(TFAIL, "read failed; expected nbytes " in main() 201 tst_resm(TFAIL, "writev over " in main() 204 tst_resm(TFAIL | TERRNO, "writev failed unexpectedly"); in main() [all …]
|
D | writev04.c | 115 tst_resm(TFAIL, "signal() SIGTERM FAILED"); in main() 121 tst_resm(TFAIL, "signal() SIGPIPE FAILED"); in main() 129 tst_resm(TFAIL, "open(2) failed: fname = %s, " in main() 134 tst_resm(TFAIL, "write(2) failed: nbytes " in main() 141 tst_resm(TFAIL, "close failed: errno = %d", errno); in main() 150 tst_resm(TINFO, "Enter block 1"); in main() 164 tst_resm(TFAIL, "Got error EFAULT"); in main() 166 tst_resm(TFAIL, "Received unexpected error: %d", in main() 173 tst_resm(TFAIL, "writev overwrote the file"); in main() 179 tst_resm(TINFO, "block 1 FAILED"); in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/creat/ |
D | creat08.c | 142 tst_resm(TFAIL, "Creation of %s failed", DIR_A); in main() 147 tst_resm(TFAIL, "Chown of %s failed", DIR_A); in main() 152 tst_resm(TFAIL, "Stat of %s failed", DIR_A); in main() 158 tst_resm(TFAIL, "%s: Incorrect modes, setgid bit set", in main() 165 tst_resm(TFAIL, "%s: Incorrect group", DIR_A); in main() 166 tst_resm(TINFO, "got %u and %u", buf.st_gid, in main() 176 tst_resm(TFAIL, "Creation of %s failed", DIR_B); in main() 181 tst_resm(TFAIL, "Chown of %s failed", DIR_B); in main() 186 tst_resm(TFAIL, "Chmod of %s failed", DIR_B); in main() 191 tst_resm(TFAIL, "Stat of %s failed", DIR_B); in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/open/ |
D | open10.c | 128 tst_resm(TFAIL | TERRNO, "mkdir(%s) failed", DIR_A); in main() 133 tst_resm(TFAIL | TERRNO, "chown(%s) failed", DIR_A); in main() 138 tst_resm(TFAIL | TERRNO, "stat(%s) failed", DIR_A); in main() 144 tst_resm(TFAIL, "%s: Incorrect modes, setgid bit set", in main() 151 tst_resm(TFAIL, "%s: Incorrect group (got %d and %d)", in main() 161 tst_resm(TFAIL | TERRNO, "mkdir(%s) failed", DIR_B); in main() 166 tst_resm(TFAIL | TERRNO, "chown(%s) failed", DIR_B); in main() 171 tst_resm(TFAIL | TERRNO, "chmod(%s) failed", DIR_B); in main() 176 tst_resm(TFAIL | TERRNO, "stat(%s) failed", DIR_B); in main() 182 tst_resm(TFAIL, in main() [all …]
|
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_test/ |
D | cpuset_memory_testset.sh | 69 tst_resm TFAIL "set general group parameter failed." 76 tst_resm TFAIL "allocate memory on the Node#$node(Expect: Node#0)." 86 tst_resm TFAIL "set general group parameter failed." 93 tst_resm TFAIL "allocate memory on the Node#$node(Expect: Node#0)." 103 tst_resm TFAIL "set general group parameter failed." 110 tst_resm TFAIL "allocate memory on the Node#$node(Expect: Node#0)." 120 tst_resm TFAIL "set general group parameter failed." 127 tst_resm TFAIL "allocate memory on the Node#$node(Expect: Node#0)." 137 tst_resm TFAIL "set general group parameter failed." 144 tst_resm TFAIL "allocate memory on the Node#$node(Expect: Node#0)." [all …]
|
/external/ltp/testcases/kernel/device-drivers/rtc/ |
D | rtc01.c | 67 tst_resm(TINFO, "RTC READ TEST:"); in read_alarm_test() 72 tst_resm(TFAIL, "RTC_RD_TIME ioctl failed"); in read_alarm_test() 76 tst_resm(TPASS, "RTC READ TEST Passed"); in read_alarm_test() 78 tst_resm(TINFO, "Current RTC date/time is %d-%d-%d, %02d:%02d:%02d.", in read_alarm_test() 82 tst_resm(TINFO, "RTC ALARM TEST :"); in read_alarm_test() 102 tst_resm(TCONF | TERRNO, "RTC_ALM_SET not supported"); in read_alarm_test() 104 tst_resm(TFAIL | TERRNO , "RTC_ALM_SET ioctl failed"); in read_alarm_test() 111 tst_resm(TFAIL, "RTC_ALM_READ ioctl failed"); in read_alarm_test() 115 tst_resm(TINFO, "Alarm time set to %02d:%02d:%02d.", in read_alarm_test() 120 tst_resm(TINFO, "RTC_AIE_ON ioctl failed"); in read_alarm_test() [all …]
|
/external/ltp/testcases/kernel/logging/kmsg/ |
D | kmsg01.c | 259 tst_resm(TINFO, "TEST: nonblock read"); in test_read_nonblock() 266 tst_resm(TPASS, "non-block read returned EAGAIN"); in test_read_nonblock() 268 tst_resm(TFAIL|TTERRNO, "non-block read returned: %ld", in test_read_nonblock() 277 tst_resm(TINFO, "TEST: blocking read"); in test_read_block() 284 tst_resm(TPASS, "read blocked"); in test_read_block() 286 tst_resm(TFAIL|TTERRNO, "read returned: %ld", TEST_RETURN); in test_read_block() 295 tst_resm(TINFO, "TEST: partial read"); in test_partial_read() 302 tst_resm(TPASS|TTERRNO, "read failed as expected"); in test_partial_read() 304 tst_resm(TFAIL, "read returned: %ld", TEST_RETURN); in test_partial_read() 315 tst_resm(TINFO, "TEST: injected messages appear in /dev/kmsg"); in test_inject() [all …]
|
/external/ltp/testcases/kernel/syscalls/getrusage/ |
D | getrusage03.c | 79 tst_resm(TINFO, "allocate 100MB"); in main() 98 tst_resm(TINFO, "Testcase #01: fork inherit"); in inherit_fork() 101 tst_resm(TINFO, "initial.self = %ld", ru.ru_maxrss); in inherit_fork() 109 tst_resm(TINFO, "child.self = %ld", ru.ru_maxrss); in inherit_fork() 125 tst_resm(TINFO, "Testcase #02: fork inherit(cont.)"); in inherit_fork2() 128 tst_resm(TINFO, "initial.children = %ld", ru.ru_maxrss); in inherit_fork2() 130 tst_resm(TPASS, "initial.children ~= 100MB"); in inherit_fork2() 132 tst_resm(TFAIL, "initial.children !~= 100MB"); in inherit_fork2() 139 tst_resm(TINFO, "child.children = %ld", ru.ru_maxrss); in inherit_fork2() 155 tst_resm(TINFO, "Testcase #03: fork + malloc"); in fork_malloc() [all …]
|
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_pressure_test/ |
D | cpuset_memory_pressure_testset.sh | 49 tst_resm TFAIL "Closing memory_pressure_enabled failed." 57 tst_resm TFAIL "Memory_pressure had memory pressure rate." 68 tst_resm TFAIL "Closing memory_pressure_enabled failed." 78 tst_resm TFAIL "Memory_pressure had memory pressure rate." 89 tst_resm TFAIL "Opening memory_pressure_enabled failed." 96 tst_resm TFAIL "set general group parameter failed." 104 tst_resm TFAIL "root group's memory_pressure had memory pressure rate." 108 tst_resm TFAIL "sub group's memory_pressure had memory pressure rate." 120 tst_resm TFAIL "Opening memory_pressure_enabled failed." 127 tst_resm TFAIL "set general group parameter failed." [all …]
|
/external/ltp/testcases/kernel/syscalls/symlink/ |
D | symlink01.c | 664 tst_resm(TPASS, "symlink(%s, %s) was succesful.", path1, path2); in creat_symlink() 691 tst_resm(TPASS, "creat(%s, %#o) was succesful.", path1, MODE); in creat_object() 919 tst_resm(TBROK, in do_syscalltests() 943 tst_resm(TEST_RESULT, "%s", test_msg); in do_syscalltests() 959 tst_resm(TBROK, "Test Case Declaration Error"); in do_syscalltests() 963 tst_resm(TBROK, "Test Case Declaration Error"); in do_syscalltests() 979 tst_resm(TEST_RESULT, "%s", in do_syscalltests() 983 tst_resm(TEST_RESULT, "%s", in do_syscalltests() 986 tst_resm(TEST_RESULT, "%s", test_msg); in do_syscalltests() 1008 tst_resm(TBROK, in do_syscalltests() [all …]
|
/external/ltp/testcases/kernel/syscalls/sigaction/ |
D | sigaction02.c | 76 tst_resm(TINFO, "Inside signal handler. Got signal: %d", sig); in handler() 120 tst_resm(TINFO, "Enter test %d: set handler for SIGKILL", in main() 123 tst_resm(TFAIL, "sigaction() succeeded, should have failed"); in main() 126 tst_resm(TFAIL, "sigaction set incorrect errno. Expected " in main() 129 tst_resm(TPASS, "call failed with expected EINVAL error"); in main() 136 tst_resm(TINFO, "Enter test %d: set handler for SIGSTOP", in main() 139 tst_resm(TFAIL, "sigaction() succeeded, should have failed"); in main() 142 tst_resm(TFAIL, "sigaction set incorrect errno. Expected " in main() 145 tst_resm(TPASS, "call failed with expected EINVAL error"); in main() 151 tst_resm(TINFO, "Enter test %d: set handler for bad " in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/waitpid/ |
D | waitpid13.c | 96 tst_resm(TFAIL, "child returned bad status"); in main() 100 tst_resm(TFAIL, "%s FAILED", TCID); in main() 102 tst_resm(TPASS, "%s PASSED", TCID); in main() 127 tst_resm(TFAIL | TERRNO, "self_exec kid %d " in main() 137 tst_resm(TFAIL | TERRNO, "forking kid %d failed", in main() 147 tst_resm(TFAIL, "Waitpid returned wrong value" in main() 149 tst_resm(TFAIL, "Expected 0 got %d", ret_val); in main() 162 tst_resm(TFAIL | TERRNO, "killing child %d failed", i); in main() 180 tst_resm(TFAIL, "Child %d is not " in main() 185 tst_resm(TFAIL, "Child %d " in main() [all …]
|
/external/ltp/testcases/kernel/device-drivers/zram/ |
D | zram_lib.sh | 27 tst_resm TINFO "zram cleanup" 48 tst_resm TINFO "create '$dev_num' zram device(s)" 57 tst_resm TPASS "test succeeded" 67 tst_resm TCONF "device attribute max_comp_streams is"\ 72 tst_resm TINFO "set max_comp_streams to zram device(s)" 86 tst_resm TINFO "$sys_path = '$max_streams' ($i/$dev_num)" 89 tst_resm TPASS "test succeeded" 96 tst_resm TCONF "device attribute comp_algorithm is"\ 101 tst_resm TINFO "test that we can set compression algorithm" 105 tst_resm TINFO "supported algs: $algs" [all …]
|