[RFC] tests/makefile changes
Richard Guenther
rguenth at tat.physik.uni-tuebingen.de
Tue Dec 17 20:41:01 UTC 2002
Hi!
I have patches to change all current tests/makefile to something like
the following (example from Evaluator/tests):
PROJECT_ROOT = $(shell cd ../../..; pwd)
include $(PROJECT_ROOT)/config/head.mk
PASS=APP
TESTS = compressibleTest1 evaluatorTest1 evaluatorTest3 \
ReductionTest1 ReductionTest2 ReductionTest3 ReductionTest4
default:: $(TESTS)
.PHONY: $(TESTS)
$(TESTS):: %: $(ODIR)/%
$(MPIRUN) $(ODIR)/$@ $(TSTOPTS) 1>$@.out 2>&1 || $(MPIRUN) $(ODIR)/$@ -v $(TSTOPTS)
$(ODIR)/%: $(ODIR)/%.o
$(LinkToSuite)
include $(SHARED_ROOT)/tail.mk
This canonicalizes rules and calling with MPIRUN and TSTOPTS variables, a
global make check can then just $(MAKE) -C directory on the individual
test dirs. Does this look sane? Any objections to changing the makefiles
this way, or even better ideas?
Richard.
More information about the pooma-dev
mailing list