add regression test result for strace

This commit is contained in:
Tomoki Shirasawa
2017-11-25 18:30:51 +09:00
parent 3b6056fb1a
commit bad487cc07
37 changed files with 377 additions and 0 deletions

View File

@ -0,0 +1 @@
clone01 1 TPASS : clone returned 10970

View File

@ -0,0 +1 @@
clone03 1 TPASS : Test passed

View File

@ -0,0 +1 @@
clone04 1 TPASS : expected failure; Got EINVAL

View File

@ -0,0 +1 @@
clone06 1 TPASS : Test Passed

View File

@ -0,0 +1 @@
clone07 1 TPASS : Use of return() in child did not cause SIGSEGV

View File

@ -0,0 +1,2 @@
execl01_child 1 TPASS : execve01_child executed
execve01 0 TINFO : Child process returned TPASS

View File

@ -0,0 +1,2 @@
execve02 1 TPASS : execve() failed expectedly: TEST_ERRNO=EACCES(13): Permission denied
execve02 0 TINFO : Child process returned TPASS

View File

@ -0,0 +1,6 @@
execve03 1 TPASS : execve failed as expected: TEST_ERRNO=ENAMETOOLONG(36): File name too long
execve03 2 TPASS : execve failed as expected: TEST_ERRNO=ENOENT(2): No such file or directory
execve03 3 TPASS : execve failed as expected: TEST_ERRNO=ENOTDIR(20): Not a directory
execve03 4 TPASS : execve failed as expected: TEST_ERRNO=EFAULT(14): Bad address
execve03 5 TPASS : execve failed as expected: TEST_ERRNO=EACCES(13): Permission denied
execve03 6 TPASS : execve failed as expected: TEST_ERRNO=ENOEXEC(8): Exec format error

View File

@ -0,0 +1,2 @@
fork01 1 TPASS : fork() returned 11240
fork01 2 TPASS : child pid and fork() return agree: 11240

View File

@ -0,0 +1,4 @@
fork02 0 TINFO : Inside parent
fork02 0 TINFO : Inside child
fork02 0 TINFO : exit status of wait 0
fork02 1 TPASS : test 1 PASSED

View File

@ -0,0 +1,2 @@
fork03 0 TINFO : process id in parent of child from fork : 11360
fork03 1 TPASS : test 1 PASSED

View File

@ -0,0 +1,3 @@
fork04 1 TPASS : Env var TERM unchanged after fork(): xterm
fork04 2 TPASS : Env var NoTSetzWq unchanged after fork(): getenv() does not find variable set
fork04 3 TPASS : Env var TESTPROG unchanged after fork(): FRKTCS04

View File

@ -0,0 +1,4 @@
fork07 0 TINFO : Forking 100 children
fork07 0 TINFO : Forked all 100 children, now collecting
fork07 0 TINFO : Collected all 100 children
fork07 1 TPASS : 100/100 children read correctly from an inheritted fd

View File

@ -0,0 +1,11 @@
fork08 0 TINFO : parent forksval: 1
fork08 0 TINFO : parent forksval: 2
fork08 0 TINFO : exit status of wait expected 0 got 0
fork08 1 TPASS : parent test PASSED
fork08 0 TINFO : second child got char: b
fork08 1 TPASS : Test passed in childnumber 2
fork08 0 TINFO : exit status of wait expected 0 got 0
fork08 2 TPASS : parent test PASSED
fork08 0 TINFO : exit status of wait expected 0 got 0
fork08 3 TPASS : parent test PASSED
fork08 0 TINFO : Number of processes forked is 2

View File

@ -0,0 +1,5 @@
fork09 0 TINFO : OPEN_MAX is 1024
fork09 0 TINFO : first file descriptor is 10
fork09 0 TINFO : Parent reporting 1023 files open
fork09 0 TINFO : Child opened new file #1023
fork09 1 TPASS : test 1 PASSED

View File

@ -0,0 +1,2 @@
fork10 0 TINFO : fork child A
fork10 1 TPASS : test 1 PASSED

