build: enable unit tests as part of build
Enabling the unit tests as part of the pip and debian builds. Signed-off-by: Ray Kinsella <mdr@ashroe.eu>
This commit is contained in:
5
Makefile
5
Makefile
@ -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
3
debian/rules
vendored
@ -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:
|
||||
|
Reference in New Issue
Block a user