summaryrefslogtreecommitdiffstats
path: root/recipes-test/systest-runner/files/tests/posixtest
diff options
context:
space:
mode:
authorAdrian Dudau <adrian.dudau@enea.com>2013-12-12 17:36:38 +0100
committerAdrian Dudau <adrian.dudau@enea.com>2013-12-12 17:36:38 +0100
commit2a7348129a42f21095fcd62e47a035f78d254130 (patch)
tree544dc8019a8f8cb684ace8674193605e607f9964 /recipes-test/systest-runner/files/tests/posixtest
downloadmeta-enea-master.tar.gz
initial commit of Enea Linux 3.1HEADmaster
Migrated from the internal git server on the dora-enea branch Signed-off-by: Adrian Dudau <adrian.dudau@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..8da0193
--- /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 "----------------------------------------"
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