[vlc-commits] enable automatic test of generator
    Alberto Invernizzi 
    git at videolan.org
       
    Mon Apr  6 12:25:55 CEST 2020
    
    
  
vlc/python | branch: master | Alberto Invernizzi <alby.inve at gmail.com> | Thu Apr  2 19:21:04 2020 +0200| [e2a77253d9a5b775c3a73a01efa00094c089cf64] | committer: Alberto Invernizzi
enable automatic test of generator
> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=e2a77253d9a5b775c3a73a01efa00094c089cf64
---
 Makefile | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
index 735d313..2639239 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,8 @@ else
     INSTALLED_INCLUDE_DIR=/usr/include/vlc
 endif
 
+PROJECT_ROOT=$(shell pwd)
+
 DEV_PATH=generated/dev
 VERSIONED_PATH=generated/3.0
 
@@ -58,12 +60,12 @@ doc: $(VERSIONED_NAME)
 	-epydoc -v -o doc $<
 
 test: $(MODULE_NAME)
-	PYTHONPATH=$(DEV_PATH) python tests/test.py
-	PYTHONPATH=$(VERSIONED_PATH) python tests/test.py
+	PYTHONPATH=$(DEV_PATH):$(PROJECT_ROOT) python tests/test.py
+	PYTHONPATH=$(VERSIONED_PATH):$(PROJECT_ROOT) python tests/test.py
 
 test3: $(MODULE_NAME)
-	PYTHONPATH=$(DEV_PATH) python3 tests/test.py
-	PYTHONPATH=$(VERSIONED_PATH) python3 tests/test.py
+	PYTHONPATH=$(DEV_PATH):$(PROJECT_ROOT) python3 tests/test.py
+	PYTHONPATH=$(VERSIONED_PATH):${PROJECT_ROOT} python3 tests/test.py
 
 publish: $(VERSIONED_NAME)
 	cd $(VERSIONED_PATH); python3 setup.py bdist_wheel sdist && twine upload dist/*
    
    
More information about the vlc-commits
mailing list