diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 17:36:38 +0100 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 17:36:38 +0100 |
commit | 2a7348129a42f21095fcd62e47a035f78d254130 (patch) | |
tree | 544dc8019a8f8cb684ace8674193605e607f9964 /recipes-test/systest-runner/files/tests/ltp | |
download | meta-enea-master.tar.gz |
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/ltp')
-rwxr-xr-x | recipes-test/systest-runner/files/tests/ltp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/recipes-test/systest-runner/files/tests/ltp b/recipes-test/systest-runner/files/tests/ltp new file mode 100755 index 0000000..ebdc32f --- /dev/null +++ b/recipes-test/systest-runner/files/tests/ltp | |||
@@ -0,0 +1,23 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | cd /opt/ltp >/dev/null | ||
4 | addgroup nobody | ||
5 | sed -i -e "/mounts | sort -b$/s/$/ | grep -v deleted/" ./testscripts/test_fs_bind.sh | ||
6 | |||
7 | logname=`date +"%Y_%m_%d_%H_%M_%S"`".log" | ||
8 | ./runltp -p -d /tmp -l $logname | ||
9 | |||
10 | if [ ! -d ./results ]; then | ||
11 | echo "FAIL: no result found" | ||
12 | exit 1 | ||
13 | fi | ||
14 | |||
15 | cat ./results/$logname | while read line | ||
16 | do | ||
17 | resultLine=`echo $line | grep -c -E "PASS|FAIL"` | ||
18 | if [ $resultLine -eq 1 ]; then | ||
19 | testcase=`echo $line | awk '{print $1}'` | ||
20 | result=`echo $line | awk '{print $2}'` | ||
21 | echo "$result: $testcase" | ||
22 | fi | ||
23 | done | ||