From cd3411088f6bb4393d79c50b5f7eef3f11a83435 Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Fri, 10 Oct 2014 00:31:33 +0200 Subject: initial commit for Enea Linux 4.0-140929 Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea --- recipes-test/systest-runner/files/tests/posixtest | 40 +++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100755 recipes-test/systest-runner/files/tests/posixtest (limited to 'recipes-test/systest-runner/files/tests/posixtest') diff --git a/recipes-test/systest-runner/files/tests/posixtest b/recipes-test/systest-runner/files/tests/posixtest new file mode 100755 index 0000000..cf92261 --- /dev/null +++ b/recipes-test/systest-runner/files/tests/posixtest @@ -0,0 +1,40 @@ +#!/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 "\n========================================\n" + +./bin/run-all-posix-option-group-tests.sh + +FILES=$(find . -name "logfile") +for f in $FILES +do + printit $f +done + + -- cgit v1.2.3-54-g00ecf