148e83f832
* Refactor ansible-test integration test. * Add env --list-files option. * Add tests for collection files tracked by git. * Fix ansible-test submodule usage on older git. * Fix submodule directory detection as files. * Improve handling of nested source control.
17 lines
501 B
Bash
Executable file
17 lines
501 B
Bash
Executable file
#!/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
|
|
common=(--venv --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[@]}"
|