1# Makefile for `recode' regression tests.
2# Copyright � 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
3# Fran�ois Pinard <pinard@iro.umontreal.ca>, 1988.
4
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 2, or (at your option)
8# any later version.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13# GNU General Public License for more details.
14
15# You should have received a copy of the GNU General Public License
16# along with this program; if not, write to the Free Software
17# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
18# 02111-1307, USA.
19
20AUTOMAKE_OPTIONS = gnits
21
22SUITE = african.m4 base64.m4 combine.m4 dumps.m4 lists.m4 methods.m4 \
23names.m4 quoted.m4 testdump.m4 utf7.m4 utf8.m4
24
25EXTRA_DIST = atgeneral.m4 suite.m4 testsuite $(SUITE) \
26bigauto.py dumps-data quoted-data utf7-data
27
28PYTHON = python
29
30all-local: atconfig testsuite
31
32# I have been told that the `libtool' bug who warranted the following
33# diagnostic has been corrected by now, so I silenced it out of `check-local'.
34#	@if test -f $(libdir)/librecode.so; then \
35#	  echo; \
36#	  echo "WARNING: A recode library is already installed.  Sadly, it"; \
37#	  echo "         _might_ interfere with checking.  You might want to"; \
38#	  echo "         delete it first, or rename it out of the way."; \
39#	  echo; \
40#	fi
41check-local: atconfig testsuite
42	$(SHELL) $(srcdir)/testsuite
43
44$(srcdir)/testsuite: atgeneral.m4 suite.m4 $(SUITE)
45	m4 -I $(srcdir) atgeneral.m4 suite.m4 | cat -s > $@-tmp
46	mv $@-tmp $@
47
48bigtest: warning
49	PATH=../src:$$PATH $(PYTHON) $(srcdir)/bigauto.py
50
51bigtest-strict: warning
52	PATH=../src:$$PATH $(PYTHON) $(srcdir)/bigauto.py -s
53
54warning:
55	echo 1>&2 '==============================================='
56	echo 1>&2 "The \`bigauto' test may take hours.  Be patient."
57	echo 1>&2 '==============================================='
58
59clean-local:
60	rm -f at-check-line debug-*.sh stderr stdout
61	rm -f input output big-s-off.res big-s-on.res
62