Added test targets to Makefiles.
authorOrion Lawlor <olawlor@acm.org>
Wed, 13 Oct 2004 02:58:08 +0000 (02:58 +0000)
committerOrion Lawlor <olawlor@acm.org>
Wed, 13 Oct 2004 02:58:08 +0000 (02:58 +0000)
examples/multiphaseSharedArrays/Makefile [new file with mode: 0644]
examples/multiphaseSharedArrays/Makefile_common

diff --git a/examples/multiphaseSharedArrays/Makefile b/examples/multiphaseSharedArrays/Makefile
new file mode 100644 (file)
index 0000000..c7ab585
--- /dev/null
@@ -0,0 +1,11 @@
+DIRS=simpletest simpleTestVarsize 
+
+test:
+       for d in $(DIRS); do \
+               (cd $$d; make test OPTS='$(OPTS)' || exit 1) || exit 1; \
+       done
+
+clean:
+       for d in $(DIRS); do (cd $$d; make clean OPTS='$(OPTS)'); done
+       rm -f TAGS #*#
+       rm -f core *~
index 4d73d46654efdb36adeabb067695839a23f4697b..c1bbc6c75a2e6284e08ae6120d2d60982c22de64 100644 (file)
@@ -17,6 +17,9 @@ CHARMC=$(CDIR)/bin/charmc -language charm++ $(OPTS)
 
 all : opt
 
+test: $(PGM)
+       ./charmrun +p4 $(PGM) $(TEST_ARGS)
+
 $(PGM) : $(PGM).o
        $(CHARMC) -o $(PGM) -module msa $(PGM).o -lm