Move ansible ad-hoc tests to integration targets.

This commit is contained in:
Matt Clay 2016-11-10 21:47:12 -08:00
parent c880c1a78d
commit c955688772
3 changed files with 17 additions and 6 deletions

View file

@ -27,7 +27,10 @@ UNAME := $(shell uname | tr '[:upper:]' '[:lower:]')
all: other non_destructive destructive all: other non_destructive destructive
other: test_test_infra parsing test_var_blending test_var_precedence unicode test_templating_settings environment test_as includes blocks pull_run pull_no_127 pull_limit_inventory check_mode test_hash test_handlers test_group_by test_vault test_tags test_lookup_paths no_log test_gathering_facts test_binary_modules_posix test_hosts_field test_lookup_properties args other: ansible test_test_infra parsing test_var_blending test_var_precedence unicode test_templating_settings environment test_as includes blocks pull_run pull_no_127 pull_limit_inventory check_mode test_hash test_handlers test_group_by test_vault test_tags test_lookup_paths no_log test_gathering_facts test_binary_modules_posix test_hosts_field test_lookup_properties args
ansible:
(cd targets/ansible && ./runme.sh $(TEST_FLAGS))
test_test_infra: test_test_infra:
(cd targets/test_infra && ./runme.sh $(TEST_FLAGS)) (cd targets/test_infra && ./runme.sh $(TEST_FLAGS))

View file

@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -eux
env
which python
python --version
which ansible
ansible --version
ansible testhost -i ../../inventory -vvv -e "ansible_python_interpreter=$(which python)" -m ping
ansible testhost -i ../../inventory -vvv -e "ansible_python_interpreter=$(which python)" -m setup

View file

@ -29,9 +29,4 @@ else
coverage_file="${coverage_dir}/nosetests-coverage.xml" coverage_file="${coverage_dir}/nosetests-coverage.xml"
TOX_TESTENV_PASSENV=NOSETESTS NOSETESTS="nosetests --with-xunit --xunit-file='${xunit_file}' --cover-xml --cover-xml-file='${coverage_file}'" tox TOX_TESTENV_PASSENV=NOSETESTS NOSETESTS="nosetests --with-xunit --xunit-file='${xunit_file}' --cover-xml --cover-xml-file='${coverage_file}'" tox
source hacking/env-setup
python --version
ansible --version
ansible -m ping localhost
fi fi