source: tests/Python/Makefile.am@ 108c88

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

TEST: Adding Python test on ForceAnnealing using an Ising model with and without bondgraph.

  • We are not done yet with implementing optimization using the bond graph. The 2-body Ising test on using bond graph reveals that we have a problem when bonds need to shrink. In case of the test the updates from either side cancel each other and there is no progress. For the 5-body Ising test convergence is not monotone, probably also because of the need to proper deal with shrinking bonds.
  • TESTS: As Python ForceAnnealing test use numpy to compute damping_factor we have added a check for numpy presence and skip tests otherwise.
  • TESTFIX: Marked Python tests on ForceAnnealing using the bond graph as XFAIL because of this.
  • 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 AllActions \
13 BoxMaker \
14 CommandHelp \
15 ReturnValueActions
16
17DISTCLEANFILES = atconfig
18
19TESTSCRIPTS =
20
21if CONDPYTHON
22TESTSCRIPTS += \
23 $(srcdir)/AllActions/testsuite-python-allactions.at \
24 $(srcdir)/AllActions/testsuite-python-options_dat.at \
25 $(srcdir)/BoxMaker/testsuite-python-boxmaker.at \
26 $(srcdir)/CommandHelp/testsuite-python-commandhelp.at \
27 $(srcdir)/ForceAnnealing/testsuite-python-forceannealing-ising.at \
28 $(srcdir)/ReturnValueActions/testsuite-python-returnvalueactions.at
29
30max_jobs = 8
31
32check-local: atconfig atlocal $(TESTSUITE)
33 nrjobs=; \
34 for flag in $$MAKEFLAGS; do \
35 case $$flag in \
36 --* | =*=) ;; \
37 *j*) nrjobs="-j$(max_jobs)" ;; \
38 esac; \
39 done; \
40 $(SHELL) '$(TESTSUITE)' $$nrjobs AUTOTEST_PATH='$(abs_top_builddir)/src' $(TESTSUITEFLAGS)
41
42installcheck-local: atconfig atlocal $(TESTSUITE)
43 nrjobs=; \
44 for flag in $$MAKEFLAGS; do \
45 case $$flag in \
46 --* | =*=) ;; \
47 *j*) nrjobs="-j$(max_jobs)" ;; \
48 esac; \
49 done; \
50 $(SHELL) '$(TESTSUITE)' $$nrjobs AUTOTEST_PATH='$(bindir)' $(TESTSUITEFLAGS)
51
52clean-local:
53 test ! -f '$(TESTSUITE)' || \
54 $(SHELL) '$(TESTSUITE)' --clean
55
56AUTOTEST = $(AUTOM4TE) --language=autotest
57$(TESTSUITE): $(srcdir)/testsuite.at package.m4 $(TESTSCRIPTS)
58 $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
59 mv $@.tmp $@
60endif
61
62# The `:;' works around a Bash 3.2 bug when the output is not writeable.
63package.m4: $(top_srcdir)/configure.ac
64 :;{ \
65 echo '# Signature of the current package.' && \
66 echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])' && \
67 echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])' && \
68 echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])' && \
69 echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])' && \
70 echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
71 } >'package.m4'
Note: See TracBrowser for help on using the repository browser.