1997-03-05 01:35:19 +01:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
common_objpfx=$1; shift
|
2000-07-12 22:06:44 +02:00
|
|
|
run_program_prefix=$1; shift
|
1997-03-05 01:35:19 +01:00
|
|
|
lang=$*
|
|
|
|
|
|
|
|
id=${PPID:-100}
|
|
|
|
here=`pwd`
|
|
|
|
|
|
|
|
# Run collation tests.
|
|
|
|
status=0
|
|
|
|
for l in $lang; do
|
2000-07-16 09:30:42 +02:00
|
|
|
here=0
|
1997-03-05 01:35:19 +01:00
|
|
|
cns=`echo $l | sed 's/\(.*\)[.][^.]*/\1/'`
|
2000-06-25 20:14:28 +02:00
|
|
|
LOCPATH=${common_objpfx}localedata GCONV_PATH=${common_objpfx}/iconvdata \
|
2000-07-12 22:06:44 +02:00
|
|
|
LC_ALL=$l ${run_program_prefix} \
|
1998-02-24 16:22:29 +01:00
|
|
|
${common_objpfx}localedata/collate-test $id < $cns.in \
|
2000-07-16 09:30:42 +02:00
|
|
|
> ${common_objpfx}localedata/$cns.out || here=1
|
|
|
|
cmp -s $cns.in ${common_objpfx}localedata/$cns.out || here=1
|
1997-03-05 01:35:19 +01:00
|
|
|
|
2000-06-25 20:14:28 +02:00
|
|
|
LOCPATH=${common_objpfx}localedata GCONV_PATH=${common_objpfx}/iconvdata \
|
2000-07-12 22:06:44 +02:00
|
|
|
LC_ALL=$l ${run_program_prefix} \
|
1998-02-24 16:22:29 +01:00
|
|
|
${common_objpfx}localedata/xfrm-test $id < $cns.in \
|
2000-07-16 09:30:42 +02:00
|
|
|
> ${common_objpfx}localedata/$cns.xout || here=1
|
|
|
|
cmp -s $cns.in ${common_objpfx}localedata/$cns.xout || here=1
|
|
|
|
if test $here -eq 0; then
|
|
|
|
echo "$l OK"
|
|
|
|
else
|
2000-08-22 09:53:41 +02:00
|
|
|
echo "$l FAIL"
|
2003-05-01 09:38:32 +02:00
|
|
|
diff -u $cns.in ${common_objpfx}localedata/$cns.xout
|
2000-07-16 09:30:42 +02:00
|
|
|
status=1
|
|
|
|
fi
|
1997-03-05 01:35:19 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
exit $status
|
|
|
|
# Local Variables:
|
1997-08-29 03:19:12 +02:00
|
|
|
# mode:shell-script
|
1997-03-05 01:35:19 +01:00
|
|
|
# End:
|