Mercurial > hg > aboriginal
comparison more/smoketest-all.sh @ 1409:8d0567d46cd7
Create smoketest-report.sh producing CSV with more info.
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 05 Jul 2011 08:39:59 -0500 |
parents | ce5212c0fc05 |
children | a4823c561e28 |
comparison
equal
deleted
inserted
replaced
1408:096ac2dfb9bd | 1409:8d0567d46cd7 |
---|---|
3 # Run smoketest script on every build/system-image-* architecture. | 3 # Run smoketest script on every build/system-image-* architecture. |
4 | 4 |
5 # If $FORK is set, run them in parallel. | 5 # If $FORK is set, run them in parallel. |
6 | 6 |
7 . sources/utility_functions.sh || exit 1 | 7 . sources/utility_functions.sh || exit 1 |
8 | |
9 if [ "$1" == "--logs" ] | |
10 then | |
11 for i in build/logs/smoketest-*.txt | |
12 do | |
13 NAME="$(echo $i | sed 's/.*smoketest-\(.*\)\.txt/\1/')" | |
14 echo -n "Testing $NAME:" | |
15 RESULT="$(grep 'Hello world!' "$i")" | |
16 [ -z "$RESULT" ] && echo "FAIL" || echo "PASS" | |
17 done | |
18 | |
19 exit | |
20 fi | |
21 | 8 |
22 function dotest() | 9 function dotest() |
23 { | 10 { |
24 [ -z "$FORK" ] && echo -n "Testing $1:" | 11 [ -z "$FORK" ] && echo -n "Testing $1:" |
25 [ ! -z "$VERBOSE" ] && VERBOSITY="tee >(cat >&2) |" | 12 [ ! -z "$VERBOSE" ] && VERBOSITY="tee >(cat >&2) |" |