From 5ac580f5b1201e34965ee987904f87680ca180b4 Mon Sep 17 00:00:00 2001 From: Ravineet Singh Date: Tue, 12 Jan 2016 20:31:35 +0100 Subject: Ubuntu: moved rt-tests-parser.sh to common, to be used by other OS'es also updated test definitions pointing to old path. OE: added pmqtest definition Change-Id: Ie9aa8a39fbc4025d477a6368decbe33fa80b94d0 Signed-off-by: Ravineet Singh --- ubuntu/pmqtest.yaml | 2 +- ubuntu/ptsematest.yaml | 2 +- ubuntu/scripts/rt-tests-parser.sh | 23 ----------------------- ubuntu/sigwaittest.yaml | 2 +- ubuntu/svsematest.yaml | 2 +- 5 files changed, 4 insertions(+), 27 deletions(-) delete mode 100755 ubuntu/scripts/rt-tests-parser.sh (limited to 'ubuntu') diff --git a/ubuntu/pmqtest.yaml b/ubuntu/pmqtest.yaml index efc3aaa..bd1b93e 100644 --- a/ubuntu/pmqtest.yaml +++ b/ubuntu/pmqtest.yaml @@ -28,7 +28,7 @@ params: run: steps: - 'pmqtest -l ${LOOPS} -S | tee result.log' - - './ubuntu/scripts/rt-tests-parser.sh pmqtest result.log' + - './common/scripts/rt-tests-parser.sh pmqtest result.log' - 'lava-test-run-attach result.log' parse: diff --git a/ubuntu/ptsematest.yaml b/ubuntu/ptsematest.yaml index b916580..a9c5d10 100644 --- a/ubuntu/ptsematest.yaml +++ b/ubuntu/ptsematest.yaml @@ -28,7 +28,7 @@ params: run: steps: - 'ptsematest -l ${LOOPS} -t | tee result.log' - - './ubuntu/scripts/rt-tests-parser.sh ptsematest result.log' + - './common/scripts/rt-tests-parser.sh ptsematest result.log' - 'lava-test-run-attach result.log' parse: diff --git a/ubuntu/scripts/rt-tests-parser.sh b/ubuntu/scripts/rt-tests-parser.sh deleted file mode 100755 index e86c931..0000000 --- a/ubuntu/scripts/rt-tests-parser.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -TESTNAME=$1 -LOG=$2 - -# Find the last line number which starting with control character -N=`grep -n "^#1 -> #0" ${LOG} | tail -n1 | cut -d':' -f1` -sed -n "${N},$ p" ${LOG} > tmp.log - -while read l -do - TC="`echo ${l} | cut -d',' -f1`" - R="`echo ${l} | cut -d',' -f2-`" - IFS=',' - for c in ${R} - do - c="`echo $c|sed 's/^[ ]*//'`" - t="`echo ${c} | cut -d' ' -f1`" - v="`echo ${c} | cut -d' ' -f2`" - echo "${TESTNAME} ${TC} (${t}): ${v} usec pass" - done - unset IFS -done < tmp.log diff --git a/ubuntu/sigwaittest.yaml b/ubuntu/sigwaittest.yaml index 1d42e2f..9d42cd1 100644 --- a/ubuntu/sigwaittest.yaml +++ b/ubuntu/sigwaittest.yaml @@ -27,7 +27,7 @@ params: run: steps: - 'sigwaittest -l ${LOOPS} -t | tee result.log' - - './ubuntu/scripts/rt-tests-parser.sh sigwaittest result.log' + - './common/scripts/rt-tests-parser.sh sigwaittest result.log' - 'lava-test-run-attach result.log' parse: diff --git a/ubuntu/svsematest.yaml b/ubuntu/svsematest.yaml index c02e79f..ee4d89f 100644 --- a/ubuntu/svsematest.yaml +++ b/ubuntu/svsematest.yaml @@ -28,7 +28,7 @@ params: run: steps: - 'svsematest -l ${LOOPS} -t | tee result.log' - - './ubuntu/scripts/rt-tests-parser.sh svsematest result.log' + - './common/scripts/rt-tests-parser.sh svsematest result.log' - 'lava-test-run-attach result.log' parse: -- cgit v1.2.3