From aeaaea35a8a6a6d7ea9cd23cc9ccfb463fd56d8a Mon Sep 17 00:00:00 2001 From: Kalervo Kujala Date: Mon, 9 Jan 2012 20:51:30 +0200 Subject: [PATCH] Create debug option for the unit test makefile. --- test/unit/Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/test/unit/Makefile b/test/unit/Makefile index 7676af0ac..516addc59 100644 --- a/test/unit/Makefile +++ b/test/unit/Makefile @@ -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)' + @echo 'Command to be run: $(PROG)' + @echo + +# This rule runs the unit tests with the constructed command. +test: @mkdir -p $(PROFILES) - @echo - @echo 'About to run command: $(PROG)' $(PROG) - @echo - @echo 'About to run command: @rm -rf $(PROFILES)' @rm -rf $(PROFILES) .phony:: test