Revision: 2192
Author: bmsleight
Date: 2006-04-01 02:26:11 -0800 (Sat, 01 Apr 2006)
ViewCVS: http://svn.sourceforge.net/morphix/?rev=2192&view=rev
Log Message:
-----------
autotesting, only rsync today's builds, add some message for the log files, tidy-up
Modified Paths:
--------------
trunk/mmaker/utils/auto-testing/run_testing.sh
Modified: trunk/mmaker/utils/auto-testing/run_testing.sh
===================================================================
--- trunk/mmaker/utils/auto-testing/run_testing.sh 2006-03-30 21:06:09 UTC (rev 2191)
+++ trunk/mmaker/utils/auto-testing/run_testing.sh 2006-04-01 10:26:11 UTC (rev 2192)
@@ -28,6 +28,8 @@
VID_DIR=/home/morph/videos/
LOG_FILE=/home/morph/log/autotesting.log
LOG_FILE_BN=$(basename $LOG_FILE)
+DIVIDER="######################################################"
+TITLED="------------------------------------------------------- "
mkdir $TMP_ISO_DIR 2>/dev/null
mkdir $VID_DIR 2>/dev/null
@@ -35,19 +37,33 @@
export DISPLAY=:0.0
#Get Autobuilds from Morphix.org
-rsync -avz --delete-before -e ssh morphix-FLx77brhBubMZ2x0e22RKNi2O/[email protected]:morphixorg/autobuilds/ /home/morph/autobuilds/
+echo $DIVIDER
+echo "Getting AutoBuilds from Morphix.org"
+echo $TITLED
+TODAY=$(date +"%F")
+find /home/morph/autobuilds/mainmod/sarge/ -not -type d -mtime +1 -print0 | xargs --null --no-run-if-empty sudo rm -f
+find /home/morph/autobuilds/mainmod/sid/ -not -type d -mtime +1 -print0 | xargs --null --no-run-if-empty sudo rm -f
+find /home/morph/autobuilds/base/ -not -type d -mtime +1 -print0 | xargs --null --no-run-if-empty sudo rm -f
+rsync --dry-run -avz --delete-before -e ssh morphix-FLx77brhBubMZ2x0e22RKNi2O/[email protected]:morphixorg/autobuilds/base/*$TODAY* /home/morph/autobuilds/base/
+rsync --dry-run -avz --delete-before -e ssh morphix-FLx77brhBubMZ2x0e22RKNi2O/[email protected]:morphixorg/autobuilds/mainmod/sid/*$TODAY* /home/morph/autobuilds/mainmod/sid/
+rsync --dry-run -avz --delete-before -e ssh morphix-FLx77brhBubMZ2x0e22RKNi2O/[email protected]:morphixorg/autobuilds/mainmod/sarge/*$TODAY* /home/morph/autobuilds/mainmod/sarge/
+
find /home/morph/videos/ -not -type d -mtime +4 -print0 | xargs --null --no-run-if-empty sudo rm -f
#Get Autobuilds from alextreme.org
+echo $DIVIDER
+echo "Getting AutoBuilds from Alextreme.org"
+echo $TITLED
+
STORE_AT_MM="/home/morph/alextreme/mainmod"
REMOTE_AT_MM="http://www.alextreme.org/autobuilds/"
GNOME_NAME="morphix-gnome-"
KDE_NAME="morphix-kde-"
-find $STORE_AT_MM -not -type d -mtime +4 -print0 | xargs --null --no-run-if-empty sudo rm -f
-rm $STORE_AT_MM/index.html 1>/dev/null 2>&1
+find $STORE_AT_MM/ -not -type d -mtime +1 -print0 | xargs --null --no-run-if-empty sudo rm -f
+rm $STORE_AT_MM/index.html* 1>/dev/null 2>&1
wget_cl() {
- wget --tries=3 --timeout=60 --directory-prefix=$1 $2
+ wget --non-verbose --tries=3 --timeout=60 --directory-prefix=$1 $2
}
wget_cl "$STORE_AT_MM" "$REMOTE_AT_MM/"
if [ -e $STORE_AT_MM/index.html ]
@@ -72,12 +88,18 @@
#Build minimod
#/home/morph/morphix/trunk/mmaker/utils/auto-testing/build_auto_test_mini.sh
#morphmini /home/morph/morphix/trunk/mmaker/utils/auto-testing/AutoTestingMini.xml $DEBUG_MINI
-sudo morphimini /home/morph/morphix/trunk/mmaker/utils/auto-testing/AutoTestingMini.xml $DEBUG_MINI
+echo $DIVIDER
+echo "Building AutoTestingMiniModule"
+echo $TITLED
+sudo morphmini /home/morph/morphix/trunk/mmaker/utils/auto-testing/AutoTestingMini.xml $DEBUG_MINI
TODAY=$(date +"%F")
MAINMODS=$(find /home/morph/autobuilds/mainmod/ /home/morph/alextreme/mainmod/ /home/morph/local_autobuilds/builds/ -type f -name "*$TODAY*.mod" )
BASES=$(find /home/morph/autobuilds/base/ -type f -name "*$TODAY*.iso" )
echo $TODAY
+echo $DIVIDER
+echo "Looping, for each base look at the mainmods, (Requires at least one base per day)"
+echo $TITLED
for TMP_MAINMODS in $MAINMODS
do
for TMP_BASES in $BASES
@@ -104,13 +126,22 @@
then
echo $TMP_MAINMODS_BN'_'$TMP_BASES_BN.avi' file exists skipping this video'
else
+ echo $DIVIDER
+ echo "Add to base, mini and main modules"
+ echo $TITLED
sudo isomorph --add mini $DEBUG_MINI $TMP_BASES $TMP_ISO_1
sudo isomorph --add main $TMP_MAINMODS $TMP_ISO_1 $TMP_ISO_DIR/$TMP_MAINMODS_BN'_'$TMP_BASES_BN
rm $TMP_ISO_1
+ echo $DIVIDER
+ echo "Run auto_testing"
+ echo $TITLED
sudo /home/morph/morphix/trunk/mmaker/utils/auto-testing/auto_testing.sh $TMP_ISO_DIR/$TMP_MAINMODS_BN'_'$TMP_BASES_BN $VID_DIR/$TMP_MAINMODS_BN'_'$TMP_BASES_BN.avi 540
sudo rm $TMP_ISO_DIR/$TMP_MAINMODS_BN'_'$TMP_BASES_BN
echo $TMP_ISO_DIR/$TMP_MAINMODS_BN'_'$TMP_BASES_BN
gzip -c $LOG_FILE >$VID_DIR/$LOG_FILE_BN'_'$TODAY'_.gz'
+ echo $DIVIDER
+ echo "Upload"
+ echo $TITLED
rsync -avz --delete -e ssh $VID_DIR morphix-FLx77brhBubMZ2x0e22RKNi2O/[email protected]:morphixorg/autobuilds/video/
cp $VID_DIR/$TMP_MAINMODS_BN'_'$TMP_BASES_BN.avi /home/morph/autobuilds/video/
# This machine get hot - have 20 minutes to cool down
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 xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&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.