aboutsummaryrefslogtreecommitdiff
path: root/tests/Makefile
diff options
context:
space:
mode:
authorAlexander V. Chernikov <melifaro@FreeBSD.org>2022-06-25 19:01:45 +0000
committerAlexander V. Chernikov <melifaro@FreeBSD.org>2022-06-25 19:25:15 +0000
commit8eb2bee6c0f4957c6c1cea826e59cda4d18a2a64 (patch)
tree8a6481d536e076810de128b0ba49cece8b671554 /tests/Makefile
parentc38da70c28a886cc31a2f009baa79deb7fceec88 (diff)
downloadsrc-8eb2bee6c0f4957c6c1cea826e59cda4d18a2a64.tar.gz
src-8eb2bee6c0f4957c6c1cea826e59cda4d18a2a64.zip
testing: Add basic atf support to pytest.
Implementation consists of the pytest plugin implementing ATF format and a simple C++ wrapper, which reorders the provided arguments from ATF format to the format understandable by pytest. Each test has this wrapper specified after the shebang. When kyua executes the test, wrapper calls pytest, which loads atf plugin, does the work and returns the result. Additionally, a separate python "package", `/usr/tests/atf_python` has been added to collect code that may be useful across different tests. Current limitations: * Opaque metadata passing via X-Name properties. Require some fixtures to write * `-s srcdir` parameter passed by the runner is ignored. * No `atf-c-api(3)` or similar - relying on pytest framework & existing python libraries * No support for `atf_tc_<get|has>_config_var()` & `atf_tc_set_md_var()`. Can be probably implemented with env variables & autoload fixtures Differential Revision: https://reviews.freebsd.org/D31084 Reviewed by: kp, ngie
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 561a0ec5fcab..cfd065d61539 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -4,12 +4,14 @@ PACKAGE= tests
TESTSDIR= ${TESTSBASE}
-${PACKAGE}FILES+= README
+${PACKAGE}FILES+= README __init__.py conftest.py
KYUAFILE= yes
SUBDIR+= etc
SUBDIR+= sys
+SUBDIR+= atf_python
+SUBDIR+= freebsd_test_suite
SUBDIR_PARALLEL=