diff options
Diffstat (limited to 'recipes-test/systest-runner/files/tests/posixtest')
| -rwxr-xr-x | recipes-test/systest-runner/files/tests/posixtest | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/recipes-test/systest-runner/files/tests/posixtest b/recipes-test/systest-runner/files/tests/posixtest new file mode 100755 index 0000000..8da0193 --- /dev/null +++ b/recipes-test/systest-runner/files/tests/posixtest | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | printit() { | ||
| 4 | echo "" | ||
| 5 | sed -i -e "s|FAILED:|FAIL:|g" -e "s|UNRESOLVED:|FAIL:|g" -e "s|UNSUPPORTED:|SKIP:|g" -e "s|UNTESTED:|SKIP:|g" $1 | ||
| 6 | cat $1 | while read line | ||
| 7 | do | ||
| 8 | resultLine=`echo $line | grep -c -E "PASS|FAIL"` | ||
| 9 | if [ $resultLine -eq 1 ]; then | ||
| 10 | testcase=`echo $line | awk -F: '{print $1}'` | ||
| 11 | result=`echo $line | awk -F: '{print $3}'` | ||
| 12 | if [ -n "$testcase" ] && [ -n "$result" ]; then | ||
| 13 | echo "$result: $testcase" | ||
| 14 | fi | ||
| 15 | fi | ||
| 16 | done | ||
| 17 | } | ||
| 18 | |||
| 19 | cd /opt/ltp/testcases/open_posix_testsuite >/dev/null | ||
| 20 | |||
| 21 | make test | ||
| 22 | |||
| 23 | FILES=$(find . -name "logfile.*-test") | ||
| 24 | for f in $FILES | ||
| 25 | do | ||
| 26 | printit $f | ||
| 27 | done | ||
| 28 | |||
| 29 | printf "\n\nRunning POSIX Option Group Feature Tests" | ||
| 30 | printf "----------------------------------------" | ||
| 31 | |||
| 32 | ./bin/run-all-posix-option-group-tests.sh | ||
| 33 | |||
| 34 | FILES=$(find . -name "logfile") | ||
| 35 | for f in $FILES | ||
| 36 | do | ||
| 37 | printit $f | ||
| 38 | done | ||
| 39 | |||
| 40 | |||
