2011-03-21 15:00:30 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
vbm=VBoxManage
|
2011-03-21 16:46:15 -04:00
|
|
|
basedir=/home/harrison/ardour/3.0
|
2011-03-21 15:00:30 -04:00
|
|
|
tooldir=$basedir/tools/linux_packaging
|
|
|
|
u=harrison
|
|
|
|
p=harrison
|
|
|
|
|
2011-03-21 18:17:11 -04:00
|
|
|
for VM in Build_32bit_804s Build_64bit_804s ; do
|
2011-03-21 15:00:30 -04:00
|
|
|
$vbm startvm $VM --type headless
|
2011-03-21 16:46:15 -04:00
|
|
|
echo "$VM: Waiting for guest control to be available (12 seconds) ... "
|
2011-03-21 15:55:06 -04:00
|
|
|
sleep 12
|
2011-03-21 16:46:15 -04:00
|
|
|
echo "$VM: Running $tooldir/noderun $basedir on $VM ... "
|
|
|
|
$vbm guestcontrol exec $VM /bin/sh \
|
|
|
|
--arguments $tooldir/noderun \
|
|
|
|
--environment PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
|
|
|
|
--username $u --password $p --wait-for stdout
|
2011-03-21 15:00:30 -04:00
|
|
|
status=$?
|
|
|
|
$vbm controlvm $VM savestate
|
2011-03-21 16:46:15 -04:00
|
|
|
if [ $status -ne 0 ] ; then
|
|
|
|
echo "Build failed while in VM $VM"
|
|
|
|
break
|
|
|
|
fi
|
2011-03-21 15:00:30 -04:00
|
|
|
done
|