summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaresh Kamboju <naresh.kamboju@linaro.org>2014-08-13 03:34:43 +0530
committerNaresh Kamboju <naresh.kamboju@linaro.org>2014-08-13 03:34:43 +0530
commit9f626c6c46df11ad0a25f7adc40d6195138f17e6 (patch)
tree58ca3f1d4b0650b77ebaf42a96bc7657fb04e133
parent0fd5c9f12ad9a94e2c6dffb7c661bc6ae3493eba (diff)
OE: ltp: skipfile
Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
-rwxr-xr-xcommon/scripts/ltpfixup.sh21
-rw-r--r--openembedded/ltp.yaml19
2 files changed, 31 insertions, 9 deletions
diff --git a/common/scripts/ltpfixup.sh b/common/scripts/ltpfixup.sh
new file mode 100755
index 0000000..509d91d
--- /dev/null
+++ b/common/scripts/ltpfixup.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+# Absolute path to this script. /home/user/bin/foo.sh
+SCRIPT=$(readlink -f $0)
+# Absolute path this script is in. /home/user/bin
+SCRIPTPATH=`dirname $SCRIPT`
+echo "Script path is: $SCRIPTPATH"
+
+LTP_PATH=/opt/ltp
+# Second parameter is used as a path to LTP installation
+if [ "$#" -gt 1 ]; then
+ LTP_PATH=$2
+fi
+cd $LTP_PATH
+wget http://people.linaro.org/~naresh.kamboju/skipfile
+./runltp -p -q -f $1 -S skipfile -l $SCRIPTPATH/LTP_$1.log -C $SCRIPTPATH/LTP_$1.failed | tee $SCRIPTPATH/LTP_$1.out
+find $SCRIPTPATH -name "LTP_$1.log" -print0 |xargs -0 cat
+tar czfv $SCRIPTPATH/LTP_$1.tar.gz $SCRIPTPATH/LTP*
+lava-test-case LTP_$1 --result pass
+lava-test-case-attach LTP_$1 $SCRIPTPATH/LTP_$1.tar.gz
+exit 0
diff --git a/openembedded/ltp.yaml b/openembedded/ltp.yaml
index e3ea9c5..deb1127 100644
--- a/openembedded/ltp.yaml
+++ b/openembedded/ltp.yaml
@@ -1,8 +1,8 @@
metadata:
- name: ltp-oe
+ name: ltp
format: "Lava-Test-Shell Test Definition 1.0"
- version: 20130503
- description: "Run LTP syscalls on OpenEmbedded."
+ version: 20140422
+ description: "Run LTP test suite on OpenEmbedded."
maintainer:
- milosz.wasilewski@linaro.org
- fathi.boudra@linaro.org
@@ -11,19 +11,20 @@ metadata:
scope:
- functional
devices:
- - rtsm_ve-armv8
+ - rtsm_fvp_base-aemv8a
+ - rtsm_fvp_base_cortex-a57x1-a53x1
+ - rtsm_fvp_base_cortex-a57x4-a53x4
+ - wg
params:
- TST_CMDFILES: syscalls,mm,math,timers,fcntl-locktests,ipc,fsx,fs,hugetlb
+ TST_CMDFILES: syscalls,mm,math,timers,fcntl-locktests,ipc,fsx,fs,hugetlb,io,nptl,pty,containers,fs_bind,filecaps,admin_tools,connectors
run:
steps:
- - 'cd /opt/ltp'
- - 'wget http://people.linaro.org/~naresh.kamboju/skipfile'
- - './runltp -p -q -f $TST_CMDFILES -S skipfile'
+ - './common/scripts/ltpfixup.sh $TST_CMDFILES'
parse:
- pattern: "^(?P<test_case_id>\\S+)\\s+(?P<result>\\w+)\\s+.+"
+ pattern: "^(?!.+ED)(?P<test_case_id>\\w+)\\s+(?P<result>\\w+)\\s+\\d$"
fixupdict:
FAIL: fail
PASS: pass