View File

@ -0,0 +1 @@
fork11 1 TPASS : fork test passed, 100 processes

View File

@ -0,0 +1,2 @@
ptrace01 1 TPASS : Test Passed
ptrace01 2 TPASS : Test Passed

View File

@ -0,0 +1,2 @@
ptrace02 1 TPASS : Test Passed
ptrace02 2 TPASS : Test Passed

View File

@ -0,0 +1,130 @@
ptrace05 0 TINFO : [child] Sending kill(.., 0)
ptrace05 1 TPASS : kill(.., 0) exited with 0, as expected.
ptrace05 0 TINFO : [child] Sending kill(.., 1)
ptrace05 2 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 2)
ptrace05 3 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 3)
ptrace05 4 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 4)
ptrace05 5 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 5)
ptrace05 6 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 6)
ptrace05 7 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 7)
ptrace05 8 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 8)
ptrace05 9 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 9)
ptrace05 10 TPASS : Killed with SIGKILL, as expected.
ptrace05 0 TINFO : [child] Sending kill(.., 10)
ptrace05 11 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 11)
ptrace05 12 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 12)
ptrace05 13 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 13)
ptrace05 14 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 14)
ptrace05 15 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 15)
ptrace05 16 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 16)
ptrace05 17 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 17)
ptrace05 18 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 18)
ptrace05 19 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 19)
ptrace05 20 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 20)
ptrace05 21 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 21)
ptrace05 22 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 22)
ptrace05 23 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 23)
ptrace05 24 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 24)
ptrace05 25 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 25)
ptrace05 26 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 26)
ptrace05 27 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 27)
ptrace05 28 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 28)
ptrace05 29 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 29)
ptrace05 30 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 30)
ptrace05 31 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 31)
ptrace05 32 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 32)
ptrace05 33 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 33)
ptrace05 34 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 34)
ptrace05 35 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 35)
ptrace05 36 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 36)
ptrace05 37 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 37)
ptrace05 38 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 38)
ptrace05 39 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 39)
ptrace05 40 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 40)
ptrace05 41 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 41)
ptrace05 42 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 42)
ptrace05 43 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 43)
ptrace05 44 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 44)
ptrace05 45 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 45)
ptrace05 46 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 46)
ptrace05 47 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 47)
ptrace05 48 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 48)
ptrace05 49 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 49)
ptrace05 50 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 50)
ptrace05 51 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 51)
ptrace05 52 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 52)
ptrace05 53 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 53)
ptrace05 54 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 54)
ptrace05 55 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 55)
ptrace05 56 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 56)
ptrace05 57 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 57)
ptrace05 58 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 58)
ptrace05 59 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 59)
ptrace05 60 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 60)
ptrace05 61 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 61)
ptrace05 62 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 62)
ptrace05 63 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 63)
ptrace05 64 TPASS : Stopped as expected
ptrace05 0 TINFO : [child] Sending kill(.., 64)
ptrace05 65 TPASS : Stopped as expected

View File

@ -0,0 +1,41 @@
clone01: OK
clone03: OK
clone04: OK
clone06: OK
clone07: OK
fork01: OK
fork02: OK
fork03: OK
fork04: OK
fork07: OK
fork08: OK
fork09: OK
fork10: OK
fork11: OK
execve01: OK
Error: Failed to open execve_child
execve(): error loading ELF for file execve_child
execve02: OK
Error: /tmp/exezNhGkC/fake.17900 is not an executable?, errno: 13
execve(): error loading ELF for file /tmp/exezNhGkC/fake.17900
Error: file /tmp/exezNhGkC/execve03.17900 is zero length
execve(): error loading ELF for file /tmp/exezNhGkC/execve03.17900
execve03: OK
wait02: OK
wait401: OK
wait402: OK
waitid01: OK
waitid02: OK
waitpid01: OK
waitpid02: OK
waitpid03: OK
waitpid04: OK
waitpid05: OK
waitpid07: OK
waitpid08: OK
waitpid09: OK
waitpid12: OK
waitpid13: OK
ptrace01: OK
ptrace02: OK
ptrace05: OK

