diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 13:48:23 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 13:48:23 +0200 |
commit | 1b6242fc583a6b871304fb995af6dc211b58f69b (patch) | |
tree | b5d434d90dedae24792906aa304897c23a134386 /recipes-core/numactl/numactl-2.0.9/regress1-parser | |
download | meta-ip-daisy-enea.tar.gz |
initial commit for Enea Linux 4.0daisy-enea
Migrated from the internal git server on the daisy-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'recipes-core/numactl/numactl-2.0.9/regress1-parser')
-rwxr-xr-x | recipes-core/numactl/numactl-2.0.9/regress1-parser | 63 |
1 files changed, 63 insertions, 0 deletions
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 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | test_pattern="=>testing " | ||
4 | test_fail="==FAILED" | ||
5 | test_skip="==SKIP" | ||
6 | test_log="regress1.log" | ||
7 | test_suite="regress1" | ||
8 | |||
9 | test_name="" | ||
10 | failed="0" | ||
11 | skiped="0" | ||
12 | |||
13 | while read line | ||
14 | do | ||
15 | substring=${line#$test_pattern*} | ||
16 | # echo "sub>"$substring"<" | ||
17 | if [ "$substring" != "$line" ]; | ||
18 | then | ||
19 | if [ "$test_name" != "" ]; | ||
20 | then | ||
21 | if [ "$failed" = "1" ]; | ||
22 | then | ||
23 | echo "FAIL: $test_name" | ||
24 | else | ||
25 | echo "PASS: $test_name" | ||
26 | fi | ||
27 | fi | ||
28 | test_name=$substring | ||
29 | # echo "name>"$test_name"<" | ||
30 | failed="0" | ||
31 | fi | ||
32 | |||
33 | if [ "${line#*$test_fail}" != "$line" ]; | ||
34 | then | ||
35 | failed="1" | ||
36 | fi | ||
37 | |||
38 | if [ "${line#*$test_skip}" != "$line" ]; | ||
39 | then | ||
40 | skiped="1" | ||
41 | fi | ||
42 | |||
43 | done < $test_log | ||
44 | |||
45 | if [ "$skiped" = "1" ]; | ||
46 | then | ||
47 | echo "SKIP: $test_suite" | ||
48 | exit 1 | ||
49 | fi | ||
50 | |||
51 | |||
52 | if [ "$test_name" = "" ]; | ||
53 | then | ||
54 | echo "FAIL: $test_suite" | ||
55 | exit 1 | ||
56 | fi | ||
57 | |||
58 | if [ "$failed" = "1" ]; | ||
59 | then | ||
60 | echo "FAIL: $test_name" | ||
61 | else | ||
62 | echo "PASS: $test_name" | ||
63 | fi | ||