2 # Test collation using xfrm-test.
3 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
4 # This file is part of the GNU C Library.
6 # The GNU C Library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License, or (at your option) any later version.
11 # The GNU C Library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with the GNU C Library; if not, see
18 # <http://www.gnu.org/licenses/>.
22 common_objpfx
=$1; shift
23 test_program_prefix
=$1; shift
29 # Run collation tests.
33 cns
=`echo $l | sed 's/\(.*\)[.][^.]*/\1/'`
34 LOCPATH
=${common_objpfx}localedata GCONV_PATH
=${common_objpfx}/iconvdata \
35 LC_ALL
=$l ${test_program_prefix} \
36 ${common_objpfx}localedata
/collate-test
$id < $cns.
in \
37 > ${common_objpfx}localedata
/$cns.out || here
=1
38 cmp -s $cns.
in ${common_objpfx}localedata
/$cns.out || here
=1
39 if test $here -eq 0; then
40 echo "$l collate-test OK"
42 echo "$l collate-test FAIL"
43 diff -u $cns.
in ${common_objpfx}localedata
/$cns.out |
sed 's/^/ /'
47 LOCPATH
=${common_objpfx}localedata GCONV_PATH
=${common_objpfx}/iconvdata \
48 LC_ALL
=$l ${test_program_prefix} \
49 ${common_objpfx}localedata
/xfrm-test
$id < $cns.
in \
50 > ${common_objpfx}localedata
/$cns.xout || here
=1
51 cmp -s $cns.
in ${common_objpfx}localedata
/$cns.xout || here
=1
52 if test $here -eq 0; then
53 echo "$l xfrm-test OK"
55 echo "$l xfrm-test FAIL"
56 diff -u $cns.
in ${common_objpfx}localedata
/$cns.xout |
sed 's/^/ /'