]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
add test-pyfec target, not added to the main 'test' target because it adds 20 seconds...
authorBrian Warner <warner@lothar.com>
Fri, 9 Mar 2007 00:54:38 +0000 (17:54 -0700)
committerBrian Warner <warner@lothar.com>
Fri, 9 Mar 2007 00:54:38 +0000 (17:54 -0700)
Makefile

index 1bd5f638d9c48eae636ce53923d63e16223e5714..c1742b4c8dd0091a6b1e7a1db39ec84af1582da8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,17 @@ default: build
 BASE=$(shell pwd)
 PYTHON=python
 
+INSTDIR=$(BASE)/instdir/lib/python$(shell $(PYTHON) -c 'import sys;print sys.version_info[0]').$(shell $(PYTHON) -c 'import sys;print sys.version_info[1]')/site-packages
+
+show-instdir:
+       @echo $(INSTDIR)
+
+ifneq ($(PYTHONPATH),)
+PP=PYTHONPATH=${PYTHONPATH}:$(INSTDIR)
+else
+PP=PYTHONPATH=$(INSTDIR)
+endif
+
 .PHONY: build
 build: build-pyfec build-Crypto
        $(PYTHON) setup.py install --prefix=$(BASE)/instdir
@@ -11,25 +22,19 @@ build: build-pyfec build-Crypto
 build-pyfec:
        cd src/pyfec && $(PYTHON) ./setup.py install --prefix=$(BASE)/instdir
 
+test-pyfec:
+       $(PP) $(PYTHON) src/pyfec/fec/test/test_pyfec.py
+
 clean-pyfec:
        cd src/pyfec && python ./setup.py clean
 
+
 build-Crypto:
        cd src/Crypto && $(PYTHON) ./setup.py install --prefix=$(BASE)/instdir
 
 clean-Crypto:
        cd src/Crypto && python ./setup.py clean
 
-INSTDIR=$(BASE)/instdir/lib/python$(shell $(PYTHON) -c 'import sys;print sys.version_info[0]').$(shell $(PYTHON) -c 'import sys;print sys.version_info[1]')/site-packages
-
-show-instdir:
-       @echo $(INSTDIR)
-
-ifneq ($(PYTHONPATH),)
-PP=PYTHONPATH=${PYTHONPATH}:$(INSTDIR)
-else
-PP=PYTHONPATH=$(INSTDIR)
-endif
 
 .PHONY: run-queen run-client test