Skip to content

Commit

Permalink
tests/lxd-vm: add test for lxd-vm backend
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Borzecki <[email protected]>
  • Loading branch information
bboozzoo committed Mar 27, 2024
1 parent f0264b6 commit 11aef7b
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/lxd-vm/checks/main/task.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
summary: Ensure it works.

execute: |
echo WORKS
15 changes: 15 additions & 0 deletions tests/lxd-vm/spread.yaml
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
16 changes: 16 additions & 0 deletions tests/lxd-vm/task.yaml
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

0 comments on commit 11aef7b

Please sign in to comment.