# HG changeset patch # User Rob Landley # Date 1245803904 18000 # Node ID 75835debe6b53d1d6ae52e4c97a7d8195bbcbe0c # Parent a179f03cb825eca9225c67f7760a60d328ccb905 Add --logs option to smoketest-all.sh to read existing logs from buildall.sh. diff -r a179f03cb825 -r 75835debe6b5 smoketest-all.sh --- a/smoketest-all.sh Tue Jun 23 19:30:09 2009 -0500 +++ b/smoketest-all.sh Tue Jun 23 19:38:24 2009 -0500 @@ -1,5 +1,18 @@ #!/bin/bash +if [ "$1" == "--logs" ] +then + for i in build/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 + # Test all targets to see whether or not they can compile and run "hello world" ls -pd build/system-image-* | sed -n 's@.*/system-image-\(.*\)/@\1@p' | while read i