From: Brian Warner Date: Fri, 9 Mar 2007 00:54:38 +0000 (-0700) Subject: add test-pyfec target, not added to the main 'test' target because it adds 20 seconds... X-Git-Url: https://git.rkrishnan.org/?a=commitdiff_plain;h=155d64ba6dd114fed162bb575845ebd696b5389c;p=tahoe-lafs%2Ftahoe-lafs.git add test-pyfec target, not added to the main 'test' target because it adds 20 seconds to the test run --- diff --git a/Makefile b/Makefile index 1bd5f638..c1742b4c 100644 --- 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