-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |