SEBA-830: Fix syntax errors and argument count mismatches
Also add some unit tests
Change-Id: Id93dd2f5a2a691b045d78cbfa7a2b1b8c30bd32b
diff --git a/Makefile b/Makefile
index da864d1..eece9ac 100644
--- a/Makefile
+++ b/Makefile
@@ -41,6 +41,14 @@
@ echo "Uploading sdist to test.pypi.org"
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
+VENVDIR := venv-pyvoltha
+
+venv:
+ virtualenv ${VENVDIR};\
+ source ./${VENVDIR}/bin/activate ; set -u ;\
+ rm ${VENVDIR}/local/bin ${VENVDIR}/local/lib ${VENVDIR}/local/include ;\
+ pip install -r requirements.txt
+
test:
@ echo "Executing unit tests w/tox"
tox
@@ -54,4 +62,7 @@
dist \
nose-results.xml \
pyvoltha.egg-info \
- test/unit/tmp
+ test/unit/tmp \
+ rm -rf ${VENVDIR}
+
+# end file