summaryrefslogtreecommitdiff
path: root/catgets/test-gencat.sh
diff options
context:
space:
mode:
Diffstat (limited to 'catgets/test-gencat.sh')
-rwxr-xr-xcatgets/test-gencat.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/catgets/test-gencat.sh b/catgets/test-gencat.sh
index 08e47af24a..98ef7da6ef 100755
--- a/catgets/test-gencat.sh
+++ b/catgets/test-gencat.sh
@@ -20,12 +20,15 @@
set -e
common_objpfx=$1
-test_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 \
- ${test_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.