-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/lxd-vm: add test for lxd-vm backend
Signed-off-by: Maciej Borzecki <[email protected]>
- Loading branch information
Showing
3 changed files
with
35 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,4 @@ | ||
summary: Ensure it works. | ||
|
||
execute: | | ||
echo WORKS |
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,15 @@ | ||
project: spread | ||
|
||
backends: | ||
lxd-vm: | ||
systems: | ||
- ubuntu-20.04 | ||
|
||
path: /home/test | ||
|
||
suites: | ||
checks/: | ||
summary: Verification tasks. | ||
|
||
|
||
# vim:ts=4:sw=4:et |
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,16 @@ | ||
summary: Test the lxd backend. | ||
|
||
prepare: | | ||
if [ ! -f .spread-reuse.yaml ]; then | ||
touch /run/spread-reuse.yaml | ||
ln -s /run/spread-reuse.yaml .spread-reuse.yaml | ||
fi | ||
execute: | | ||
spread -vv -reuse -resend &> task.out | ||
grep 'lxd-vm:ubuntu-20.04:checks/main' task.out | ||
grep '^WORKS$' task.out | ||
debug: | | ||
cat task.out || true |