source: tests/Python/Makefile.am@ c4cba2

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

DISTFIX: python test ForceAnnealing folder was missing in EXTRA_DIST.

  • Property mode set to 100755
File size: 2.0 KB
RevLine 
[c015b3]1AUTOM4TE = $(SHELL) $(top_srcdir)/build-aux/missing --run autom4te
2
[65ca73]3if CONDPYTHON
4TESTSUITE = $(srcdir)/testsuite
5endif
6
[c015b3]7EXTRA_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
18DISTCLEANFILES = atconfig
19
20TESTSCRIPTS =
21
22if CONDPYTHON
23TESTSCRIPTS += \
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]31max_jobs = 8
[c015b3]32
33check-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
43installcheck-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
53clean-local:
54 test ! -f '$(TESTSUITE)' || \
55 $(SHELL) '$(TESTSUITE)' --clean
56
57AUTOTEST = $(AUTOM4TE) --language=autotest
58$(TESTSUITE): $(srcdir)/testsuite.at package.m4 $(TESTSCRIPTS)
59 $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
60 mv $@.tmp $@
[24e19e]61endif
[c015b3]62
63# The `:;' works around a Bash 3.2 bug when the output is not writeable.
64package.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'
Note: See TracBrowser for help on using the repository browser.