automated build stuff continues
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 21 Mar 2011 20:46:15 +0000 (20:46 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 21 Mar 2011 20:46:15 +0000 (20:46 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@9180 d708f5d6-7413-0410-9779-e7cbd77b26cf

tools/linux_packaging/noderun
tools/linux_packaging/run

index 6aeeaa583a6e2851a8fa79ff17e002a62917523b..99eeb04d01f7330dce95138d94affe0c2a25e007 100644 (file)
@@ -6,8 +6,6 @@ if [ x$BASE = "x" ] ; then
    exit 1
 fi
 
-echo "Hello, world!"
-
 cd $BASE || exit 1
 svn update || exit 1
 ./waf configure --strict --noconfirm || exit 1
index 2f3b1587c820e9b6306be5407cce9cea4e730555..c6951e503198652c88e27b5bd0e1f553d01cee58 100644 (file)
@@ -1,17 +1,26 @@
 #!/bin/sh
 
 vbm=VBoxManage
-basedir=/home/harrison/ardour/3.0/tools/linux_packaging
+basedir=/home/harrison/ardour/3.0
 tooldir=$basedir/tools/linux_packaging
 u=harrison
 p=harrison
 
-for VM in Build_64bit_804s ; do
+for VM in Build_32bit_804s ; do
     $vbm startvm $VM --type headless
-    echo "Waiting for guest control to be available (12 seconds) ... "
+    echo "$VM: Waiting for guest control to be available (12 seconds) ... "
     sleep 12
-    echo "Running $tooldir/noderun $basedir on $VM ... "
-    $vbm guestcontrol exec $VM /bin/sh --arguments $tooldir/noderun --arguments $basedir --username $u --password $p --wait-for stdout
+    echo "$VM: Running $tooldir/noderun $basedir on $VM ... "
+    $vbm guestcontrol exec $VM /bin/sh \
+             --arguments -vx \
+             --arguments $tooldir/noderun \
+             --arguments $basedir \
+             --environment PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
+             --username $u --password $p --wait-for stdout
     status=$?
     $vbm controlvm $VM savestate
+    if [ $status -ne 0 ] ; then
+        echo "Build failed while in VM $VM"
+        break
+    fi
 done