]>
Commit | Line | Data |
---|---|---|
39e16978 UD |
1 | #! /bin/sh |
2 | ||
3 | common_objpfx=$1; shift | |
4 | lang=$* | |
5 | ||
6 | here=`pwd` | |
7 | ||
8 | # Generate data files. | |
9 | for l in $lang; do | |
10 | cns=`echo $l | sed 's/\(.*\)[.][^.]*/\1/'` | |
11 | cn=locales/$cns | |
12 | fn=charmaps/`echo $l | sed 's/.*[.]\([^.]*\)/\1/'` | |
13 | LD_LIBRARY_PATH=$common_objpfx I18NPATH=./locales ${common_objpfx}elf/ld.so \ | |
14 | ${common_objpfx}locale/localedef --quiet -i $cn -f $fn \ | |
15 | ${common_objpfx}localedata/$cns | |
16 | done | |
17 | ||
18 | # Run the tests. | |
19 | for l in $lang; do | |
20 | cns=`echo $l | sed 's/\(.*\)[.][^.]*/\1/'` | |
21 | ||
22 | LOCPATH=$common_objpfx/localedata LC_ALL=$cns \ | |
23 | LD_LIBRARY_PATH=$common_objpfx $common_objpfx/elf/ld.so \ | |
24 | $common_objpfx/localedata/tst-fmon \ | |
25 | > $common_objpfx/localedata/fmon-$cns.out || status=1 | |
26 | cmp -s fmon-$cns.exp $common_objpfx/localedata/fmon-$cns.out || status=1 | |
27 | done | |
28 | ||
29 | exit $status | |
30 | # Local Variables: | |
31 | # mode:shell-script | |
32 | # End: |