summaryrefslogtreecommitdiff
path: root/agen5/test/Makefile.am
blob: 0915a4b3900a08937ee0f544ef2cee05c002c279 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
##  -*- Mode: Makefile -*-
##
## Makefile.am -- process this file with automake to produce Makefile.in
##
## Time-stamp:      "2012-04-07 09:22:01 bkorb"
## Author:          Bruce Korb <bkorb@gnu.org>
##
## This file is part of AutoGen.
## AutoGen Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
##
## AutoGen is free software: you can redistribute it and/or modify it
## under the terms of the GNU General Public License as published by the
## Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## AutoGen is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
## See the GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License along
## with this program.  If not, see <http://www.gnu.org/licenses/>.

SHELL_TESTS = define.test directives.test error.test expr.test extract.test \
	include.test opts.test output.test snarf.test suffix.test shell.test

NOSHELL_TESTS = \
    alist.test  case.test   columns.test  debug.test    defref.test \
    dynref.test endmac.test for.test      forfrom.test  forin.test  \
    format.test get.test    gperf.test    heredef.test  html.test   \
    in.test     leave.test  license.test  line.test     loop.test   \
    make.test   match.test  pseudo.test   reorder.test  stack.test  \
    stress.test string.test strtable.test strxform.test time.test

UNREADY_TESTS   = daemon.test
TESTS       	= @AGEN5_TESTS@
EXTRA_DIST  	= $(TESTS) daemon.test
FUNCLIST    	= funcCase.c funcDef.c funcEval.c funcFor.c funcIf.c functions.c
EXPRLIST    	= expFormat.c expGuile.c expOutput.c  expPrint.c  expState.c \
	    	  expString.c expGperf.c expExtract.c $(FUNCLIST)

TESTS_ENVIRONMENT = TERM='' \
	CFLAGS='$(CFLAGS)' \
	COMPILE='$(COMPILE)' \
	EXPRLIST="$(EXPRLIST)" \
	LDFLAGS='$(LDFLAGS)' \
	SHELL="$(POSIX_SHELL)" \
	srcdir="$(srcdir)" \
	top_builddir="$(top_builddir)" \
	top_srcdir="$(top_srcdir)"

distclean-local:
	-rm -rf testdir FAILURES

$(TESTS)    : defs

defs        : ${top_builddir}/autoopts/test/defs
	@set -x ; \
	$(SED) -e '/^ *srcdir=/s@".*"@"$(srcdir)"@' \
	    -e '/^ *top_srcdir=/s@".*"@"$(top_srcdir)"@' \
	   ${top_builddir}/autoopts/test/defs > $@ ; \
	cd $(srcdir) ; chmod +x *.test || :

${top_builddir}/autoopts/test/defs :
	cd ${top_builddir}/autoopts/test ; $(MAKE) defs

verbose     : defs
	rm -rf FAILURES testdir ; \
	VERBOSE=true $(MAKE) check TESTS="$(TESTS)"

# Makefile.am ends here