annotate more/smoketest-report.sh @ 1737:1acbe7e78d9d draft

Switch from bz2 to gz tarball output. bz2 is slowly being replaced by lz variants, but gzip isn't going anywhere. (It retains a niche as a streaming protocol, it's the 80/20 solution optimizing for speed, low memory requirements, and simple compressor implementation.)
author Rob Landley <rob@landley.net>
date Fri, 20 Feb 2015 13:12:45 -0600
parents 58bd855892c3
children
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
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