about summary refs log tree commit diff
path: root/localedata/tst-ctype.sh
diff options
context:
space:
mode:
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