# # $COPYRIGHT$ # # LAM/MPI Test Suite # # $Id: Makefile,v 1.11 2001/03/29 20:58:25 jsquyres Exp $ # # Function: - Makefile for LAM's MPI test suite # - based in large part on the IBM test suite # - grand-daddy Makefile # SHELL = /bin/sh DIRS = reporting ccl comm dtyp dynamic env group io lam onesided pt2pt topo FILE_ID = \ LAM_MPI_TEST_FILEID=lamtest_errors.`date '+%H%M%S-%m%d%Y'`; \ export LAM_MPI_TEST_FILEID; \ touch $$LAM_MPI_TEST_FILEID; \ rm -f $$LAM_MPI_TEST_FILEID* DO = \ for dir in $(DIRS) ; do \ (cd $$dir ; echo "$$dir: $@" ; make $@) ; \ done RUN_REPORTER= \ if test "$$LAM_MPI_TEST_FILEID" != "" -a -f $$LAM_MPI_TEST_FILEID; then \ ./reporting/reporter $$LAM_MPI_TEST_FILEID; \ fi default: testing all: default # Ensure that the reporter is built reporter: @(cd reporting; echo "reporting:"; $(MAKE) build) # Build, run both types of tests testing: @ $(FILE_ID); \ $(DO); \ $(RUN_REPORTER) # Build only build: $(DO) # Run lamd tests only testing-lamd: @ $(FILE_ID); \ $(DO); \ $(RUN_REPORTER) # Run c2c tests only testing-c2c: @ $(FILE_ID); \ $(DO); \ $(RUN_REPORTER) clean: $(DO) # # Helper targets to restart the tests # run_test: reporter @ $(FILE_ID); \ (cd $(DIR); echo "$(DIR):"; $(MAKE) build $(BUILD_PREFIX)testing-$(MODE)); \ $(RUN_REPORTER) ccl-all: ccl-lamd ccl-c2c ccl-lamd: @ $(MAKE) DIR=ccl MODE=lamd run_test ccl-c2c: @ $(MAKE) DIR=ccl MODE=c2c run_test comm-all: comm-lamd comm-c2c comm-lamd: @ $(MAKE) DIR=comm MODE=lamd run_test comm-c2c: @ $(MAKE) DIR=comm MODE=c2c run_test dtyp-all: dtyp-lamd dtyp-c2c dtyp-lamd: @ $(MAKE) DIR=dtyp MODE=lamd run_test dtyp-c2c: @ $(MAKE) DIR=dtyp MODE=c2c run_test env-all: env-lamd env-c2c env-lamd: @ $(MAKE) DIR=env MODE=lamd run_test env-c2c: @ $(MAKE) DIR=env MODE=c2c run_test group-all: group-lamd group-c2c group-lamd: @ $(MAKE) DIR=group MODE=lamd run_test group-c2c: @ $(MAKE) DIR=group MODE=c2c run_test pt2pt-all: pt2pt-lamd pt2pt-c2c pt2pt-lamd: @ $(MAKE) DIR=pt2pt MODE=lamd run_test pt2pt-c2c: @ $(MAKE) DIR=pt2pt MODE=c2c run_test topo-all: topo-lamd topo-c2c topo-lamd: @ $(MAKE) DIR=topo MODE=lamd run_test topo-c2c: @ $(MAKE) DIR=topo MODE=c2c run_test dynamic-all: dynamic-lamd dynamic-c2c dynamic-lamd: @ $(MAKE) DIR=dynamic MODE=lamd run_test dynamic-c2c: @ $(MAKE) DIR=dynamic MODE=c2c run_test io-all: io-lamd io-c2c io-lamd: @ $(MAKE) DIR=io MODE=lamd BUILD_PREFIX=romio- run_test io-c2c: @ $(MAKE) DIR=io MODE=c2c BUILD_PREFIX=romio- run_test lam-all: lam-lamd lam-c2c lam-lamd: @ $(MAKE) DIR=lam MODE=lamd run_test lam-c2c: @ $(MAKE) DIR=lam MODE=c2c run_test onesided-all: onesided-lamd onesided-c2c onesided-lamd: @ $(MAKE) DIR=onesided MODE=lamd run_test onesided-c2c: @ $(MAKE) DIR=onesided MODE=c2c run_test