Bug 599693, Make mochitest-1 .. mochitest-5 work in tree. r=khuey, r=ted
authorJustin Wood <Callek@gmail.com>
Sun, 26 Sep 2010 00:19:27 -0400
changeset 55179 decd6313265bf8709971f02ff1dbd948949cf5c7
parent 55178 cd22150c60cac5339325fe5fe024b8db946e293c
child 55180 b36eeab1df8bdb81e2d5b8bc5b5e7923c848ad14
push idunknown
push userunknown
push dateunknown
reviewerskhuey, ted
bugs599693
milestone2.0b8pre
Bug 599693, Make mochitest-1 .. mochitest-5 work in tree. r=khuey, r=ted
testing/testsuite-targets.mk
--- a/testing/testsuite-targets.mk
+++ b/testing/testsuite-targets.mk
@@ -69,16 +69,22 @@ define CHECK_TEST_ERROR
   fi
 endef
 endif
 
 mochitest-plain:
 	$(RUN_MOCHITEST)
 	$(CHECK_TEST_ERROR)
 
+# Allow mochitest-1 ... mochitest-5 for developer ease
+mochitest-1 mochitest-2 mochitest-3 mochitest-4 mochitest-5: mochitest-%:
+	echo "mochitest: $* / 5"
+	$(RUN_MOCHITEST) --chunk-by-dir=4 --total-chunks=5 --this-chunk=$*
+	$(CHECK_TEST_ERROR)
+
 mochitest-chrome:
 	$(RUN_MOCHITEST) --chrome
 	$(CHECK_TEST_ERROR)
 
 mochitest-a11y:
 	$(RUN_MOCHITEST) --a11y
 	$(CHECK_TEST_ERROR)