]> 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 lang=$*
5
6 id=${PPID:-100}
7 here=`pwd`
8
9 # Generate data files.
10 for l in $lang; do
11 cns=`echo $l | sed 's/\(.*\)[.][^.]*/\1/'`
12 cn=locales/$cns
13 fn=charmaps/`echo $l | sed 's/.*[.]\([^.]*\)/\1/'`
14 LD_LIBRARY_PATH=$common_objpfx I18NPATH=./locales ${common_objpfx}elf/ld.so \
15 ${common_objpfx}locale/localedef --quiet -i $cn -f $fn \
16 ${common_objpfx}localedata/$cns
17 done
18
19 # Run collation tests.
20 status=0
21 for l in $lang; do
22 cns=`echo $l | sed 's/\(.*\)[.][^.]*/\1/'`
23 LOCPATH=$common_objpfx/localedata LC_ALL=$cns \
24 LD_LIBRARY_PATH=$common_objpfx $common_objpfx/elf/ld.so \
25 $common_objpfx/localedata/collate-test $id < $cns.in \
26 > $common_objpfx/localedata/$cns.out || status=1
27 cmp -s $cns.in $common_objpfx/localedata/$cns.out || status=1
28
29 LOCPATH=$common_objpfx/localedata LC_ALL=$cns \
30 LD_LIBRARY_PATH=$common_objpfx $common_objpfx/elf/ld.so \
31 $common_objpfx/localedata/xfrm-test $id < $cns.in \
32 > $common_objpfx/localedata/$cns.xout || status=1
33 cmp -s $cns.in $common_objpfx/localedata/$cns.xout || status=1
34 done
35
36 exit $status
37 # Local Variables:
38 # mode:shell-script
39 # End:
This page took 0.04284 seconds and 6 git commands to generate.