Skip to content

Commit

Permalink
auto test ubuntu24 vm
Browse files Browse the repository at this point in the history
  • Loading branch information
mfthomps committed Jul 26, 2024
1 parent 63f42a0 commit 71626f6
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions testsets/bin/test-ubuntu24.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash
#
# Start the Ubuntu 24 smoke test with the results of the latest mkall
#
isrunning=$(./vbox-client.py "list runningvms")
echo "isrunning $isrunning"
ok=$(echo $isrunning | grep -c "LabtainerVM24-smoketest")
if [[ $ok != 0 ]]; then
echo "ERROR: Is already running: $isrunning"
exit 1
fi
vmdir="/media/sf_SEED/test_vms/ubuntu24smoke/"
if [[ "$1" != "-n" ]]; then
mkdir -p $vmdir
cp testvm-do.sh $vmdir/dothis.sh
chmod a+x $vmdir/dothis.sh
if [[ "$1" != "-t" ]]; then
branch=$(git rev-parse --abbrev-ref HEAD)
sed -i "s/REPLACE_THIS/$branch/" $vmdir/dothis.sh
else
sed -i "s/REPLACE_THIS/premaster/" $vmdir/dothis.sh
fi
else
echo "Leaving the dothis.sh file as it was."
fi
tlist="labtainer.tar labtainer-master.tar labtainer-tests.tar"
for t in $tlist; do
cp /media/sf_SEED/$t $vmdir
done

./vbox-client.py "startvm LabtainerVM24-smoketest"

0 comments on commit 71626f6

Please sign in to comment.