comparison smoketest.sh @ 779:6caf372a8b12

Teach smoketest to skip creation of hdb for /home when not needed.
author Rob Landley <rob@landley.net>
date Fri, 03 Jul 2009 19:46:48 -0500
parents e373d2b6d0b8
children 2ca7ea5d3ec1
comparison
equal deleted inserted replaced
778:e373d2b6d0b8 779:6caf372a8b12
7 7
8 # Set up a timeout. If it doesn't complete in 60 seconds, it failed. 8 # Set up a timeout. If it doesn't complete in 60 seconds, it failed.
9 9
10 timeout() 10 timeout()
11 { 11 {
12 sleep 45 12 sleep 60
13 kill $1 13 kill $1
14 } 14 }
15 15
16 timeout $$ & 16 timeout $$ &
17 trap "killtree $$" EXIT 17 trap "killtree $$" EXIT
25 # much got eaten, generally about 3 characters. 25 # much got eaten, generally about 3 characters.
26 26
27 # If you cat your own script into emulator-build.sh, you probably also need 27 # If you cat your own script into emulator-build.sh, you probably also need
28 # to start with a line of spaces like that. Just FYI. 28 # to start with a line of spaces like that. Just FYI.
29 29
30 ./run-from-build.sh $1 << 'EOF' 30 SKIP_HOME=1 ./run-from-build.sh $1 << 'EOF'
31 # 31 #
32 # Show free space 32 # Show free space
33 df 33 df
34 # Smoke test for the compiler 34 # Smoke test for the compiler
35 gcc -s /usr/src/thread-hello2.c -lpthread -o /tmp/hello && 35 gcc -s /usr/src/thread-hello2.c -lpthread -o /tmp/hello &&