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