freepooma-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RFC] tests/makefile changes


From: Richard Guenther
Subject: [RFC] tests/makefile changes
Date: Tue, 17 Dec 2002 21:41:01 +0100 (CET)

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>address@hidden 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]