#!/bin/sh printit() { echo "" sed -i -e "s|FAILED:|FAIL:|g" -e "s|UNRESOLVED:|FAIL:|g" -e "s|UNSUPPORTED:|SKIP:|g" -e "s|UNTESTED:|SKIP:|g" $1 cat $1 | while read line do resultLine=`echo $line | grep -c -E "PASS|FAIL"` if [ $resultLine -eq 1 ]; then testcase=`echo $line | awk -F: '{print $1}'` result=`echo $line | awk -F: '{print $3}'` if [ -n "$testcase" ] && [ -n "$result" ]; then echo "$result: $testcase" fi fi done } cd /opt/ltp/testcases/open_posix_testsuite >/dev/null make test FILES=$(find . -name "logfile.*-test") for f in $FILES do printit $f done printf "\n\nRunning POSIX Option Group Feature Tests" printf "----------------------------------------" ./bin/run-all-posix-option-group-tests.sh FILES=$(find . -name "logfile") for f in $FILES do printit $f done