check_PROGRAMS = noinst_PROGRAMS = EXTRA_DIST = TESTS = XFAIL_TESTS = DISTCLEANFILES = include chemistry/molecule/Makefile.am include chemistry/qc/mbpt/Makefile.am include chemistry/qc/psi/Makefile.am include chemistry/solvent/Makefile.am include math/isosurf/Makefile.am include math/optimize/Makefile.am include util/options/Makefile.am AUTOM4TE = $(SHELL) $(top_srcdir)/build-aux/missing --run autom4te TESTSUITE = $(srcdir)/testsuite TESTSCRIPTS = # PLEASE adhere to alphabetical ordering of TESTSCRIPTS TESTSCRIPTS += \ $(srcdir)/util/options/testsuite-sample.at \ $(srcdir)/chemistry/molecule/testsuite-symmetrize.at \ $(srcdir)/chemistry/qc/mbpt/testsuite-mbpttest.at \ $(srcdir)/chemistry/qc/psi/testsuite-psitest.at \ $(srcdir)/chemistry/solvent/testsuite-bemtest.at \ $(srcdir)/math/isosurf/testsuite-isotest.at \ $(srcdir)/math/optimize/testsuite-kvopt.at \ $(srcdir)/math/optimize/testsuite-scextest-optimize.at EXTRA_DIST += \ testsuite.at \ $(TESTSUITE) max_jobs = 8 check-local: $(TESTSUITE) nrjobs=; \ for flag in $$MAKEFLAGS; do \ case $$flag in \ --* | =*=) ;; \ *j*) nrjobs="-j$(max_jobs)" ;; \ esac; \ done; \ $(SHELL) '$(TESTSUITE)' $$nrjobs AUTOTEST_PATH='$(abs_top_builddir)/src' $(TESTSUITEFLAGS) installcheck-local: $(TESTSUITE) nrjobs=; \ for flag in $$MAKEFLAGS; do \ case $$flag in \ --* | =*=) ;; \ *j*) nrjobs="-j$(max_jobs)" ;; \ esac; \ done; \ $(SHELL) '$(TESTSUITE)' $$nrjobs AUTOTEST_PATH='$(bindir)' $(TESTSUITEFLAGS) clean-local: test ! -f '$(TESTSUITE)' || \ $(SHELL) '$(TESTSUITE)' --clean AUTOTEST = $(AUTOM4TE) --language=autotest # testsuite must not depend on atlocal or atconfig as otherwise distcheck does # not work (wants to regenerate testsuite from testsuite.at in srcdir, which is # read-only) $(TESTSUITE): $(srcdir)/testsuite.at package.m4 $(TESTSCRIPTS) $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at mv $@.tmp $@ # The `:;' works around a Bash 3.2 bug when the output is not writeable. package.m4: $(top_srcdir)/configure.ac :;{ \ echo '# Signature of the current package.' && \ echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])' && \ echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])' && \ echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])' && \ echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])' && \ echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \ } >'package.m4'