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