comparison more/smoketest.sh @ 1621:c23377891141

Make smoketest work slightly less badly.
author Rob Landley <rob@landley.net>
date Sat, 24 Aug 2013 05:51:12 -0500
parents ce5212c0fc05
children a4823c561e28
comparison
equal deleted inserted replaced
1620:3c9b927b9da8 1621:c23377891141
9 # (The comment character is just so you can see how much got eaten.) 9 # (The comment character is just so you can see how much got eaten.)
10 10
11 # If you cat your own script into emulator-build.sh, you probably also need 11 # If you cat your own script into emulator-build.sh, you probably also need
12 # to start with a line of spaces like that. Just FYI. 12 # to start with a line of spaces like that. Just FYI.
13 13
14 more/timeout.sh 60 more/run-emulator-from-build.sh "$1" << 'EOF' 14 sayhello()
15 # 15 {
16 # Show free space 16 sleep 10
17 df 17 echo df
18 # Smoke test for the compiler 18 sleep 1
19 gcc -s /usr/src/thread-hello2.c -lpthread -o /tmp/hello && 19 echo gcc -s /usr/src/thread-hello2.c -lpthread -o /tmp/hello
20 /tmp/hello 20 sleep 5
21 sync 21 echo /tmp/hello
22 exit 22 sleep 1
23 EOF 23 echo exit
24 }
25 sayhello | more/timeout.sh 60 more/run-emulator-from-build.sh "$1"