[83fa5c] | 1 | AUTOM4TE = $(SHELL) $(top_srcdir)/build-aux/missing --run autom4te
|
---|
| 2 |
|
---|
| 3 | if CONDJOBMARKET
|
---|
| 4 | TESTSUITE = $(srcdir)/testsuite
|
---|
| 5 | endif
|
---|
| 6 |
|
---|
| 7 | DISTCLEANFILES = atconfig
|
---|
| 8 |
|
---|
| 9 | TESTSCRIPTS =
|
---|
| 10 |
|
---|
| 11 | if CONDJOBMARKET
|
---|
| 12 | TESTSCRIPTS += \
|
---|
| 13 | $(srcdir)/testsuite-integration.at \
|
---|
[6491d3] | 14 | $(srcdir)/FragmentJobs/testsuite-integration-fragmentjobs.at \
|
---|
| 15 | $(srcdir)/FragmentJobs/testsuite-integration-fragmentjobs-mpqc-jobs.at \
|
---|
[0aae02] | 16 | $(srcdir)/FragmentJobs/testsuite-integration-fragmentjobs-vmg-jobs.at \
|
---|
| 17 | $(srcdir)/MolecularDynamics/testsuite-integration-moleculardynamics.at \
|
---|
[37fe17] | 18 | $(srcdir)/MolecularDynamics/testsuite-integration-moleculardynamics-water.at \
|
---|
| 19 | $(srcdir)/MolecularDynamics/testsuite-integration-moleculardynamics-methane.at \
|
---|
| 20 | $(srcdir)/MolecularDynamics/testsuite-integration-moleculardynamics-ethane.at \
|
---|
[167523] | 21 | $(srcdir)/MolecularDynamics/testsuite-integration-moleculardynamics-water-system.at \
|
---|
[53a85a] | 22 | $(srcdir)/PotentialFitting/testsuite-integration-potentialfitting.at \
|
---|
| 23 | $(srcdir)/PotentialFitting/testsuite-integration-potentialfitting-water.at \
|
---|
[167523] | 24 | $(srcdir)/StructureOptimization/testsuite-integration-structureoptimization.at \
|
---|
| 25 | $(srcdir)/StructureOptimization/testsuite-integration-structureoptimization-water.at \
|
---|
| 26 | $(srcdir)/StructureOptimization/testsuite-integration-structureoptimization-methane.at \
|
---|
| 27 | $(srcdir)/StructureOptimization/testsuite-integration-structureoptimization-ethane.at
|
---|
[83fa5c] | 28 | endif
|
---|
| 29 |
|
---|
| 30 | EXTRA_DIST = \
|
---|
| 31 | testsuite.at \
|
---|
| 32 | $(TESTSUITE) \
|
---|
| 33 | atlocal.in \
|
---|
| 34 | molecuilder.in \
|
---|
[de51d2] | 35 | molecuilder_poolworker.in \
|
---|
[83fa5c] | 36 | package.m4 \
|
---|
| 37 | pre \
|
---|
| 38 | $(TESTSCRIPTS)
|
---|
| 39 |
|
---|
| 40 | if CONDJOBMARKET
|
---|
[854a1e] | 41 | max_jobs = 8
|
---|
[83fa5c] | 42 |
|
---|
| 43 | check-local: atconfig atlocal $(TESTSUITE) $(TESTSCRIPTS)
|
---|
| 44 | nrjobs=; \
|
---|
| 45 | for flag in $$MAKEFLAGS; do \
|
---|
| 46 | case $$flag in \
|
---|
| 47 | --* | =*=) ;; \
|
---|
| 48 | *j*) nrjobs="-j$(max_jobs)" ;; \
|
---|
| 49 | esac; \
|
---|
| 50 | done; \
|
---|
| 51 | $(SHELL) '$(TESTSUITE)' $$nrjobs AUTOTEST_PATH='$(abs_top_builddir)/src' $(TESTSUITEFLAGS)
|
---|
| 52 |
|
---|
| 53 | installcheck-local: atconfig atlocal $(TESTSUITE)
|
---|
| 54 | nrjobs=; \
|
---|
| 55 | for flag in $$MAKEFLAGS; do \
|
---|
| 56 | case $$flag in \
|
---|
| 57 | --* | =*=) ;; \
|
---|
| 58 | *j*) nrjobs="-j$(max_jobs)" ;; \
|
---|
| 59 | esac; \
|
---|
| 60 | done; \
|
---|
| 61 | $(SHELL) '$(TESTSUITE)' $$nrjobs AUTOTEST_PATH='$(bindir)' $(TESTSUITEFLAGS)
|
---|
| 62 |
|
---|
| 63 | clean-local:
|
---|
| 64 | test ! -f '$(TESTSUITE)' || \
|
---|
| 65 | $(SHELL) '$(TESTSUITE)' --clean
|
---|
| 66 |
|
---|
| 67 | AUTOTEST = $(AUTOM4TE) --language=autotest
|
---|
| 68 | $(TESTSUITE): $(srcdir)/testsuite.at package.m4 $(TESTSCRIPTS)
|
---|
| 69 | $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
|
---|
| 70 | mv $@.tmp $@
|
---|
| 71 | endif
|
---|
| 72 |
|
---|
| 73 | # The `:;' works around a Bash 3.2 bug when the output is not writeable.
|
---|
| 74 | package.m4: $(top_srcdir)/configure.ac
|
---|
| 75 | :;{ \
|
---|
| 76 | echo '# Signature of the current package.' && \
|
---|
| 77 | echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])' && \
|
---|
| 78 | echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])' && \
|
---|
| 79 | echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])' && \
|
---|
| 80 | echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])' && \
|
---|
| 81 | echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
|
---|
| 82 | } >'package.m4'
|
---|