add test programs for strace

This commit is contained in:
Tomoki Shirasawa
2017-11-25 14:35:17 +09:00
parent c9fa445f54
commit 5cc738d6bd
15 changed files with 2164 additions and 216 deletions

View File

@ -0,0 +1,30 @@
#!/bin/sh
export MCEXEC=../../../../mic/mcexec
echo '*** ptrace_setoptions start'
./ptrace_setoptions
if [ $? = 0 ]; then
echo '*** ptrace_setoptions OK'
else
echo '*** ptrace_setoptions NG'
fi
echo '*** qual_syscall start'
./qual_syscall
if [ $? = 0 ]; then
echo '*** qual_syscall OK'
else
echo '*** qual_syscall NG'
fi
echo '*** stat start'
./stat
if [ $? = 0 ]; then
echo '*** stat OK'
else
echo '*** stat NG'
fi
echo '*** strace-f start'
./strace-f
if [ $? = 0 ]; then
echo '*** strace-f OK'
else
echo '*** strace-f NG'
fi