]> git.ipfire.org Git - thirdparty/glibc.git/blame - localedata/tst-fmon.sh
Update.
[thirdparty/glibc.git] / localedata / tst-fmon.sh
CommitLineData
39e16978
UD
1#! /bin/sh
2
3common_objpfx=$1; shift
4lang=$*
5
6here=`pwd`
7
8# Generate data files.
9for 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
16done
17
18# Run the tests.
19for 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
27done
28
29exit $status
30# Local Variables:
31# mode:shell-script
32# End: