Patch: Tiny Changes to tests/makefiles
Jeffrey Oldham
oldham at codesourcery.com
Thu Jun 28 18:54:30 UTC 2001
As I worked toward a system that will automatically check for changes
in Pooma regression tests, I discovered several testing makefiles that
needed slight revisions. Given Julian Cummings's comment that some
makefiles do not actually run the executables, I eliminated my
proposed addition of "run" targets for these makefiles but kept the
remaining changes.
2001-06-28 Jeffrey D. Oldham <oldham at codesourcery.com>
* IO/tests/makefile (run_tests): Add dependence on `tests'.
* NewField/tests/makefile (field_tests): Add StencilTests.
* Partition/tests/makefile (run): New target.
* Pooma/tests/makefile (tests): Likewise.
* Tulip/tests/ReduceOverContextsTest.cpp (main): Change function
call to object creation and then function call.
Tested on sequential Linux using GNU make version 3.78.1
by running "make run" in the associated test directory
Approved by Julian C. Cummings (cummings at linkline.com)
Thanks,
Jeffrey D. Oldham
oldham at codesourcery.com
-------------- next part --------------
Index: IO/tests/makefile
===================================================================
RCS file: /home/pooma/Repository/r2/src/IO/tests/makefile,v
retrieving revision 1.25
diff -c -p -r1.25 makefile
*** IO/tests/makefile 2000/07/27 12:33:24 1.25
--- IO/tests/makefile 2001/06/25 20:25:12
*************** tests:: testBaseSerializers testMatrixSe
*** 43,49 ****
run: run_tests
cat *.out
! run_tests:
$(ODIR)/testBaseSerializers $(TSTOPTS) 1>testBaseSerializers.out 2>&1
$(ODIR)/testMatrixSerializers $(TSTOPTS) 1>testMatrixSerializers.out 2>&1
$(ODIR)/testLayoutSerializers $(TSTOPTS) 1>testLayoutSerializers.out 2>&1
--- 43,49 ----
run: run_tests
cat *.out
! run_tests: tests
$(ODIR)/testBaseSerializers $(TSTOPTS) 1>testBaseSerializers.out 2>&1
$(ODIR)/testMatrixSerializers $(TSTOPTS) 1>testMatrixSerializers.out 2>&1
$(ODIR)/testLayoutSerializers $(TSTOPTS) 1>testLayoutSerializers.out 2>&1
Index: NewField/tests/makefile
===================================================================
RCS file: /home/pooma/Repository/r2/src/NewField/tests/makefile,v
retrieving revision 1.10
diff -c -p -r1.10 makefile
*** NewField/tests/makefile 2001/05/14 21:11:24 1.10
--- NewField/tests/makefile 2001/06/25 20:25:12
*************** run_tests: tests
*** 58,64 ****
field_tests:: $(ODIR)/BasicTest1 $(ODIR)/BasicTest2 \
$(ODIR)/FieldTour1 $(ODIR)/FieldTour2 \
$(ODIR)/WhereTest $(ODIR)/VectorTest \
! $(ODIR)/ScalarCode $(ODIR)/ExpressionTest
###########################
--- 58,65 ----
field_tests:: $(ODIR)/BasicTest1 $(ODIR)/BasicTest2 \
$(ODIR)/FieldTour1 $(ODIR)/FieldTour2 \
$(ODIR)/WhereTest $(ODIR)/VectorTest \
! $(ODIR)/ScalarCode $(ODIR)/StencilTests \
! $(ODIR)/ExpressionTest
###########################
Index: Partition/tests/makefile
===================================================================
RCS file: /home/pooma/Repository/r2/src/Partition/tests/makefile,v
retrieving revision 1.5
diff -c -p -r1.5 makefile
*** Partition/tests/makefile 2000/07/21 18:29:22 1.5
--- Partition/tests/makefile 2001/06/25 20:25:13
*************** default:: partition_tests
*** 42,47 ****
--- 42,49 ----
tests:: partition_tests
+ run:: partition_tests
+
run_tests: partition_tests
$(ODIR)/ugp_test $(TSTOPTS) 1>ugp_test.out 2>&1
Index: Pooma/tests/makefile
===================================================================
RCS file: /home/pooma/Repository/r2/src/Pooma/tests/makefile,v
retrieving revision 1.4
diff -c -p -r1.4 makefile
*** Pooma/tests/makefile 2000/07/21 18:29:22 1.4
--- Pooma/tests/makefile 2001/06/25 20:25:13
*************** include $(PROJECT_ROOT)/config/head.mk
*** 33,38 ****
--- 33,42 ----
default:: finalize pooma
+ tests:: finalize pooma
+
+ run:: tests
+
.PHONY: pooma
.PHONY: finalize
Index: Tulip/tests/ReduceOverContextsTest.cpp
===================================================================
RCS file: /home/pooma/Repository/r2/src/Tulip/tests/ReduceOverContextsTest.cpp,v
retrieving revision 1.1
diff -c -p -r1.1 ReduceOverContextsTest.cpp
*** Tulip/tests/ReduceOverContextsTest.cpp 2000/06/06 16:51:00 1.1
--- Tulip/tests/ReduceOverContextsTest.cpp 2001/06/25 20:25:13
*************** int main(int argc, char *argv[])
*** 68,74 ****
int result1;
! SumReduction_t(foo[myContext]).broadcast(result1);
BARRIER;
--- 68,75 ----
int result1;
! SumReduction_t goo(foo[myContext]);
! goo.broadcast(result1);
BARRIER;
More information about the pooma-dev
mailing list