1 | AUTOM4TE = $(SHELL) $(top_srcdir)/build-aux/missing --run autom4te
|
---|
2 |
|
---|
3 | EXTRA_DIST = \
|
---|
4 | testsuite.at \
|
---|
5 | $(TESTSUITE) \
|
---|
6 | atlocal.in \
|
---|
7 | package.m4 \
|
---|
8 | AllActions \
|
---|
9 | BoxMaker \
|
---|
10 | CommandHelp \
|
---|
11 | ReturnValueActions
|
---|
12 |
|
---|
13 | if CONDPYTHON
|
---|
14 | TESTSUITE = $(srcdir)/testsuite
|
---|
15 | endif
|
---|
16 |
|
---|
17 | DISTCLEANFILES = atconfig
|
---|
18 |
|
---|
19 | TESTSCRIPTS =
|
---|
20 |
|
---|
21 | if CONDPYTHON
|
---|
22 | TESTSCRIPTS += \
|
---|
23 | $(srcdir)/AllActions/testsuite-python-allactions.at \
|
---|
24 | $(srcdir)/AllActions/testsuite-python-options_dat.at \
|
---|
25 | $(srcdir)/BoxMaker/testsuite-python-boxmaker.at \
|
---|
26 | $(srcdir)/CommandHelp/testsuite-python-commandhelp.at \
|
---|
27 | $(srcdir)/ReturnValueActions/testsuite-python-returnvalueactions.at
|
---|
28 |
|
---|
29 | max_jobs = 4
|
---|
30 |
|
---|
31 | check-local: atconfig atlocal $(TESTSUITE)
|
---|
32 | nrjobs=; \
|
---|
33 | for flag in $$MAKEFLAGS; do \
|
---|
34 | case $$flag in \
|
---|
35 | --* | =*=) ;; \
|
---|
36 | *j*) nrjobs="-j$(max_jobs)" ;; \
|
---|
37 | esac; \
|
---|
38 | done; \
|
---|
39 | $(SHELL) '$(TESTSUITE)' $$nrjobs AUTOTEST_PATH='$(abs_top_builddir)/src' $(TESTSUITEFLAGS)
|
---|
40 |
|
---|
41 | installcheck-local: atconfig atlocal $(TESTSUITE)
|
---|
42 | nrjobs=; \
|
---|
43 | for flag in $$MAKEFLAGS; do \
|
---|
44 | case $$flag in \
|
---|
45 | --* | =*=) ;; \
|
---|
46 | *j*) nrjobs="-j$(max_jobs)" ;; \
|
---|
47 | esac; \
|
---|
48 | done; \
|
---|
49 | $(SHELL) '$(TESTSUITE)' $$nrjobs AUTOTEST_PATH='$(bindir)' $(TESTSUITEFLAGS)
|
---|
50 |
|
---|
51 | clean-local:
|
---|
52 | test ! -f '$(TESTSUITE)' || \
|
---|
53 | $(SHELL) '$(TESTSUITE)' --clean
|
---|
54 |
|
---|
55 | AUTOTEST = $(AUTOM4TE) --language=autotest
|
---|
56 | $(TESTSUITE): $(srcdir)/testsuite.at package.m4 $(TESTSCRIPTS)
|
---|
57 | $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
|
---|
58 | mv $@.tmp $@
|
---|
59 | endif
|
---|
60 |
|
---|
61 | # The `:;' works around a Bash 3.2 bug when the output is not writeable.
|
---|
62 | package.m4: $(top_srcdir)/configure.ac
|
---|
63 | :;{ \
|
---|
64 | echo '# Signature of the current package.' && \
|
---|
65 | echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])' && \
|
---|
66 | echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])' && \
|
---|
67 | echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])' && \
|
---|
68 | echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])' && \
|
---|
69 | echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
|
---|
70 | } >'package.m4'
|
---|