Mercurial > hg > aboriginal
annotate more/smoketest-report.sh @ 1464:58bd855892c3
Fix smoketest to look for static-tools output in the new place.
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 24 Oct 2011 22:59:30 -0500 |
parents | 8d0567d46cd7 |
children |
rev | line source |
---|---|
1409
8d0567d46cd7
Create smoketest-report.sh producing CSV with more info.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
1 #!/bin/bash |
8d0567d46cd7
Create smoketest-report.sh producing CSV with more info.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
2 |
8d0567d46cd7
Create smoketest-report.sh producing CSV with more info.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
3 . sources/utility_functions.sh || exit 1 |
8d0567d46cd7
Create smoketest-report.sh producing CSV with more info.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
4 |
8d0567d46cd7
Create smoketest-report.sh producing CSV with more info.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
5 # Test all architctures to see whether or not they can compile and run |
8d0567d46cd7
Create smoketest-report.sh producing CSV with more info.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
6 # the included "hello world" program. |
8d0567d46cd7
Create smoketest-report.sh producing CSV with more info.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
7 |
8d0567d46cd7
Create smoketest-report.sh producing CSV with more info.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
8 echo "Architecture,Smoketest,Control Image,Build Stage" |
8d0567d46cd7
Create smoketest-report.sh producing CSV with more info.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
9 |
8d0567d46cd7
Create smoketest-report.sh producing CSV with more info.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
10 for i in $(ls sources/targets | sed 's@.*/@@') |
8d0567d46cd7
Create smoketest-report.sh producing CSV with more info.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
11 do |
8d0567d46cd7
Create smoketest-report.sh producing CSV with more info.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
12 [ ! -f "sources/targets/$i" ] && continue |
8d0567d46cd7
Create smoketest-report.sh producing CSV with more info.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
13 |
8d0567d46cd7
Create smoketest-report.sh producing CSV with more info.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
14 echo -n "$i," |
8d0567d46cd7
Create smoketest-report.sh producing CSV with more info.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
15 |
8d0567d46cd7
Create smoketest-report.sh producing CSV with more info.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
16 grep -q 'Hello world!' build/logs/smoketest-$i.txt 2>/dev/null && |
8d0567d46cd7
Create smoketest-report.sh producing CSV with more info.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
17 echo -n "PASS," || echo -n "FAIL," |
8d0567d46cd7
Create smoketest-report.sh producing CSV with more info.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
18 |
1464
58bd855892c3
Fix smoketest to look for static-tools output in the new place.
Rob Landley <rob@landley.net>
parents:
1409
diff
changeset
|
19 [ -e "build/dropbearmulti-$i" ] && |
1409
8d0567d46cd7
Create smoketest-report.sh producing CSV with more info.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
20 echo -n "PASS," || echo -n "FAIL," |
8d0567d46cd7
Create smoketest-report.sh producing CSV with more info.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
21 |
8d0567d46cd7
Create smoketest-report.sh producing CSV with more info.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
22 echo $( |
8d0567d46cd7
Create smoketest-report.sh producing CSV with more info.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
23 sed -n 's/^=== \([^(]*\)([^ ]* \(.*\))/\2 \1/p' \ |
8d0567d46cd7
Create smoketest-report.sh producing CSV with more info.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
24 build/logs/build-$i.txt | tail -n 1 ) |
8d0567d46cd7
Create smoketest-report.sh producing CSV with more info.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
25 done |