mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-03 17:23:09 +00:00
Convert test system to use Make
This commit is contained in:
4
tests_new/integration/Makefile
Normal file
4
tests_new/integration/Makefile
Normal file
@@ -0,0 +1,4 @@
|
||||
all: non_destructive destructive # amazon rackspace
|
||||
|
||||
non_destructive:
|
||||
ansible-playbook non_destructive.yml -i inventory -e @integration_config.yml -v $(TEST_FLAGS)
|
||||
@@ -30,18 +30,19 @@ outside of those test subdirectories. They will also not reconfigure or bounce
|
||||
|
||||
Run as follows:
|
||||
|
||||
# sh test.sh # OR
|
||||
# ansible-playbook non_destructive.yml -i inventory -e @integration_config.yml -v $*
|
||||
make non_destructive
|
||||
|
||||
You can select specific tests with the --tags parameter.
|
||||
|
||||
TEST_FLAGS="--tags test_vars_blending" make
|
||||
|
||||
Destructive Tests
|
||||
=================
|
||||
|
||||
These tests are allowed to install and remove some trivial packages. You will likely want to devote these
|
||||
to a virtual environment. They won't reformat your filesystem, however :)
|
||||
|
||||
# ansible-playbook destructive.yml -i inventory -e @integration_config.yml -v $*
|
||||
make destructive
|
||||
|
||||
Cloud Tests
|
||||
===========
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
ansible-playbook non_destructive.yml -i inventory -e @integration_config.yml -v $*
|
||||
Reference in New Issue
Block a user