source: ThirdParty/JobMarket/tests/regression/Makefile.am@ 8ab061f

ForceAnnealing_oldresults IndependentFragmentGrids_IntegrationTest
Last change on this file since 8ab061f was 6ec999, checked in by Frederik Heber <heber@…>, 8 years ago

DISTFIX: package.m4 must not be prefixed with srcdir in Makefile.am.

  • Property mode set to 100755
File size: 2.0 KB
Line 
1AUTOM4TE = $(SHELL) $(top_srcdir)/build-aux/missing --run autom4te
2
3EXTRA_DIST = \
4 testsuite.at \
5 $(TESTSUITE) \
6 $(TESTSCRIPTS) \
7 atlocal.in \
8 package.m4
9
10TESTSUITE = $(srcdir)/testsuite
11
12DISTCLEANFILES = atconfig
13
14TESTSCRIPTS =
15
16TESTSCRIPTS += \
17 $(srcdir)/testsuite-addingjobs.at \
18 $(srcdir)/testsuite-checkstate.at \
19 $(srcdir)/testsuite-checkalive.at \
20 $(srcdir)/testsuite-completerun.at \
21 $(srcdir)/testsuite-enrollinpool.at \
22 $(srcdir)/testsuite-falsehost.at \
23 $(srcdir)/testsuite-getresults.at \
24 $(srcdir)/testsuite-resubmitjobs.at \
25 $(srcdir)/testsuite-server-shutdown.at \
26 $(srcdir)/testsuite-server-worker.at
27
28max_jobs = 8
29
30check-local: atconfig atlocal $(TESTSUITE)
31 nrjobs=; \
32 for flag in $$MAKEFLAGS; do \
33 case $$flag in \
34 --* | =*=) ;; \
35 *j*) nrjobs="-j$(max_jobs)" ;; \
36 esac; \
37 done; \
38 $(SHELL) '$(TESTSUITE)' $$nrjobs AUTOTEST_PATH='$(abs_top_builddir)/src/JobMarket' $(TESTSUITEFLAGS)
39
40# PROGRAMS are no longer installed, hence no install check possible
41#
42#installcheck-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 $@
60
61# The `:;' works around a Bash 3.2 bug when the output is not writeable.
62package.m4: $(top_srcdir)/configure.ac
63 :;{ \
64 echo '# Signature of the current package.' && \
65 echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])' && \
66 echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])' && \
67 echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])' && \
68 echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])' && \
69 echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
70 } >'package.m4'
Note: See TracBrowser for help on using the repository browser.