summaryrefslogtreecommitdiff
path: root/gettext-tools/tests/Makefile.am
blob: ba66749f551d7e5a151deaeda2bfbd5920bff5bf (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
## Makefile for the gettext-tools/tests subdirectory of GNU gettext
## Copyright (C) 1995-1997, 2001-2006 Free Software Foundation, Inc.
##
## This program 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 2, or (at your option)
## any later version.
##
## This program 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, write to the Free Software Foundation,
## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

## Process this file with automake to produce Makefile.in.

AUTOMAKE_OPTIONS = 1.5 gnits no-dependencies
EXTRA_DIST =
MOSTLYCLEANFILES = core *.stackdump

TESTS = gettext-1 gettext-2 gettext-3 gettext-4 gettext-5 gettext-6 gettext-7 \
	msgattrib-1 msgattrib-2 msgattrib-3 msgattrib-4 msgattrib-5 \
	msgattrib-6 msgattrib-7 msgattrib-8 msgattrib-9 msgattrib-10 \
	msgattrib-11 msgattrib-12 msgattrib-13 msgattrib-14 msgattrib-15 \
	msgattrib-properties-1 \
	msgcat-1 msgcat-2 msgcat-3 msgcat-4 msgcat-5 msgcat-6 msgcat-7 \
	msgcat-8 msgcat-9 msgcat-10 msgcat-11 msgcat-12 msgcat-13 msgcat-14 \
	msgcat-properties-1 msgcat-properties-2 \
	msgcat-stringtable-1 \
	msgcmp-1 msgcmp-2 msgcmp-3 \
	msgcomm-1 msgcomm-2 msgcomm-3 msgcomm-4 msgcomm-5 msgcomm-6 msgcomm-7 \
	msgcomm-8 msgcomm-9 msgcomm-10 msgcomm-11 msgcomm-12 msgcomm-13 \
	msgcomm-14 msgcomm-15 msgcomm-16 msgcomm-17 msgcomm-18 msgcomm-19 \
	msgcomm-20 msgcomm-21 msgcomm-22 msgcomm-23 msgcomm-24 msgcomm-25 \
	msgconv-1 msgconv-2 msgconv-3 msgconv-4 msgconv-5 \
	msgen-1 msgen-2 msgen-3 \
	msgexec-1 msgexec-2 msgexec-3 msgexec-4 \
	msgfilter-1 msgfilter-2 msgfilter-3 msgfilter-4 \
	msgfilter-sr-latin-1 \
	msgfmt-1 msgfmt-2 msgfmt-3 msgfmt-4 msgfmt-5 msgfmt-6 msgfmt-7 \
	msgfmt-8 msgfmt-9 msgfmt-10 msgfmt-11 msgfmt-12 msgfmt-13 msgfmt-14 \
	msgfmt-15 \
	msgfmt-properties-1 \
	msgfmt-qt-1 \
	msggrep-1 msggrep-2 msggrep-3 msggrep-4 msggrep-5 msggrep-6 msggrep-7 \
	msggrep-8 \
	msginit-1 msginit-2 \
	msgmerge-1 msgmerge-2 msgmerge-3 msgmerge-4 msgmerge-5 msgmerge-6 \
	msgmerge-7 msgmerge-8 msgmerge-9 msgmerge-10 msgmerge-11 msgmerge-12 \
	msgmerge-13 msgmerge-14 msgmerge-15 msgmerge-16 msgmerge-17 \
	msgmerge-18 \
	msgmerge-compendium-1 msgmerge-compendium-2 msgmerge-compendium-3 \
	msgmerge-compendium-4 msgmerge-compendium-5 \
	msgmerge-properties-1 msgmerge-properties-2 \
	msgmerge-update-1 msgmerge-update-2 msgmerge-update-3 \
	msgunfmt-1 \
	msgunfmt-csharp-1 \
	msgunfmt-java-1 \
	msgunfmt-properties-1 \
	msgunfmt-tcl-1 \
	msguniq-1 msguniq-2 msguniq-3 msguniq-4 msguniq-5 \
	recode-sr-latin-1 recode-sr-latin-2 \
	xgettext-1 xgettext-2 xgettext-3 xgettext-4 xgettext-5 xgettext-6 \
	xgettext-7 xgettext-8 xgettext-9 \
	xgettext-awk-1 \
	xgettext-c-1 xgettext-c-2 xgettext-c-3 xgettext-c-4 xgettext-c-5 \
	xgettext-c-6 xgettext-c-7 xgettext-c-8 xgettext-c-9 xgettext-c-10 \
	xgettext-c-11 xgettext-c-12 xgettext-c-13 xgettext-c-14 xgettext-c-15 \
	xgettext-csharp-1 xgettext-csharp-2 xgettext-csharp-3 \
	xgettext-csharp-4 xgettext-csharp-5 \
	xgettext-elisp-1 \
	xgettext-glade-1 xgettext-glade-2 xgettext-glade-3 \
	xgettext-java-1 xgettext-java-2 xgettext-java-3 xgettext-java-4 \
	xgettext-java-5 \
	xgettext-librep-1 \
	xgettext-lisp-1 \
	xgettext-objc-1 xgettext-objc-2 \
	xgettext-perl-1 xgettext-perl-2 xgettext-perl-3 xgettext-perl-4 \
	xgettext-perl-5 \
	xgettext-php-1 xgettext-php-2 \
	xgettext-po-1 \
	xgettext-properties-1 \
	xgettext-python-1 xgettext-python-2 xgettext-python-3 \
	xgettext-scheme-1 \
	xgettext-sh-1 xgettext-sh-2 xgettext-sh-3 xgettext-sh-4 xgettext-sh-5 \
	xgettext-smalltalk-1 \
	xgettext-stringtable-1 \
	xgettext-tcl-1 xgettext-tcl-2 \
	xgettext-ycp-1 xgettext-ycp-2 xgettext-ycp-3 \
	format-awk-1 format-awk-2 \
	format-boost-1 format-boost-2 \
	format-c-1 format-c-2 format-c-3 format-c-4 format-c-5 \
	format-csharp-1 format-csharp-2 \
	format-elisp-1 format-elisp-2 \
	format-gcc-internal-1 format-gcc-internal-2 \
	format-java-1 format-java-2 \
	format-librep-1 format-librep-2 \
	format-lisp-1 format-lisp-2 \
	format-php-1 format-php-2 \
	format-python-1 format-python-2 \
	format-pascal-1 format-pascal-2 \
	format-perl-1 format-perl-2 \
	format-perl-brace-1 format-perl-brace-2 \
	format-perl-mixed-1 format-perl-mixed-2 \
	format-qt-1 format-qt-2 \
	format-scheme-1 format-scheme-2 \
	format-sh-1 format-sh-2 \
	format-tcl-1 format-tcl-2 \
	format-ycp-1 format-ycp-2 \
	plural-1 plural-2 \
	lang-c lang-c++ lang-objc lang-sh lang-bash lang-python-1 \
	lang-python-2 lang-clisp lang-elisp lang-librep lang-guile \
	lang-smalltalk lang-java lang-csharp lang-gawk lang-pascal \
	lang-ycp lang-tcl lang-perl-1 lang-perl-2 lang-php lang-po lang-rst

EXTRA_DIST += $(TESTS) \
	test.mo xg-c-1.ok.po mex-test2.ok \
	msgmerge-v.comp.po msgmerge-v.pot msgmerge-v.out \
	msguniq-a.in msguniq-a.inp msguniq-a.out \
	qttest_pl.po qttest_pl.qm \
	qttest2_de.po qttest2_de.qm qttest2_de.ts \
	ChangeLog.0 \
	gettext-3-1.po gettext-3-2.po gettext-4.po gettext-5.po \
	gettext-6-1.po gettext-6-2.po gettext-7.po

XGETTEXT = ../src/xgettext

# For debugging memory leaks and memory allocation bugs.
# You should build with --disable-shared when using valgrind.
CHECKER =
#CHECKER = valgrind --tool=memcheck --suppressions=$(srcdir)/../lib/allocsa.valgrind --num-callers=20 --leak-check=yes --leak-resolution=high --show-reachable=yes
#CHECKER = valgrind --tool=massif --format=html --depth=10 --alloc-fn=xmalloc --alloc-fn=xrealloc --stacks=no

TESTS_ENVIRONMENT = top_srcdir=$(top_srcdir) \
		    PATH=.:../src:../../gettext-runtime/src:$(top_srcdir)/../gettext-runtime/src:$$PATH \
		    GETTEXT="$(CHECKER) tstgettext" \
		    NGETTEXT="$(CHECKER) tstngettext" \
		    XGETTEXT="$(CHECKER) xgettext" \
		    MSGATTRIB="$(CHECKER) msgattrib" \
		    MSGCAT="$(CHECKER) msgcat" \
		    MSGCMP="$(CHECKER) msgcmp" \
		    MSGCOMM="$(CHECKER) msgcomm" \
		    MSGCONV="$(CHECKER) msgconv" \
		    MSGEN="$(CHECKER) msgen" \
		    MSGEXEC="$(CHECKER) msgexec" \
		    MSGFILTER="$(CHECKER) msgfilter" \
		    MSGFMT="$(CHECKER) msgfmt" \
		    MSGGREP="$(CHECKER) msggrep" \
		    MSGINIT="$(CHECKER) msginit" \
		    MSGMERGE="$(CHECKER) msgmerge" \
		    MSGUNFMT="$(CHECKER) msgunfmt" \
		    MSGUNIQ="$(CHECKER) msguniq" \
		    RECODE="$(CHECKER) recode" \
		    OBJEXT='@OBJEXT@' EXEEXT='@EXEEXT@' \
		    LIBTOOL='@LIBTOOL@' \
		    CC='@CC@' CFLAGS='@CFLAGS@' \
		    CXX='@CXX@' CXXFLAGS='@CXXFLAGS@' \
		    CPPFLAGS='@CPPFLAGS@' LDFLAGS='@LDFLAGS@' \
		    LTLIBINTL='@LTLIBINTL@' \
		    JAVA_CHOICE='@JAVA_CHOICE@' \
		    BUILDJAVA='@BUILDJAVA@' \
		    TESTJAVA='@TESTJAVA@' \
		    CSHARP_CHOICE='@CSHARP_CHOICE@' \
		    BUILDCSHARP='@BUILDCSHARP@' \
		    TESTCSHARP='@TESTCSHARP@' \
		    TESTLIBASPRINTF='@TESTLIBASPRINTF@' \
		    LOCALE_FR='@LOCALE_FR@' \
		    LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
		    host_os='@host_os@' \
		    CONFIG_SHELL='$(SHELL)' \
		    $(SHELL)

xg-c-1.ok.po: $(top_srcdir)/src/xgettext.c $(top_srcdir)/src/msgfmt.c
	$(XGETTEXT) -d xg-c-1.ok -p $(srcdir) \
	  -k_ --omit-header --no-location \
	  $(top_srcdir)/src/xgettext.c $(top_srcdir)/src/msgfmt.c

# Three auxiliary programs used by the tests.
AM_CPPFLAGS = \
  -I.. \
  -I../lib -I$(top_srcdir)/lib \
  -I../intl
DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
# INTL_MACOSX_LIBS is needed because the programs depend on libintl.la
# but libtool doesn't put -Wl,-framework options into .la files.
LDADD = $(LDADD_@USE_INCLUDED_LIBINTL@) @INTL_MACOSX_LIBS@
LDADD_yes = ../intl/libintl.la @LTLIBTHREAD@
LDADD_no = ../intl/libgnuintl.la @LTLIBTHREAD@ @LTLIBINTL@
noinst_PROGRAMS = tstgettext tstngettext testlocale gettext-3-prg gettext-4-prg gettext-5-prg gettext-6-prg gettext-7-prg cake fc3 fc4 fc5
tstgettext_SOURCES = tstgettext.c setlocale.c
tstgettext_CFLAGS = -DINSTALLDIR=\".\"
tstgettext_LDADD = ../lib/libgettextlib.la $(LDADD)
tstngettext_SOURCES = tstngettext.c setlocale.c
tstngettext_CFLAGS = -DINSTALLDIR=\".\"
tstngettext_LDADD = ../lib/libgettextlib.la $(LDADD)
testlocale_SOURCES = testlocale.c
gettext_3_prg_SOURCES = gettext-3-prg.c
gettext_3_prg_LDADD = ../lib/libgettextlib.la $(LDADD)
gettext_4_prg_SOURCES = gettext-4-prg.c
gettext_4_prg_LDADD = ../lib/libgettextlib.la $(LDADD)
gettext_5_prg_SOURCES = gettext-5-prg.c
gettext_5_prg_LDADD = ../lib/libgettextlib.la $(LDADD)
gettext_6_prg_SOURCES = gettext-6-prg.c
gettext_6_prg_CFLAGS = $(gettext_6_prg_CFLAGS_@GLIBC2@)
gettext_6_prg_CFLAGS_yes = -DUSE_POSIX_THREADS
gettext_6_prg_LDADD = $(gettext_6_prg_LDADD_@GLIBC2@)
gettext_6_prg_LDADD_yes = ../lib/libgettextlib.la $(LDADD) -lpthread
gettext_7_prg_SOURCES = gettext-7-prg.c
gettext_7_prg_CFLAGS = $(gettext_7_prg_CFLAGS_@GLIBC2@)
gettext_7_prg_CFLAGS_yes = -DUSE_POSIX_THREADS
gettext_7_prg_LDADD = $(gettext_7_prg_LDADD_@GLIBC2@)
gettext_7_prg_LDADD_yes = ../lib/libgettextlib.la $(LDADD) -lpthread
cake_SOURCES = plural-1-prg.c setlocale.c
cake_LDADD = ../lib/libgettextlib.la $(LDADD)
fc3_SOURCES = format-c-3-prg.c setlocale.c
fc3_LDADD = ../lib/libgettextlib.la $(LDADD)
fc4_SOURCES = format-c-4-prg.c setlocale.c
fc4_LDADD = ../lib/libgettextlib.la $(LDADD)
fc5_SOURCES = format-c-5-prg.c
fc5_LDADD = ../lib/libgettextlib.la $(LDADD)

# Clean up after Solaris cc.
clean-local:
	rm -rf SunWS_cache


# Woe32 support.

EXTRA_DIST += Makefile.msvc