changeset 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 7f0e808e3be0
files run-from-build.sh smoketest.sh
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/run-from-build.sh	Fri Jul 03 05:29:11 2009 -0500
+++ b/run-from-build.sh	Fri Jul 03 19:46:48 2009 -0500
@@ -14,6 +14,8 @@
 
 cd "$SYSDIR" || exit 1
 
+[ -z "$SKIP_HOME" ] && [ -z "$MAKE_HDB" ] && MAKE_HDB="--make-hdb 2048"
+
 # A little paranoia.
 [ -f "image-${ARCH}.ext2" ] && fsck.ext2 -y "image-${ARCH}.ext2" </dev/null
 
@@ -21,5 +23,5 @@
 
 trap "killtree $$" EXIT
 
-./run-emulator.sh --make-hdb 2048 --memory 256 --with-distcc \
+./run-emulator.sh $MAKE_HDB --memory 256 --with-distcc \
 	"${BUILD}/cross-compiler-${ARCH}"
--- a/smoketest.sh	Fri Jul 03 05:29:11 2009 -0500
+++ b/smoketest.sh	Fri Jul 03 19:46:48 2009 -0500
@@ -9,7 +9,7 @@
 
 timeout()
 {
-  sleep 45
+  sleep 60
   kill $1
 }
 
@@ -27,7 +27,7 @@
 # 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.
 
-./run-from-build.sh $1 << 'EOF'
+SKIP_HOME=1 ./run-from-build.sh $1 << 'EOF'
           #
 # Show free space
 df