]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - catgets/test-gencat.sh
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / catgets / test-gencat.sh
index 8557a3f2cbbb8de0d49a0adcb08fa4f199cbd0d2..bea0d739f46a5b51c8ce6655fb1116d1d2d49635 100755 (executable)
@@ -1,6 +1,6 @@
-#! /bin/sh
+#!/bin/sh
 # Test escape character handling in gencat.
-# Copyright (C) 2000-2012 Free Software Foundation, Inc.
+# Copyright (C) 2000-2019 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 
 # The GNU C Library is free software; you can redistribute it and/or
 set -e
 
 common_objpfx=$1
-run_program_cmd=$2
+test_program_cmd_before_env=$2
+run_program_env=$3
+test_program_cmd_after_env=$4
 
 # Run the test program.
-LOCPATH=${common_objpfx}localedata GCONV_PATH=${common_objpfx}iconvdata \
-NLSPATH=${common_objpfx}catgets/%N.%c.cat LC_ALL=ja_JP.SJIS \
-  ${run_program_cmd} \
+${test_program_cmd_before_env} \
+  ${run_program_env} \
+  NLSPATH=${common_objpfx}catgets/%N.%c.cat LC_ALL=ja_JP.SJIS \
+  ${test_program_cmd_after_env} \
     > ${common_objpfx}catgets/test-gencat.out
 
 # Compare with the expected result.