View File

@ -0,0 +1,47 @@
#!/bin/sh
LTPDIR=/home/shirasawa/ltp2015/testcases/bin
export PATH=/home/shirasawa/ltp2015/testcases/bin:$PATH
MCEXEC=/home/shirasawa/wallaby11-smp-x86/development/mic/mcexec
while read i;do
if $MCEXEC $LTPDIR/$i > $i.log; then
echo $i: OK
else
echo $i: NG
fi
done << EOF
clone01
clone03
clone04
clone06
clone07
fork01
fork02
fork03
fork04
fork07
fork08
fork09
fork10
fork11
execve01
execve02
execve03
wait02
wait401
wait402
waitid01
waitid02
waitpid01
waitpid02
waitpid03
waitpid04
waitpid05
waitpid07
waitpid08
waitpid09
waitpid12
waitpid13
ptrace01
ptrace02
ptrace05
EOF

View File

@ -0,0 +1 @@
wait02 1 TPASS : wait(&status) returned 17960

View File

@ -0,0 +1,2 @@
wait401 1 TPASS : Received child pid as expected.
wait401 2 TPASS : wait401 call succeeded

View File

@ -0,0 +1 @@
wait402 1 TPASS : received expected failure - errno = 10 - No child processes

View File

@ -0,0 +1,28 @@
waitid01 0 TINFO : Process 18110 terminated:
waitid01 0 TINFO : code = 1
waitid01 0 TINFO : exit value = 31488
waitid01 0 TINFO : Process 18140 terminated:
waitid01 0 TINFO : code = 1
waitid01 0 TINFO : exit value = 0
waitid01 0 TINFO : Process 18170 terminated:
waitid01 0 TINFO : code = 2
waitid01 0 TINFO : signal = 1
waitid01 0 TINFO : Process 18200 terminated:
waitid01 0 TINFO : code = 1
waitid01 0 TINFO : exit value = 31488
waitid01 0 TINFO : Process 18230 terminated:
waitid01 0 TINFO : code = 1
waitid01 0 TINFO : exit value = 0
waitid01 0 TINFO : Process 18260 terminated:
waitid01 0 TINFO : code = 2
waitid01 0 TINFO : signal = 1
waitid01 0 TINFO : Process 18290 terminated:
waitid01 0 TINFO : code = 1
waitid01 0 TINFO : exit value = 31488
waitid01 0 TINFO : Process 18320 terminated:
waitid01 0 TINFO : code = 1
waitid01 0 TINFO : exit value = 0
waitid01 0 TINFO : Process 18350 terminated:
waitid01 0 TINFO : code = 2
waitid01 0 TINFO : signal = 1
waitid01 1 TPASS : waitid(): system call passed

View File

