source: tests/Examples/Makefile.am

Candidate_v1.6.1
Last change on this file was f56e14, checked in by Frederik Heber <frederik.heber@…>, 7 years ago

Added Examples testcase for the many ways to translate an atom blog entry.

  • Property mode set to 100755
File size: 1.6 KB
Line 
1AUTOM4TE = $(SHELL) $(top_srcdir)/build-aux/missing --run autom4te
2
3if CONDJOBMARKET
4TESTSUITE = $(srcdir)/testsuite
5endif
6
7DISTCLEANFILES = atconfig
8
9TESTSCRIPTS =
10
11TESTSCRIPTS += \
12 $(srcdir)/testsuite-examples.at \
13 $(srcdir)/ManyWaysTranslateAtom/testsuite-examples-many-ways-translate-atom.at \
14 $(srcdir)/PartialChargeFitting/testsuite-examples-partialchargefitting-h2o.at \
15 $(srcdir)/Simple/testsuite-examples-simple-h2o.at
16
17EXTRA_DIST = \
18 testsuite.at \
19 $(TESTSUITE) \
20 atlocal.in \
21 molecuilder.in \
22 package.m4 \
23 Simple \
24 $(TESTSCRIPTS)
25
26max_jobs = 8
27
28examples: atconfig atlocal $(TESTSUITE)
29 nrjobs=; \
30 for flag in $$MAKEFLAGS; do \
31 case $$flag in \
32 --* | =*=) ;; \
33 *j*) nrjobs="-j$(max_jobs)" ;; \
34 esac; \
35 done; \
36 $(SHELL) '$(TESTSUITE)' $$nrjobs AUTOTEST_PATH='$(abs_top_builddir)/src' $(TESTSUITEFLAGS)
37
38clean-local:
39 test ! -f '$(TESTSUITE)' || \
40 $(SHELL) '$(TESTSUITE)' --clean
41
42AUTOTEST = $(AUTOM4TE) --language=autotest
43$(TESTSUITE): $(srcdir)/testsuite.at package.m4 $(TESTSCRIPTS)
44 $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
45 mv $@.tmp $@
46
47# The `:;' works around a Bash 3.2 bug when the output is not writeable.
48package.m4: $(top_srcdir)/configure.ac
49 :;{ \
50 echo '# Signature of the current package.' && \
51 echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])' && \
52 echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])' && \
53 echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])' && \
54 echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])' && \
55 echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
56 } >'package.m4'
Note: See TracBrowser for help on using the repository browser.