summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/ansible-test-docker/collection-tests/docker.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/ansible-test-docker/collection-tests/docker.sh')
-rwxr-xr-xtest/integration/targets/ansible-test-docker/collection-tests/docker.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/integration/targets/ansible-test-docker/collection-tests/docker.sh b/test/integration/targets/ansible-test-docker/collection-tests/docker.sh
new file mode 100755
index 00000000..e0e34290
--- /dev/null
+++ b/test/integration/targets/ansible-test-docker/collection-tests/docker.sh
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+
+set -eux -o pipefail
+
+cp -a "${TEST_DIR}/ansible_collections" "${WORK_DIR}"
+cd "${WORK_DIR}/ansible_collections/ns/col"
+
+# common args for all tests
+# because we are running in shippable/generic/ we are already in the default docker container
+common=(--python "${ANSIBLE_TEST_PYTHON_VERSION}" --color --truncate 0 "${@}")
+
+# prime the venv to work around issue with PyYAML detection in ansible-test
+ansible-test sanity "${common[@]}" --test ignores
+
+# tests
+ansible-test sanity "${common[@]}"
+ansible-test units "${common[@]}"
+ansible-test integration "${common[@]}"