diff 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
line wrap: on
line diff
--- a/more/smoketest.sh	Sat Aug 24 05:43:29 2013 -0500
+++ b/more/smoketest.sh	Sat Aug 24 05:51:12 2013 -0500
@@ -11,13 +11,15 @@
 # If you cat your own script into emulator-build.sh, you probably also need
 # to start with a line of spaces like that.  Just FYI.
 
-more/timeout.sh 60 more/run-emulator-from-build.sh "$1" << 'EOF'
-          #
-# Show free space
-df
-# Smoke test for the compiler
-gcc -s /usr/src/thread-hello2.c -lpthread -o /tmp/hello &&
-/tmp/hello
-sync
-exit
-EOF
+sayhello()
+{
+  sleep 10
+  echo df
+  sleep 1
+  echo gcc -s /usr/src/thread-hello2.c -lpthread -o /tmp/hello
+  sleep 5
+  echo /tmp/hello
+  sleep 1
+  echo exit
+}
+sayhello | more/timeout.sh 60 more/run-emulator-from-build.sh "$1"