66# Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
77# Portions Copyright (c) 1994, Regents of the University of California
88#
9- # $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.52 2005/07/28 04:32:32 tgl Exp $
9+ # $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.53 2005/11/01 15:09:11 adunstan Exp $
1010#
1111# -------------------------------------------------------------------------
1212
@@ -28,6 +28,11 @@ ifdef MAX_CONNECTIONS
2828MAXCONNOPT += --max-connections=$(MAX_CONNECTIONS )
2929endif
3030
31+ # locale
32+ NOLOCALE :=
33+ ifdef NO_LOCALE
34+ NOLOCALE += --no-locale
35+ endif
3136
3237# #
3338# # Prepare for tests
@@ -132,17 +137,17 @@ all-spi:
132137check : all
133138-rm -rf ./testtablespace
134139mkdir ./testtablespace
135- $(SHELL ) ./pg_regress --temp-install --top-builddir=$(top_builddir ) --temp-port=$(TEMP_PORT ) --schedule=$(srcdir ) /parallel_schedule --multibyte=$(MULTIBYTE ) --load-language=plpgsql$(MAXCONNOPT )
140+ $(SHELL ) ./pg_regress --temp-install --top-builddir=$(top_builddir ) --temp-port=$(TEMP_PORT ) --schedule=$(srcdir ) /parallel_schedule --multibyte=$(MULTIBYTE ) --load-language=plpgsql$(MAXCONNOPT ) $( NOLOCALE )
136141
137142installcheck : all
138143-rm -rf ./testtablespace
139144mkdir ./testtablespace
140- $(SHELL ) ./pg_regress --schedule=$(srcdir ) /serial_schedule --multibyte=$(MULTIBYTE ) --load-language=plpgsql
145+ $(SHELL ) ./pg_regress --schedule=$(srcdir ) /serial_schedule --multibyte=$(MULTIBYTE ) --load-language=plpgsql$( NOLOCALE )
141146
142147installcheck-parallel : all
143148-rm -rf ./testtablespace
144149mkdir ./testtablespace
145- $(SHELL ) ./pg_regress --schedule=$(srcdir ) /parallel_schedule --multibyte=$(MULTIBYTE ) --load-language=plpgsql$(MAXCONNOPT )
150+ $(SHELL ) ./pg_regress --schedule=$(srcdir ) /parallel_schedule --multibyte=$(MULTIBYTE ) --load-language=plpgsql$(MAXCONNOPT ) $( NOLOCALE )
146151
147152
148153# old interfaces follow...
@@ -152,10 +157,10 @@ runtest: installcheck
152157runtest-parallel : installcheck-parallel
153158
154159bigtest :
155- $(SHELL ) ./pg_regress --schedule=$(srcdir ) /serial_schedule --multibyte=$(MULTIBYTE ) --load-language=plpgsql numeric_big
160+ $(SHELL ) ./pg_regress --schedule=$(srcdir ) /serial_schedule --multibyte=$(MULTIBYTE ) --load-language=plpgsql$( NOLOCALE ) numeric_big
156161
157162bigcheck :
158- $(SHELL ) ./pg_regress --temp-install --top-builddir=$(top_builddir ) --temp-port=$(TEMP_PORT ) --schedule=$(srcdir ) /parallel_schedule --multibyte=$(MULTIBYTE ) --load-language=plpgsql$(MAXCONNOPT ) numeric_big
163+ $(SHELL ) ./pg_regress --temp-install --top-builddir=$(top_builddir ) --temp-port=$(TEMP_PORT ) --schedule=$(srcdir ) /parallel_schedule --multibyte=$(MULTIBYTE ) --load-language=plpgsql$(MAXCONNOPT ) $( NOLOCALE ) numeric_big
159164
160165
161166# #