about summary refs log tree commit diff
path: root/localedata/tst-ctype.sh
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-06-27 03:59:26 +0000
committerUlrich Drepper <drepper@redhat.com>2000-06-27 03:59:26 +0000
commit4edc30e4d70ff4bd49abf8dc5a98502f07ff5991 (patch)
tree8c50e8709e54a5d13e100b34744c085d4e722660 /localedata/tst-ctype.sh
parent6ba025af6916737a4b895890caf3ef32b5efbb16 (diff)
downloadglibc-4edc30e4d70ff4bd49abf8dc5a98502f07ff5991.tar.gz
glibc-4edc30e4d70ff4bd49abf8dc5a98502f07ff5991.tar.xz
glibc-4edc30e4d70ff4bd49abf8dc5a98502f07ff5991.zip
Update.
	* tst-ctype.c: Read in more tests from stdin.
	* tst-ctype.sh: Feed extra test data to program via stdin.
	* tst-ctype-de_DE.in: New file.

	* locales/i18n (punct): Exclude U00A0.
	(blank): Include U00A0.

	* locales/ja_JP: Updates for new format.

	* Makefile (test-srcs): Add tst-ctype.
	(distribute): Add tst-ctype.sh.
	(do-tst-ctype): New target.  Run for tests.
	* tst-ctype.c: New file.
	* tst-ctype.sh: New file.
Diffstat (limited to 'localedata/tst-ctype.sh')
-rwxr-xr-xlocaledata/tst-ctype.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/localedata/tst-ctype.sh b/localedata/tst-ctype.sh
index e348464bfc..b768134122 100755
--- a/localedata/tst-ctype.sh
+++ b/localedata/tst-ctype.sh
@@ -25,9 +25,14 @@ status=0
 # Run the test programs.
 rm -f ${common_objpfx}localedata/tst-ctype.out
 for loc in de_DE en_US; do
+  if test -f tst-ctype-$loc.in; then
+    input=tst-ctype-$loc.in
+  else
+    input=/dev/null
+  fi
   LOCPATH=${common_objpfx}localedata GCONV_PATH=${common_objpfx}iconvdata \
   LC_ALL=$loc ${common_objpfx}elf/ld.so --library-path $common_objpfx \
-    ${common_objpfx}localedata/tst-ctype \
+    ${common_objpfx}localedata/tst-ctype < $input \
     >> ${common_objpfx}localedata/tst-ctype.out || status=1
 done