Merge pull request #7 from mdr78/main

build: enable unit tests as part of build
This commit is contained in:
Pim van Pelt
2022-07-13 14:21:34 +02:00
committed by GitHub
3 changed files with 6 additions and 3 deletions

View File

@ -8,6 +8,7 @@ WIPE=dist $(VPPCFG).egg-info .pybuild debian/vppcfg debian/vppcfg.*.log
WIPE+=debian/vppcfg.*.debhelper debian/.debhelper debian/files
WIPE+=debian/vppcfg.substvars
WHL_INSTALL=dist/$(VPPCFG)-$(VERSION)-py3-none-any.whl
TESTS=$(VPPCFG)/tests.py
.PHONY: build
build:
@ -29,6 +30,10 @@ pkg-deb:
check-style:
PYTHONPATH=./$(VPPCFG) pylint ./$(VPPCFG)
.PHONY: test
test:
PYTHONPATH=./$(VPPCFG) $(PYTHON) $(TESTS)
.PHONY: uninstall
uninstall:
sudo $(PIP) uninstall $(VPPCFG)

3
debian/rules vendored
View File

@ -2,6 +2,3 @@
%:
dh $@ --with python3 --buildsystem=pybuild --with systemd
# TODO: fix test.py to that unit tests can be automagically called.
override_dh_auto_test:

View File

@ -18,5 +18,6 @@ setup(
"vppcfg = vppcfg.vppcfg:main",
]
},
test_suite="vppcfg.config",
package_data={"vppcfg": ["*.yaml"]},
)