Source

trac-dvbcronrecording-plugin / GNUmakefile

Diff from to

GNUmakefile

 	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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.