1. Guido Draheim
  2. trac-dvbcronrecording-plugin

Source

trac-dvbcronrecording-plugin / GNUmakefile

Diff from to

File GNUmakefile

  • Ignore whitespace
 	PYTHONPATH=src \
 	python src/tests/computer_test.py -vv $(CHECK)
 test_%:
-	@ func=`grep "def $@" src/tests/computer_test.py \
+	@ func1=`grep "def $@" src/tests/computer_test.py \
 	    | sed -e "s/.*def  *//" -e "s/[(].*//" -e q` \
-	; test -z "$$func" && func="$@" \
-	; echo $(MAKE) check CHECK=DvbComputerTests.$$func \
-	;      $(MAKE) check CHECK=DvbComputerTests.$$func
+	; func2=`grep "def $@" src/tests/computer_tests.py \
+	    | sed -e "s/.*def  *//" -e "s/[(].*//" -e q` \
+	; if test -n "$$func1" \
+	; then echo $(MAKE) check CHECK=DvbComputerTests.$$func1 \
+	;           $(MAKE) check CHECK=DvbComputerTests.$$func1 \
+	; elif test -n "$$func2" \
+	; then echo $(MAKE) checks CHECK=DvbGeneratedTests.$$func2 \
+	;           $(MAKE) checks CHECK=DvbGeneratedTests.$$func2 \
+	; else echo "unknown $@"; exit 1 \
+	; fi
+
+genchecks:
+	PYTHONPATH=src \
+	python src/tests/computer_test.py ... 
+checks:
+	PYTHONPATH=src \
+	python src/tests/computer_tests.py -vv $(CHECK)
 
 
 RPMROOT=$(shell pwd)/rpm