]> git.neil.brown.name Git - LaFS.git/commitdiff
Add support for unattended testing.
authorNeilBrown <neilb@suse.de>
Thu, 3 Sep 2009 05:28:21 +0000 (15:28 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 3 Sep 2009 05:28:21 +0000 (15:28 +1000)
Make sure the qemu exits when a test completes, and always
capture the kernel output.

Makefile
test/go
test/runtty

index 85e307c940e5510dfef3c93a92408020089d2f13..1c3f1220bbe59ff6327f283e7e701ff9eeda5df4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,7 @@ modules ::
 
 test: all
        cp ../code2/fred.safe ../code2/fred
-       sh test/runtty
+       sh test/runtty 2>&1 | tee /tmp/log
        reset
 
 endif
diff --git a/test/go b/test/go
index 4021ff17b356601fff27adba605c4d2a16bfc1fb..edbed1f50ef42e98884ac7c76624659aa28472ae 100644 (file)
--- a/test/go
+++ b/test/go
@@ -192,3 +192,4 @@ df
 
 cd /
 umount /mnt/1
+echo b > /proc/sysrq-trigger
index 8cdf5bc0e460d9133f9def0c343985c701fa11d9..4d7490bd3c5ba833282cd39c6e9270ab7d1fbfda 100644 (file)
@@ -12,6 +12,7 @@ set -e
 rm -f /tmp/tftp
 ln -s $dir /tmp/tftp
 qemu -hda hda -hdb $dir/../../code2/fred -hdc $dir/../../code2/frog \
+  -no-reboot \
   -net nic,model=ne2k_pci -net user \
   -m 256 -serial stdio \
   -kernel /home/src/lafs-2.6.27/arch/i386/boot/bzImage \