]> sourceware.org Git - glibc.git/blob - localedata/sort-test.sh
Update.
[glibc.git] / localedata / sort-test.sh
1 #! /bin/sh
2
3 common_objpfx=$1; shift
4 run_program_prefix=$1; shift
5 lang=$*
6
7 id=${PPID:-100}
8 here=`pwd`
9
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
20
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 status=1
30 fi
31 done
32
33 exit $status
34 # Local Variables:
35 # mode:shell-script
36 # End:
This page took 0.036994 seconds and 5 git commands to generate.