@ -0,0 +1,32 @@
waitid02 0 TINFO : WNOHANG
waitid02 0 TINFO : (18380) waitid(0, 0, 0x547ffffffd10, 1)
waitid02 1 TPASS : exp_errno=22
waitid02 0 TINFO : si_pid = 0 ; si_code = 0 ; si_status = 0
waitid02 0 TINFO : WNOHANG | WEXITED no child
waitid02 0 TINFO : (18380) waitid(0, 0, 0x547ffffffd10, 5)
waitid02 2 TPASS : exp_errno=10
waitid02 0 TINFO : si_pid = 0 ; si_code = 0 ; si_status = 0
waitid02 0 TINFO : WNOHANG | WEXITED with child
waitid02 0 TINFO : (18380) waitid(0, 0, 0x547ffffffd10, 5)
waitid02 3 TPASS : ret: 0
waitid02 0 TINFO : si_pid = 0 ; si_code = 0 ; si_status = 0
waitid02 0 TINFO : P_PGID, WEXITED wait for child
waitid02 0 TINFO : (18380) waitid(2, 10938, 0x547ffffffd10, 4)
waitid02 4 TPASS : ret: 0
waitid02 0 TINFO : si_pid = 18440 ; si_code = 1 ; si_status = 0
waitid02 0 TINFO : P_PID, WEXITED wait for child
waitid02 0 TINFO : (18380) waitid(1, 18470, 0x547ffffffd10, 4)
waitid02 5 TPASS : ret: 0
waitid02 0 TINFO : si_pid = 18470 ; si_code = 1 ; si_status = 0
waitid02 0 TINFO : P_PID, WSTOPPED | WNOWAIT
waitid02 0 TINFO : (18380) waitid(1, 18500, 0x547ffffffd10, 16777218)
waitid02 6 TPASS : ret: 0
waitid02 0 TINFO : si_pid = 18500 ; si_code = 5 ; si_status = 4991
waitid02 0 TINFO : P_PID, WCONTINUED
waitid02 0 TINFO : (18380) waitid(1, 18530, 0x547ffffffd10, 8)
waitid02 7 TPASS : ret: 0
waitid02 0 TINFO : si_pid = 18530 ; si_code = 6 ; si_status = 65535
waitid02 0 TINFO : P_PID, WEXITED not a child of the calling process
waitid02 0 TINFO : (18380) waitid(1, 1, 0x547ffffffd10, 4)
waitid02 8 TPASS : exp_errno=10
waitid02 0 TINFO : si_pid = 0 ; si_code = 0 ; si_status = 0

View File

@ -0,0 +1,2 @@
waitpid01 1 TPASS : recieved expected pid
waitpid01 2 TPASS : recieved expected signal

View File

@ -0,0 +1,3 @@
waitpid02 1 TPASS : recieved expected pid
waitpid02 2 TPASS : recieved expected signal
waitpid02 3 TPASS : recieved expected exit value

View File

@ -0,0 +1,2 @@
waitpid03 1 TPASS : Got correct child PID
waitpid03 2 TPASS : Condition 2 test passed

View File

@ -0,0 +1,3 @@
waitpid04 1 TPASS : condition 1 test passed
waitpid04 2 TPASS : condition 2 test passed
waitpid04 3 TPASS : condition 3 test passed

View File

@ -0,0 +1,24 @@
waitpid05 1 TPASS : received expected pid.
waitpid05 2 TPASS : received expected exit number.
waitpid05 3 TPASS : received expected pid.
waitpid05 4 TPASS : received expected exit number.
waitpid05 5 TPASS : received expected pid.
waitpid05 6 TPASS : received expected exit number.
waitpid05 7 TPASS : received expected pid.
waitpid05 8 TPASS : received expected exit number.
waitpid05 9 TPASS : received expected pid.
waitpid05 10 TPASS : received expected exit number.
waitpid05 11 TPASS : received expected pid.
waitpid05 12 TPASS : received expected exit number.
waitpid05 13 TPASS : received expected pid.
waitpid05 14 TPASS : received expected exit number.
waitpid05 15 TPASS : received expected pid.
waitpid05 16 TPASS : received expected exit number.
waitpid05 17 TPASS : received expected pid.
waitpid05 18 TPASS : received expected exit number.
waitpid05 19 TPASS : received expected pid.
waitpid05 20 TPASS : received expected exit number.
waitpid05 21 TPASS : received expected pid.
waitpid05 22 TPASS : received expected exit number.
waitpid05 23 TPASS : received expected pid.
waitpid05 24 TPASS : received expected exit number.

View File

@ -0,0 +1 @@
waitpid07 1 TPASS : waitpid07 PASSED

View File

@ -0,0 +1 @@
waitpid08 1 TPASS : waitpid08 PASSED

View File

@ -0,0 +1,2 @@
waitpid09 1 TPASS : case 1 PASSED
waitpid09 2 TPASS : case 2 PASSED

View File

@ -0,0 +1,2 @@
waitpid12 1 TPASS : Test PASSED
waitpid12 1 TPASS : waitpid12 PASSED

View File

@ -0,0 +1,2 @@
waitpid13 1 TPASS : Test PASSED
waitpid13 1 TPASS : waitpid13 PASSED