summaryrefslogtreecommitdiff
path: root/openembedded
diff options
context:
space:
mode:
authorAnders Roxell <anders.roxell@linaro.org>2013-09-05 09:32:00 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2013-09-05 21:39:37 +0300
commit8b92bf6584039c9ff69a1d7ebd41ea454b515d08 (patch)
tree9a3b8558ba7d96f4ae9260dd97f68161a1df9b48 /openembedded
parent7f1cb9618b51894fdcf348bca491ad0633f6f5f9 (diff)
openembedde/ltp: add a wrapper script to ltp and parse result log
Signed-off-by: Anders Roxell <anders.roxell@linaro.org> Acked-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'openembedded')
-rw-r--r--openembedded/ltp.yaml13
-rwxr-xr-xopenembedded/scripts/ltpfixup.sh6
2 files changed, 10 insertions, 9 deletions
diff --git a/openembedded/ltp.yaml b/openembedded/ltp.yaml
index 80982f3..d3de02f 100644
--- a/openembedded/ltp.yaml
+++ b/openembedded/ltp.yaml
@@ -6,15 +6,10 @@ metadata:
run:
steps:
- - 'cd /opt/ltp'
- - './runltplite.sh -p -q'
+ - './openembedded/scripts/ltpfixup.sh'
parse:
- pattern: "^(?P<test_case_id>\\S+)\\s+\\d+\\s+(?P<result>\\w+)\\s+:\\s+.+"
+ pattern: "^(?P<test_case_id>\\S+)\\s+(?P<result>\\w+)\\s+.+"
fixupdict:
- TBROK: fail
- TCONF: skip
- TFAIL: fail
- TINFO: skip
- TPASS: pass
- TWARN: unknown
+ FAIL: fail
+ PASS: pass
diff --git a/openembedded/scripts/ltpfixup.sh b/openembedded/scripts/ltpfixup.sh
new file mode 100755
index 0000000..a852aac
--- /dev/null
+++ b/openembedded/scripts/ltpfixup.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+cd /opt/ltp
+./runltp -p -q -f syscalls
+find ./results -name "LTP_RUN_ON*" -print0 |xargs -0 cat
+exit 0