source: tests/CodeChecks/Makefile.am

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

TESTS: Added CodeCheck on uniqueness of ports in integration tests.

  • Property mode set to 100755
File size: 1.9 KB
Line 
1AUTOM4TE = autom4te
2
3TESTSUITE = $(srcdir)/testsuite
4
5TESTSCRIPTS = \
6 $(srcdir)/testsuite-action_present_in_userguide.at \
7 $(srcdir)/testsuite-config_h.at \
8 $(srcdir)/testsuite-date_in_dox.at \
9 $(srcdir)/testsuite-globallistofactions_hpp.at \
10 $(srcdir)/testsuite-header-dist.at \
11 $(srcdir)/testsuite-memdebug.at \
12 $(srcdir)/testsuite-project-disclaimer.at \
13 $(srcdir)/testsuite-testsuite-in-makefile.at \
14 $(srcdir)/testsuite-testsuite-integration-unique-ports.at
15
16DISTCLEANFILES = atconfig
17
18EXTRA_DIST = \
19 atlocal.in \
20 package.m4 \
21 testsuite.at \
22 $(TESTSUITE) \
23 $(TESTSCRIPTS)
24
25max_jobs = 8
26
27check-local: atlocal package.m4 $(TESTSUITE)
28 nrjobs=; \
29 for flag in $$MAKEFLAGS; do \
30 case $$flag in \
31 --* | =*=) ;; \
32 *j*) nrjobs="-j$(max_jobs)" ;; \
33 esac; \
34 done; \
35 $(SHELL) '$(TESTSUITE)' $$nrjobs AUTOTEST_PATH='$(abs_top_builddir)/src' $(TESTSUITEFLAGS)
36
37installcheck-local: atconfig atlocal $(TESTSUITE)
38 nrjobs=; \
39 for flag in $$MAKEFLAGS; do \
40 case $$flag in \
41 --* | =*=) ;; \
42 *j*) nrjobs="-j$(max_jobs)" ;; \
43 esac; \
44 done; \
45 $(SHELL) '$(TESTSUITE)' $$nrjobs AUTOTEST_PATH='$(bindir)' $(TESTSUITEFLAGS)
46
47clean-local:
48 test ! -f '$(TESTSUITE)' || \
49 $(SHELL) '$(TESTSUITE)' --clean
50
51AUTOTEST = $(AUTOM4TE) --language=autotest
52$(TESTSUITE): $(srcdir)/testsuite.at package.m4 $(TESTSCRIPTS)
53 $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
54 mv $@.tmp $@
55
56# The `:;' works around a Bash 3.2 bug when the output is not writeable.
57package.m4: $(top_srcdir)/configure.ac
58 :;{ \
59 echo '# Signature of the current package.' && \
60 echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])' && \
61 echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])' && \
62 echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])' && \
63 echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])' && \
64 echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
65 } >'package.m4'
Note: See TracBrowser for help on using the repository browser.