re-import sources as agreed with the maintainer
This commit is contained in:
parent
12c160c51b
commit
39509a09dc
52
tests/tests.yml
Normal file
52
tests/tests.yml
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
---
|
||||||
|
- hosts: localhost
|
||||||
|
roles:
|
||||||
|
- role: standard-test-source
|
||||||
|
tags:
|
||||||
|
- classic
|
||||||
|
- role: standard-test-basic
|
||||||
|
tags:
|
||||||
|
- classic
|
||||||
|
tests:
|
||||||
|
- testsuite_pre:
|
||||||
|
dir: .
|
||||||
|
# boom test suite requires LV to exist on the system. We create one in case one is not there...
|
||||||
|
run: |
|
||||||
|
set -xv;
|
||||||
|
rm -rf testsuite &>/dev/null;
|
||||||
|
if [[ ! -b /dev/boomvg/root ]]; then dd if=/dev/zero of=/dev/shm/boompv bs=1M count=128 && PV=$(losetup --show -f /dev/shm/boompv) && vgcreate boomvg $PV && lvcreate -n root -L32M boomvg; fi
|
||||||
|
- testsuite:
|
||||||
|
# to run the testsuite against installed python modules, we should run
|
||||||
|
# outside of source directory. Let's copy tests into new directory...
|
||||||
|
dir: .
|
||||||
|
run: |
|
||||||
|
set -xv;
|
||||||
|
mkdir testsuite && cd testsuite && cp -R ../source/tests . && python3 -m unittest -v tests/[a-z]*.py
|
||||||
|
- cli:
|
||||||
|
dir: .
|
||||||
|
run: |
|
||||||
|
(
|
||||||
|
set -xve;
|
||||||
|
|
||||||
|
boom profile list;
|
||||||
|
boom profile create --name test --short-name test --os-version rhel8 --os-version-id rhel8 --uname-pattern el8;
|
||||||
|
boom profile list;
|
||||||
|
boom entry list;
|
||||||
|
|
||||||
|
PROFILE=$(boom profile list --name test --no-headings -o osid);
|
||||||
|
boom entry create --root-lv boomvg/root --title test --profile $PROFILE;
|
||||||
|
boom entry list;
|
||||||
|
|
||||||
|
boom entry delete --title test;
|
||||||
|
|
||||||
|
boom profile delete --name test;
|
||||||
|
)
|
||||||
|
- testsuite_post:
|
||||||
|
dir: .
|
||||||
|
run: |
|
||||||
|
set -xv;
|
||||||
|
vgremove -ff boomvg; losetup -D; rm -f /dev/shm/boompv
|
||||||
|
required_packages:
|
||||||
|
- boom-boot
|
||||||
|
- boom-boot-grub2
|
||||||
|
- lvm2
|
Loading…
Reference in New Issue
Block a user