[d0a719] | 1 | AUTOM4TE = autom4te
|
---|
| 2 |
|
---|
[0f44e1b] | 3 | TESTSUITE = $(srcdir)/testsuite
|
---|
[689639] | 4 |
|
---|
[56f73b] | 5 | TESTSCRIPTS = \
|
---|
[9b32071] | 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
|
---|
[d0a719] | 15 |
|
---|
[0f44e1b] | 16 | DISTCLEANFILES = atconfig
|
---|
| 17 |
|
---|
| 18 | EXTRA_DIST = \
|
---|
| 19 | atlocal.in \
|
---|
| 20 | package.m4 \
|
---|
| 21 | testsuite.at \
|
---|
| 22 | $(TESTSUITE) \
|
---|
| 23 | $(TESTSCRIPTS)
|
---|
| 24 |
|
---|
[854a1e] | 25 | max_jobs = 8
|
---|
[d0a719] | 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; \
|
---|
[39f4c46] | 35 | $(SHELL) '$(TESTSUITE)' $$nrjobs AUTOTEST_PATH='$(abs_top_builddir)/src' $(TESTSUITEFLAGS)
|
---|
[d0a719] | 36 |
|
---|
| 37 | installcheck-local: atconfig atlocal $(TESTSUITE)
|
---|
[39f4c46] | 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)
|
---|
[d0a719] | 46 |
|
---|
| 47 | clean-local:
|
---|
| 48 | test ! -f '$(TESTSUITE)' || \
|
---|
| 49 | $(SHELL) '$(TESTSUITE)' --clean
|
---|
| 50 |
|
---|
| 51 | AUTOTEST = $(AUTOM4TE) --language=autotest
|
---|
[a08d660] | 52 | $(TESTSUITE): $(srcdir)/testsuite.at package.m4 $(TESTSCRIPTS)
|
---|
[d0a719] | 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.
|
---|
[61749d1] | 57 | package.m4: $(top_srcdir)/configure.ac
|
---|
[d0a719] | 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@])'; \
|
---|
[5ffa05] | 65 | } >'package.m4'
|
---|