From 1b6242fc583a6b871304fb995af6dc211b58f69b Mon Sep 17 00:00:00 2001 From: Adrian Dudau Date: Thu, 26 Jun 2014 13:48:23 +0200 Subject: initial commit for Enea Linux 4.0 Migrated from the internal git server on the daisy-enea branch Signed-off-by: Adrian Dudau --- recipes-core/numactl/numactl-2.0.9/regress1-parser | 63 ++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100755 recipes-core/numactl/numactl-2.0.9/regress1-parser (limited to 'recipes-core/numactl/numactl-2.0.9/regress1-parser') diff --git a/recipes-core/numactl/numactl-2.0.9/regress1-parser b/recipes-core/numactl/numactl-2.0.9/regress1-parser new file mode 100755 index 0000000..d8e9dea --- /dev/null +++ b/recipes-core/numactl/numactl-2.0.9/regress1-parser @@ -0,0 +1,63 @@ +#!/bin/sh + +test_pattern="=>testing " +test_fail="==FAILED" +test_skip="==SKIP" +test_log="regress1.log" +test_suite="regress1" + +test_name="" +failed="0" +skiped="0" + +while read line +do + substring=${line#$test_pattern*} +# echo "sub>"$substring"<" + if [ "$substring" != "$line" ]; + then + if [ "$test_name" != "" ]; + then + if [ "$failed" = "1" ]; + then + echo "FAIL: $test_name" + else + echo "PASS: $test_name" + fi + fi + test_name=$substring +# echo "name>"$test_name"<" + failed="0" + fi + + if [ "${line#*$test_fail}" != "$line" ]; + then + failed="1" + fi + + if [ "${line#*$test_skip}" != "$line" ]; + then + skiped="1" + fi + +done < $test_log + +if [ "$skiped" = "1" ]; +then + echo "SKIP: $test_suite" + exit 1 +fi + + +if [ "$test_name" = "" ]; +then + echo "FAIL: $test_suite" + exit 1 +fi + +if [ "$failed" = "1" ]; +then + echo "FAIL: $test_name" +else + echo "PASS: $test_name" +fi -- cgit v1.2.3-54-g00ecf