mirror of https://github.com/ansible/ansible.git
Relocate ansible-test self tests outside package. (#61255)
* Relocate ansible-test self tests outside package. We don't want to include the tests for verifying ansible-test within the ansible-test package. * Add `test/ansible_test/` to classification.py. * Fix test invocation. * Relocate tests in MANIFEST.in. * Improve package-data sanity test error checking. * Only use includes for ansible-test in MANIFEST.in. * Improve readability of MANIFEST.in.pull/61267/head
parent
c61dec032c
commit
02c38ed4fd
@ -0,0 +1,13 @@
|
||||
all: sanity unit validate-modules-unit
|
||||
|
||||
.PHONY: sanity
|
||||
sanity:
|
||||
$(abspath ${CURDIR}/../../bin/ansible-test) sanity test/lib/ ${FLAGS}
|
||||
|
||||
.PHONY: unit
|
||||
unit:
|
||||
PYTHONPATH=$(abspath ${CURDIR}/../lib) pytest unit ${FLAGS}
|
||||
|
||||
.PHONY: validate-modules-unit
|
||||
validate-modules-unit:
|
||||
PYTHONPATH=$(abspath ${CURDIR}/../lib/ansible_test/_data/sanity/validate-modules):$(abspath ${CURDIR}/../../lib) pytest validate-modules-unit ${FLAGS}
|
@ -1,13 +0,0 @@
|
||||
all: sanity unit validate-modules-unit
|
||||
|
||||
.PHONY: sanity
|
||||
sanity:
|
||||
ansible-test sanity test/lib/ ${FLAGS}
|
||||
|
||||
.PHONY: unit
|
||||
unit:
|
||||
PYTHONPATH=$(abspath ${CURDIR}/../..) pytest unit ${FLAGS}
|
||||
|
||||
.PHONY: validate-modules-unit
|
||||
validate-modules-unit:
|
||||
PYTHONPATH=$(abspath ${CURDIR}/../_data/sanity/validate-modules):$(abspath ${CURDIR}/../../../../lib) pytest validate-modules-unit ${FLAGS}
|
Loading…
Reference in New Issue