~ubuntu-branches/ubuntu/maverick/gettext/maverick

« back to all changes in this revision

Viewing changes to gettext-tools/tests/msgexec-1

  • Committer: Colin Watson
  • Date: 2010-08-01 21:36:08 UTC
  • mfrom: (2.1.10 sid)
  • Revision ID: cjwatson@canonical.com-20100801213608-yy7vkm8lpatep3ci
merge from Debian 0.18.1.1-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
tmpfiles="$tmpfiles mex-test1.sh"
61
61
cat <<\EOF > mex-test1.sh
62
62
#! /bin/sh
63
 
echo "========================= $MSGEXEC_LOCATION ========================="
 
63
echo "========================= $MSGEXEC_LOCATION =========================" | LC_ALL=C tr -d '\r'
64
64
cat <<MEOF
65
65
$MSGEXEC_MSGID
66
66
---
67
67
MEOF
68
68
cat
69
 
echo
 
69
echo | LC_ALL=C tr -d '\r'
70
70
exit 0
71
71
EOF
72
72
chmod a+x mex-test1.sh
73
73
 
74
 
tmpfiles="$tmpfiles mex-test1.out"
 
74
tmpfiles="$tmpfiles mex-test1.out mex-test1.err"
75
75
: ${MSGEXEC=msgexec}
76
 
${MSGEXEC} -i mex-test1.po ./mex-test1.sh > mex-test1.out
77
 
test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
76
LC_ALL=C \
 
77
${MSGEXEC} -i mex-test1.po ./mex-test1.sh > mex-test1.out 2> mex-test1.err
 
78
result=$?
 
79
cat mex-test1.err | grep -v 'warning: Locale charset' | grep -v '^ '
 
80
test $result = 0 || { rm -fr $tmpfiles; exit 1; }
78
81
 
79
82
tmpfiles="$tmpfiles mex-test1.ok"
80
83
cat <<\EOF > mex-test1.ok