]> git.parisson.com Git - pdf.js.git/commitdiff
Create debug option for the unit test makefile.
authorKalervo Kujala <kkujala@com>
Mon, 9 Jan 2012 18:51:30 +0000 (20:51 +0200)
committerKalervo Kujala <kkujala@com>
Mon, 9 Jan 2012 18:51:30 +0000 (20:51 +0200)
test/unit/Makefile

index 7676af0ac2f9934e0de926544ba67e8c826ea3be..516addc59a1fdaf0113ad740ff27984b8502fe73 100644 (file)
@@ -88,7 +88,9 @@ PROG:=java \
 --tests all \
 --testOutput ./test_reports/
 
-test:
+# In case this Makefile needs to be debugged then this rule will provide all
+# the information from intermediate steps.
+debug:
        @echo 'Debug browsers paths: $(BROWSERS_PATHS)'
        @echo
        @echo 'Debug browsers paths with mac correction: $(BROWSERS_PATHS_WITH_MAC_CORRECTION)'
@@ -101,13 +103,13 @@ test:
        @echo
        @echo 'Debug profiles: $(PROFILES)'
        @echo
-       @echo 'About to run command: mkdir -p $(PROFILES)'
-       @mkdir -p $(PROFILES)
+       @echo 'Command to be run: $(PROG)'
        @echo
-       @echo 'About to run command: $(PROG)'
+
+# This rule runs the unit tests with the constructed command.
+test:
+       @mkdir -p $(PROFILES)
        $(PROG)
-       @echo
-       @echo 'About to run command: @rm -rf $(PROFILES)'
        @rm -rf $(PROFILES)
 
 .phony:: test