# HG changeset patch # User Rob Landley # Date 1309873199 18000 # Node ID 8d0567d46cd7dff1a9c9ca01da981a6ec41dd369 # Parent 096ac2dfb9bd95e60aabdbb6968f84bd8735467b Create smoketest-report.sh producing CSV with more info. diff -r 096ac2dfb9bd -r 8d0567d46cd7 more/buildall.sh --- a/more/buildall.sh Sun Jul 03 13:09:48 2011 -0500 +++ b/more/buildall.sh Tue Jul 05 08:39:59 2011 -0500 @@ -67,4 +67,4 @@ # Create a file containing simple pass/fail results for all architectures. -more/smoketest-all.sh --logs | tee build/logs/status.txt +more/smoketest-report.sh | tee build/logs/status.txt diff -r 096ac2dfb9bd -r 8d0567d46cd7 more/smoketest-all.sh --- a/more/smoketest-all.sh Sun Jul 03 13:09:48 2011 -0500 +++ b/more/smoketest-all.sh Tue Jul 05 08:39:59 2011 -0500 @@ -6,19 +6,6 @@ . sources/utility_functions.sh || exit 1 -if [ "$1" == "--logs" ] -then - for i in build/logs/smoketest-*.txt - do - NAME="$(echo $i | sed 's/.*smoketest-\(.*\)\.txt/\1/')" - echo -n "Testing $NAME:" - RESULT="$(grep 'Hello world!' "$i")" - [ -z "$RESULT" ] && echo "FAIL" || echo "PASS" - done - - exit -fi - function dotest() { [ -z "$FORK" ] && echo -n "Testing $1:" diff -r 096ac2dfb9bd -r 8d0567d46cd7 more/smoketest-report.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/more/smoketest-report.sh Tue Jul 05 08:39:59 2011 -0500 @@ -0,0 +1,25 @@ +#!/bin/bash + +. sources/utility_functions.sh || exit 1 + +# Test all architctures to see whether or not they can compile and run +# the included "hello world" program. + +echo "Architecture,Smoketest,Control Image,Build Stage" + +for i in $(ls sources/targets | sed 's@.*/@@') +do + [ ! -f "sources/targets/$i" ] && continue + + echo -n "$i," + + grep -q 'Hello world!' build/logs/smoketest-$i.txt 2>/dev/null && + echo -n "PASS," || echo -n "FAIL," + + [ -e "build/native-static/dropbearmulti-$i" ] && + echo -n "PASS," || echo -n "FAIL," + + echo $( + sed -n 's/^=== \([^(]*\)([^ ]* \(.*\))/\2 \1/p' \ + build/logs/build-$i.txt | tail -n 1 ) +done