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:
Ray Kinsella
2022-07-13 12:57:57 +01:00
parent fff10dba02
commit f5c31c7f39
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)