Update.
[glibc.git] / localedata / sort-test.sh
blobd47f20911f645479ab532e5261bf78fe3b4ec41f
1 #! /bin/sh
3 common_objpfx=$1; shift
4 run_program_prefix=$1; shift
5 lang=$*
7 id=${PPID:-100}
8 here=`pwd`
10 # Run collation tests.
11 status=0
12 for l in $lang; do
13 here=0
14 cns=`echo $l | sed 's/\(.*\)[.][^.]*/\1/'`
15 LOCPATH=${common_objpfx}localedata GCONV_PATH=${common_objpfx}/iconvdata \
16 LC_ALL=$l ${run_program_prefix} \
17 ${common_objpfx}localedata/collate-test $id < $cns.in \
18 > ${common_objpfx}localedata/$cns.out || here=1
19 cmp -s $cns.in ${common_objpfx}localedata/$cns.out || here=1
21 LOCPATH=${common_objpfx}localedata GCONV_PATH=${common_objpfx}/iconvdata \
22 LC_ALL=$l ${run_program_prefix} \
23 ${common_objpfx}localedata/xfrm-test $id < $cns.in \
24 > ${common_objpfx}localedata/$cns.xout || here=1
25 cmp -s $cns.in ${common_objpfx}localedata/$cns.xout || here=1
26 if test $here -eq 0; then
27 echo "$l OK"
28 else
29 echo "$l FAIL"
30 status=1
32 done
34 exit $status
35 # Local Variables:
36 # mode:shell-script
37 # End: