Mercurial > hg > aboriginal
comparison more/smoketest-report.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 | |
children | 58bd855892c3 |
comparison
equal
deleted
inserted
replaced
1408:096ac2dfb9bd | 1409:8d0567d46cd7 |
---|---|
1 #!/bin/bash | |
2 | |
3 . sources/utility_functions.sh || exit 1 | |
4 | |
5 # Test all architctures to see whether or not they can compile and run | |
6 # the included "hello world" program. | |
7 | |
8 echo "Architecture,Smoketest,Control Image,Build Stage" | |
9 | |
10 for i in $(ls sources/targets | sed 's@.*/@@') | |
11 do | |
12 [ ! -f "sources/targets/$i" ] && continue | |
13 | |
14 echo -n "$i," | |
15 | |
16 grep -q 'Hello world!' build/logs/smoketest-$i.txt 2>/dev/null && | |
17 echo -n "PASS," || echo -n "FAIL," | |
18 | |
19 [ -e "build/native-static/dropbearmulti-$i" ] && | |
20 echo -n "PASS," || echo -n "FAIL," | |
21 | |
22 echo $( | |
23 sed -n 's/^=== \([^(]*\)([^ ]* \(.*\))/\2 \1/p' \ | |
24 build/logs/build-$i.txt | tail -n 1 ) | |
25 done |