summaryrefslogtreecommitdiffstats
path: root/recipes-test/systest-runner/files/tests/posixtest
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2014-10-10 00:31:33 +0200
committerTudor Florea <tudor.florea@enea.com>2014-10-10 00:53:44 +0200
commitcd3411088f6bb4393d79c50b5f7eef3f11a83435 (patch)
treee1b44fd7c353d9018f489d03f3dea78bc876b94a /recipes-test/systest-runner/files/tests/posixtest
downloadmeta-enea-daisy-140929.tar.gz
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'recipes-test/systest-runner/files/tests/posixtest')
-rwxr-xr-xrecipes-test/systest-runner/files/tests/posixtest40
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..cf92261
--- /dev/null
+++ b/recipes-test/systest-runner/files/tests/posixtest
@@ -0,0 +1,40 @@
1#!/bin/sh
2
3printit() {
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
19cd /opt/ltp/testcases/open_posix_testsuite >/dev/null
20
21make test
22
23FILES=$(find . -name "logfile.*-test")
24for f in $FILES
25do
26 printit $f
27done
28
29printf "\n\nRunning POSIX Option Group Feature Tests"
30printf "\n========================================\n"
31
32./bin/run-all-posix-option-group-tests.sh
33
34FILES=$(find . -name "logfile")
35for f in $FILES
36do
37 printit $f
38done
39
40