Mercurial > hg > aboriginal
annotate smoketest-all.sh @ 740:5b063eb13fd0
Quick and dirty script to run smoketest.sh on all targets, to see if they can compile and run "hello world".
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 30 May 2009 18:21:03 -0500 |
parents | |
children | 75835debe6b5 |
rev | line source |
---|---|
740
5b063eb13fd0
Quick and dirty script to run smoketest.sh on all targets, to see if they can compile and run "hello world".
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
1 #!/bin/bash |
5b063eb13fd0
Quick and dirty script to run smoketest.sh on all targets, to see if they can compile and run "hello world".
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
2 |
5b063eb13fd0
Quick and dirty script to run smoketest.sh on all targets, to see if they can compile and run "hello world".
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
3 # Test all targets to see whether or not they can compile and run "hello world" |
5b063eb13fd0
Quick and dirty script to run smoketest.sh on all targets, to see if they can compile and run "hello world".
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
4 |
5b063eb13fd0
Quick and dirty script to run smoketest.sh on all targets, to see if they can compile and run "hello world".
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
5 ls -pd build/system-image-* | sed -n 's@.*/system-image-\(.*\)/@\1@p' | while read i |
5b063eb13fd0
Quick and dirty script to run smoketest.sh on all targets, to see if they can compile and run "hello world".
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
6 do |
5b063eb13fd0
Quick and dirty script to run smoketest.sh on all targets, to see if they can compile and run "hello world".
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
7 echo -n "Testing $i:" |
5b063eb13fd0
Quick and dirty script to run smoketest.sh on all targets, to see if they can compile and run "hello world".
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
8 RESULT="$(./smoketest.sh "$i" 2>&1 | grep 'Hello world!')" |
5b063eb13fd0
Quick and dirty script to run smoketest.sh on all targets, to see if they can compile and run "hello world".
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
9 [ -z "$RESULT" ] && echo "FAIL" || echo "PASS" |
5b063eb13fd0
Quick and dirty script to run smoketest.sh on all targets, to see if they can compile and run "hello world".
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
10 rm -f build/system-image-"$i"/hdb.img 2>/dev/null |
5b063eb13fd0
Quick and dirty script to run smoketest.sh on all targets, to see if they can compile and run "hello world".
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
11 done |