SF.net SVN: morphix: [2550] trunk/mmaker/utils/auto-testing/ video-qemu-booting-iso.sh
[email protected] Mon, 30 Jul 2007 14:40:57 -0700
| Newsgroups | gmane.linux.morphix.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 2550
http://morphix.svn.sourceforge.net/morphix/?rev=2550&view=rev
Author: bmsleight
Date: 2007-07-30 14:40:54 -0700 (Mon, 30 Jul 2007)
Log Message:
-----------
Minor update
Modified Paths:
--------------
trunk/mmaker/utils/auto-testing/video-qemu-booting-iso.sh
Modified: trunk/mmaker/utils/auto-testing/video-qemu-booting-iso.sh
===================================================================
--- trunk/mmaker/utils/auto-testing/video-qemu-booting-iso.sh 2007-07-30 16:47:02 UTC (rev 2549)
+++ trunk/mmaker/utils/auto-testing/video-qemu-booting-iso.sh 2007-07-30 21:40:54 UTC (rev 2550)
@@ -44,7 +44,7 @@
OLD_DISPLAY="$DISPLAY"
TODAY=$(date +"%F")
TMP_DIR=/tmp/vqbi.$$.tmp
-IPADDRESS=$(sudo ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}')
+IPADDRESS="127.0.0.1"
VNCREC_MOVIE_FRAMERATE=1
}
@@ -104,11 +104,11 @@
start_vnc_sessions ()
{
-vncserver -depth 24 -pixelformat rgb888 -cc 4 -nocursor -geometry $GEOMETRY >$TMP_DIR/vncserver.txt 2>&1
+vncserver -depth 24 -pixelformat rgb888 -cc 4 -nocursor -geometry $GEOMETRY >$TMP_DIR/vncserver.txt 2>&1
VNSERVER_QEMU=$(cat $TMP_DIR/vncserver.txt | grep 'New' | awk '{ print $5}' )
VNCSERVER_QMEU_NUMBER=$(cat $TMP_DIR/vncserver.txt | grep 'New' | cut -d: -f2)
echo "Launched vncserver $VNSERVER_QEMU"
-vncserver -depth 24 -pixelformat rgb888 -cc 4 -nocursor -geometry 1600x1200 >$TMP_DIR/vncserver.txt 2>&1
+vncserver -depth 24 -pixelformat rgb888 -cc 4 -nocursor -geometry 1600x1200 >$TMP_DIR/vncserver.txt 2>&1
VNSERVER_VNCREC=$(cat $TMP_DIR/vncserver.txt | grep 'New' | awk '{ print $5}' )
VNCSERVER_VNCREC_NUMBER=$(cat $TMP_DIR/vncserver.txt | grep 'New' | cut -d: -f2)
echo "Launched vncserver $VNSERVER_VNCREC"
@@ -125,7 +125,7 @@
start_qemu ()
{
export DISPLAY=$VNSERVER_QEMU
-echo "Starting qemu, within Dispaly $VNSERVER_QEMU"
+echo "Starting qemu, within Display $VNSERVER_QEMU"
$QEMU_BIN -no-kqemu -full-screen -cdrom $ISO -monitor telnet:$IPADDRESS:$QEMU_MONITOR_PORT,server,nowait &
sleep 3
i=1
@@ -169,7 +169,7 @@
{
convert $LOGO -resize 200x200 -negate -gravity South -background Black -font Helvetica-Bold -fill white -splice 0x36 -pointsize 25 -draw "text 0,0 'AutoTesting'" -transparent black $TMP_DIR/minilogo.png
convert $TMP_DIR/minilogo.png -fill grey50 -colorize 40 $TMP_DIR/minilogo.png
-VNCREC_MOVIE_CMD='convert xpm:- '$TMP_DIR'/image-%05d.jpg'
+VNCREC_MOVIE_CMD="convert xpm:- $TMP_DIR/image-%05d.jpg"
export VNCREC_MOVIE_CMD
vncrec -movie $TMP_DIR/qemu.1.vnc
for i in $TMP_DIR/image-*.jpg
@@ -184,7 +184,7 @@
}
-make_video ()
+gen_video ()
{
##Following is ideal - does not work
#mkfifo -m 660 $TMP_DIR/stream.yuv
@@ -238,7 +238,6 @@
echo " Minimum geometry for qemu -g 1024x768"
echo
echo " Launches a couple of vncserver session, kills other vncrec and qemu sessions running."
- echo " Requires sudo ifconfig"
exit
fi
@@ -255,6 +254,6 @@
let_qemu_run
stop_qemu
export_frames
-make_video
+gen_video
stop_vncservers
clean_up
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/