* sysdeps/unix/sysv/linux/ia64/setcontext.S: Pass fourth argument to
[glibc.git] / localedata / sort-test.sh
bloba1ec24060a966b5a28f3865117dad3f4efa48497
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 diff -u $cns.in ${common_objpfx}localedata/$cns.xout
31 status=1
33 done
35 exit $status
36 # Local Variables:
37 # mode:shell-script
38 # End: