summaryrefslogtreecommitdiff
path: root/tools/linux_packaging/run
blob: c6951e503198652c88e27b5bd0e1f553d01cee58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

vbm=VBoxManage
basedir=/home/harrison/ardour/3.0
tooldir=$basedir/tools/linux_packaging
u=harrison
p=harrison

for VM in Build_32bit_804s ; do
    $vbm startvm $VM --type headless
    echo "$VM: Waiting for guest control to be available (12 seconds) ... "
    sleep 12
    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