[llvm-commits] [llvm] r49850 - /llvm/branches/ggreif/parallelized-test/Makefile
Gabor Greif
ggreif at gmail.com
Thu Apr 17 05:35:10 PDT 2008
Author: ggreif
Date: Thu Apr 17 07:35:10 2008
New Revision: 49850
URL: http://llvm.org/viewvc/llvm-project?rev=49850&view=rev
Log:
some more tweaks. remove debugging code
Modified:
llvm/branches/ggreif/parallelized-test/Makefile
Modified: llvm/branches/ggreif/parallelized-test/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/parallelized-test/Makefile?rev=49850&r1=49849&r2=49850&view=diff
==============================================================================
--- llvm/branches/ggreif/parallelized-test/Makefile (original)
+++ llvm/branches/ggreif/parallelized-test/Makefile Thu Apr 17 07:35:10 2008
@@ -31,8 +31,10 @@
CLEANED_TESTSUITE := $(patsubst test/%,%,$(CLEANED_TESTSUITE))
RUNTESTFLAGS += --tool $(CLEANED_TESTSUITE)
TESTDIRS = $(CLEANED_TESTSUITE)
+DISPLAYDIRS = $(TESTDIRS)
else
TESTDIRS = .
+DISPLAYDIRS =
endif
IGNORE_TESTS :=
@@ -59,16 +61,18 @@
endif
ifndef TESTDIRS-MAKEFILES
-TESTDIRS-MAKEFILES := $(shell echo "Z" >> Z && find $(TESTDIRS) -name Test.makefile)
+TESTDIRS-MAKEFILES := $(shell find $(TESTDIRS) -name Test.makefile)
endif
+TESTDIRS-OUTFILES := $(addsuffix .out, $(TESTDIRS-MAKEFILES))
+
%.makefile.out: %.makefile
@ $(MAKE) --always-make -C $(dir $<) -f $(notdir $<) $(notdir $@)
-report:: $(addsuffix .out, $(TESTDIRS-MAKEFILES))
+report:: $(TESTDIRS-OUTFILES)
@ cat $^
-%.report:: $(addsuffix .out, $(TESTDIRS-MAKEFILES))
+%.report:: $(TESTDIRS-OUTFILES)
@ cat $^ \
| grep "^$(basename $@): " \
| wc -l \
@@ -93,12 +97,12 @@
$(RUNTEST) $(RUNTESTFLAGS) ) | $(PRETTIFY-DEJA)
@ ( ulimit -t 600 ; ulimit -d 512000 ; \
$(MAKE) -f $(LLVM_SRC_ROOT)/test/Makefile TESTDIRS-MAKEFILES="$(TESTDIRS-MAKEFILES)" \
- $(addsuffix .out, $(TESTDIRS-MAKEFILES)))
+ $(TESTDIRS-OUTFILES))
@ $(DONE)
@ $(MAKE) -f $(LLVM_SRC_ROOT)/test/Makefile --always-make TESTDIRS-MAKEFILES="$(TESTDIRS-MAKEFILES)" \
PASS.report FAIL.report XPASS.report XFAIL.report
@ echo
- @ echo " === $(TESTDIRS) Summary ==="
+ @ echo " === $(DISPLAYDIRS) Summary ==="
@ echo
@ cat PASS.report FAIL.report XPASS.report XFAIL.report | $(PRETTIFY-REPORT)
else
@@ -109,7 +113,7 @@
ifdef TESTONE
CLEANED_TESTONE := $(patsubst %/,%,$(TESTONE))
CLEANED_TESTONE := $(patsubst test/%,%,$(CLEANED_TESTONE))
-SUBDIR := $(shell dirname $(CLEANED_TESTONE))
+SUBDIR := $(dir $(CLEANED_TESTONE))
TESTPATH := $(LLVM_SRC_ROOT)/test/$(CLEANED_TESTONE)
check-one: site.exp $(TCLSH)
$(Verb)( echo "source $(LLVM_OBJ_ROOT)/test/site.exp" ; \
More information about the llvm-commits
mailing list