Revision: 2225
Author: bmsleight
Date: 2006-05-15 13:23:33 -0700 (Mon, 15 May 2006)
ViewCVS: http://svn.sourceforge.net/morphix/?rev=2225&view=rev
Log Message:
-----------
using jpg not png, less cpu load - thanks Thanatermesis
Modified Paths:
--------------
trunk/mmaker/utils/auto-testing/auto_testing.sh
Modified: trunk/mmaker/utils/auto-testing/auto_testing.sh
===================================================================
--- trunk/mmaker/utils/auto-testing/auto_testing.sh 2006-05-15 13:30:17 UTC (rev 2224)
+++ trunk/mmaker/utils/auto-testing/auto_testing.sh 2006-05-15 20:23:33 UTC (rev 2225)
@@ -44,13 +44,19 @@
#rootwindow=$(cat $TMP_D/xwid)
while [ $l -lt $FRAMES ]
do
- convert=$DUMPS$l'.miff'
-# xwd -silent -root -screen -id $xwid -out $TMP_D/dump.x
-# xwd -id $rootwindow -out $DUMPS.x
+ if [ "$l" -lt "10" ]
+ then
+ convert=$DUMPS'00'$l'.miff'
+ elif [ "$l" -lt "100" ]
+ then
+ convert=$DUMPS'0'$l'.miff'
+ else
+ convert=$DUMPS$l'.miff'
+ fi
import -window root $convert
# sleep 0.5
l=$(expr $l + 1)
- echo "Frame " $l " at " $(date +"%F_%H:%M:%S.%N")
+ echo "Frame " $convert " at " $(date +"%F_%H:%M:%S.%N")
done
kill_pid=$(cat $TMP_D/qemu.pid)
@@ -61,7 +67,15 @@
l=16
while [ $l -lt $FRAMES ]
do
- convert=$DUMPS$l'.miff'
+ if [ "$l" -lt "10" ]
+ then
+ convert=$DUMPS'00'$l'.miff'
+ elif [ "$l" -lt "100" ]
+ then
+ convert=$DUMPS'0'$l'.miff'
+ else
+ convert=$DUMPS$l'.miff'
+ fi
echo "Converting $convert -> $convert.jpg"
convert $convert -resize 800x600 $convert.jpg
rm $convert
@@ -72,17 +86,20 @@
title="Autotesting using Qemu"
text=" $ISO \n \n The iso has been ammended to help debugging \n Added the bootoptions splash=n debugmorphix=y \n Also added a mini-module Morphix-Mini-Debug-Auto-Testing.mod \n This mini-module prints out debug information to the screen \n of course the iso does not normally contain this minimodule \n or display this information. \n \n $COMMENTS"
convert -size 600x440 xc:white -pointsize 25 -fill darkblue -annotate 0x0+250+75 "$title" -pointsize 16 -fill blue -annotate 0x0+50+200 "$text" -append $LOGO -bordercolor darkblue -border 20x20 -flatten "$DUMPS"0.jpg
+convert "$DUMPS"0.jpg -resize 800x600 "$DUMPS"1.jpg
+mv "$DUMPS"1.jpg "$DUMPS"0.jpg
l=1
-while [ $l -lt 9 ]
-do
- convert=$DUMPS'0'$l'.miff.jpg'
- cp "$DUMPS"0.jpg $convert
- l=$(expr $l + 1)
-done
-l=10
while [ $l -lt 16 ]
do
- convert=$DUMPS$l'.miff.jpg'
+ if [ "$l" -lt "10" ]
+ then
+ convert=$DUMPS'00'$l'.miff.jpg'
+ elif [ "$l" -lt "100" ]
+ then
+ convert=$DUMPS'0'$l'.miff.jpg'
+ else
+ convert=$DUMPS$l'.miff.jpg'
+ fi
cp "$DUMPS"0.jpg $convert
l=$(expr $l + 1)
done
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.