|
Packit Service |
c5cf8c |
## -*- Mode: Makefile; -*-
|
|
Packit Service |
c5cf8c |
## vim: set ft=automake :
|
|
Packit Service |
c5cf8c |
##
|
|
Packit Service |
c5cf8c |
## (C) 2011 by Argonne National Laboratory.
|
|
Packit Service |
c5cf8c |
## See COPYRIGHT in top-level directory.
|
|
Packit Service |
c5cf8c |
##
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
## This is an automake makefile fragment that should be included by:
|
|
Packit Service |
c5cf8c |
##
|
|
Packit Service |
c5cf8c |
## include $(top_srcdir)/Makefile.mtest
|
|
Packit Service |
c5cf8c |
##
|
|
Packit Service |
c5cf8c |
## It provides a "testing" rule that uses runtests, cleanup for summary.xml, and
|
|
Packit Service |
c5cf8c |
## adds appropriate includes and linker flags for using the MTest framework.
|
|
Packit Service |
c5cf8c |
## The goal is to reduce the amount of boilerplate that needs to exist in each
|
|
Packit Service |
c5cf8c |
## Makefile.am
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
# AM_CPPFLAGS are used for C++ code as well
|
|
Packit Service |
c5cf8c |
AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include
|
|
Packit Service |
c5cf8c |
LDADD = $(top_builddir)/util/mtest.o
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
# Add libdtpools support
|
|
Packit Service |
c5cf8c |
AM_CPPFLAGS += -I$(top_srcdir)/dtpools/include
|
|
Packit Service |
c5cf8c |
LDADD += $(top_builddir)/dtpools/src/.libs/libdtpools.a
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
## FIXME "DEPADD" is a simplemake concept, which we can handle on a per-target
|
|
Packit Service |
c5cf8c |
## prog_DEPENDENCIES variable, but it would be better to figure out the right
|
|
Packit Service |
c5cf8c |
## way to do this
|
|
Packit Service |
c5cf8c |
##DEPADD = @MPILIBLOC@ $(top_builddir)/util/mtest.o
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
$(top_builddir)/util/mtest.$(OBJEXT): $(top_srcdir)/util/mtest.c
|
|
Packit Service |
c5cf8c |
(cd $(top_builddir)/util && $(MAKE) mtest.$(OBJEXT))
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
$(top_builddir)/dtpools/src/.libs/libdtpools.a: $(top_srcdir)/dtpools/src/*.c
|
|
Packit Service |
c5cf8c |
(cd $(top_builddir)/dtpools && $(MAKE))
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
SUMMARY_BASENAME ?= summary
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
testing:
|
|
Packit Service |
c5cf8c |
$(top_builddir)/runtests -srcdir=$(srcdir) -tests=testlist \
|
|
Packit Service |
c5cf8c |
-mpiexec="${MPIEXEC}" -xmlfile=$(SUMMARY_BASENAME).xml \
|
|
Packit Service |
c5cf8c |
-tapfile=$(SUMMARY_BASENAME).tap -junitfile=$(SUMMARY_BASENAME).junit.xml
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
CLEANFILES = $(SUMMARY_BASENAME).xml $(SUMMARY_BASENAME).tap $(SUMMARY_BASENAME).junit.xml
|