]> git.michaelhowe.org Git - packages/p/paho-mqtt.git/commitdiff
Allow separate Python2/Python3 testing.
authorRoger Light <roger@atchoo.org>
Mon, 21 Apr 2014 15:08:33 +0000 (16:08 +0100)
committerRoger Light <roger@atchoo.org>
Mon, 21 Apr 2014 15:08:33 +0000 (16:08 +0100)
Change-Id: Iaf3a42ba72698fc1d32c7296b428e5fefcb4cc20

Makefile
test/Makefile

index 22b70d6c48d6d17a0f34cc6a495a4437619961de..e4f367d94fbac86d2d3517ee9f1787735cedde20 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 # Set DESTDIR if it isn't given
 DESTDIR?=/
 
-.PHONY : all clean install test
+.PHONY : all clean install test python python3
 
 all :
        python ./setup.py build
@@ -12,5 +12,10 @@ install : all
 clean :
        -rm -rf build/ src/paho/mqtt/__pycache__ src/paho/mqtt/*.pyc src/paho/__pycache__ src/paho/*.pyc
 
-test : 
-       $(MAKE) -C test test
+python :
+       $(MAKE) -C test python
+
+python3 :
+       $(MAKE) -C test python3
+
+test : python python3
index 3642b8e178ac1cbfcd41cc866ec153a201fc64d6..759623c83b80dc2aa12ae7b62ea0bdaa5115bc72 100644 (file)
@@ -1,9 +1,14 @@
-.PHONY: all test clean reallyclean
+.PHONY: all test clean reallyclean python python3
 
 all :
 
-test :
-       $(MAKE) -C lib test
+python : 
+       $(MAKE) -C lib python
+
+python3 : 
+       $(MAKE) -C lib python3
+
+test : python python3
 
 clean : 
        $(MAKE) -C lib clean