annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
8d0567d46cd7 Create smoketest-report.sh producing CSV with more info.
Rob Landley <rob@landley.net>
parents:
diff changeset
19 [ -e "build/native-static/dropbearmulti-$i" ] &&
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