source: tests/Python/Makefile.am

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

DISTFIX: numpy_check.py was missing in EXTRA_DIST.

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