r2787 - people/bmsleight/autotesting
bmsleight-guest at alioth.debian.org
bmsleight-guest at alioth.debian.org
Mon Aug 20 21:20:16 UTC 2007
Author: bmsleight-guest
Date: 2007-08-20 21:20:15 +0000 (Mon, 20 Aug 2007)
New Revision: 2787
Modified:
people/bmsleight/autotesting/video-qemu-booting-iso.sh
Log:
Adding support for AutoTesting .img builds
Modified: people/bmsleight/autotesting/video-qemu-booting-iso.sh
===================================================================
--- people/bmsleight/autotesting/video-qemu-booting-iso.sh 2007-08-20 14:11:44 UTC (rev 2786)
+++ people/bmsleight/autotesting/video-qemu-booting-iso.sh 2007-08-20 21:20:15 UTC (rev 2787)
@@ -123,7 +123,14 @@
{
export DISPLAY=$VNSERVER_QEMU
echo "Starting qemu, within Display $VNSERVER_QEMU"
-$QEMU_BIN -full-screen -cdrom $ISO -monitor telnet:$IPADDRESS:$QEMU_MONITOR_PORT,server,nowait &
+IMAGE_TYPE=$(echo "$ISO" | sed -e 's/.*[.]//g')
+if [ "$IMAGE_TYPE" = "img" ]
+then
+ QEMU_OPTS="-hda"
+else
+ QEMU_OPTS="-cdrom"
+fi
+$QEMU_BIN -full-screen $QEMU_OPTS $ISO -monitor telnet:$IPADDRESS:$QEMU_MONITOR_PORT,server,nowait &
sleep 3
i=1
REACHED_LAST_KB=""
@@ -203,8 +210,8 @@
echo
echo " It is worth noting that this script takes a long time to run and heavy usage of CPU."
echo " There is heavy usage of the qemu, imagemagik tools. "
- echo " For every second of running qemu the script it can take up to 12s to compile the video."
- echo " For example using -t 300 will about one hour."
+ echo " For every second of running qemu the script it can take up to 3s to compile the video."
+ echo " For example using -t 1200 will about one hour."
echo
echo " Minimum geometry for qemu -g 1024x768"
echo
More information about the debian-live-changes
mailing list