Mercurial > hg > aboriginal
changeset 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 | 096ac2dfb9bd |
children | 7373c4c7ecee |
files | more/buildall.sh more/smoketest-all.sh more/smoketest-report.sh |
diffstat | 3 files changed, 26 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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:"
--- /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