5f76bd2af7
This allows collections to specify requirements and constraints for packages that ansible-test has requirements or constraints for.
20 lines
523 B
Bash
Executable file
20 lines
523 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_constraints"
|
|
|
|
# common args for all tests
|
|
# each test will be run in a separate venv to verify that requirements have been properly specified
|
|
common=(--venv --python "${ANSIBLE_TEST_PYTHON_VERSION}" --color --truncate 0 "${@}")
|
|
|
|
# unit tests
|
|
|
|
rm -rf "tests/output"
|
|
ansible-test units "${common[@]}"
|
|
|
|
# integration tests
|
|
|
|
rm -rf "tests/output"
|
|
ansible-test integration "${common[@]}"
|