1 | AUTOM4TE = autom4te
|
---|
2 |
|
---|
3 | TESTSUITE = $(srcdir)/testsuite
|
---|
4 |
|
---|
5 | TESTSCRIPTS = \
|
---|
6 | $(srcdir)/testsuite-action_present_in_userguide.at \
|
---|
7 | $(srcdir)/testsuite-config_h.at \
|
---|
8 | $(srcdir)/testsuite-date_in_dox.at \
|
---|
9 | $(srcdir)/testsuite-globallistofactions_hpp.at \
|
---|
10 | $(srcdir)/testsuite-header-dist.at \
|
---|
11 | $(srcdir)/testsuite-memdebug.at \
|
---|
12 | $(srcdir)/testsuite-project-disclaimer.at \
|
---|
13 | $(srcdir)/testsuite-testsuite-in-makefile.at \
|
---|
14 | $(srcdir)/testsuite-testsuite-integration-unique-ports.at
|
---|
15 |
|
---|
16 | DISTCLEANFILES = atconfig
|
---|
17 |
|
---|
18 | EXTRA_DIST = \
|
---|
19 | atlocal.in \
|
---|
20 | package.m4 \
|
---|
21 | testsuite.at \
|
---|
22 | $(TESTSUITE) \
|
---|
23 | $(TESTSCRIPTS)
|
---|
24 |
|
---|
25 | max_jobs = 8
|
---|
26 |
|
---|
27 | check-local: atlocal package.m4 $(TESTSUITE)
|
---|
28 | nrjobs=; \
|
---|
29 | for flag in $$MAKEFLAGS; do \
|
---|
30 | case $$flag in \
|
---|
31 | --* | =*=) ;; \
|
---|
32 | *j*) nrjobs="-j$(max_jobs)" ;; \
|
---|
33 | esac; \
|
---|
34 | done; \
|
---|
35 | $(SHELL) '$(TESTSUITE)' $$nrjobs AUTOTEST_PATH='$(abs_top_builddir)/src' $(TESTSUITEFLAGS)
|
---|
36 |
|
---|
37 | installcheck-local: atconfig atlocal $(TESTSUITE)
|
---|
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='$(bindir)' $(TESTSUITEFLAGS)
|
---|
46 |
|
---|
47 | clean-local:
|
---|
48 | test ! -f '$(TESTSUITE)' || \
|
---|
49 | $(SHELL) '$(TESTSUITE)' --clean
|
---|
50 |
|
---|
51 | AUTOTEST = $(AUTOM4TE) --language=autotest
|
---|
52 | $(TESTSUITE): $(srcdir)/testsuite.at package.m4 $(TESTSCRIPTS)
|
---|
53 | $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
|
---|
54 | mv $@.tmp $@
|
---|
55 |
|
---|
56 | # The `:;' works around a Bash 3.2 bug when the output is not writeable.
|
---|
57 | package.m4: $(top_srcdir)/configure.ac
|
---|
58 | :;{ \
|
---|
59 | echo '# Signature of the current package.' && \
|
---|
60 | echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])' && \
|
---|
61 | echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])' && \
|
---|
62 | echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])' && \
|
---|
63 | echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])' && \
|
---|
64 | echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
|
---|
65 | } >'package.m4'
|
---|