~ubuntu-branches/ubuntu/trusty/eglibc/trusty

« back to all changes in this revision

Viewing changes to localedata/tst-fmon.sh

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2013-01-10 18:39:35 UTC
  • mfrom: (1.5.2) (4.4.24 experimental)
  • Revision ID: package-import@ubuntu.com-20130110183935-afsgfxkmg7wk5eaj
Tags: 2.17-0ubuntu1
* Merge with Debian, bringing in a new upstream and many small fixes:
  - patches/any/cvs-malloc-deadlock.diff: Dropped, merged upstream.
  - patches/ubuntu/lddebug-scopes.diff: Rebase for upstream changes.
  - patches/ubuntu/local-CVE-2012-3406.diff: Rebased against upstream.
  - patches/ubuntu/no-asm-mtune-i686.diff: Fixed in recent binutils.
* This upstream merge fixes a nasty hang in pulseaudio (LP: #1085342)
* Bump MIN_KERNEL_SUPPORTED to 2.6.32 on ARM, now that we no longer
  have to support shonky 2.6.31 kernels on imx51 babbage builders.
* Drop patches/ubuntu/local-disable-nscd-host-caching.diff, as these
  issues were apparently resolved upstream a while ago (LP: #613662)
* Fix the compiled-in bug URL to point to launchpad.net, not Debian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Testing the implementation of strfmon(3).
3
 
# Copyright (C) 1996-1998, 2000, 2003, 2004 Free Software Foundation, Inc.
 
3
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
4
4
# This file is part of the GNU C Library.
5
5
# Contributed by Jochen Hein <jochen.hein@delphi.central.de>, 1997.
6
 
#
7
6
 
8
7
# The GNU C Library is free software; you can redistribute it and/or
9
8
# modify it under the terms of the GNU Lesser General Public
19
18
# License along with the GNU C Library; if not, see
20
19
# <http://www.gnu.org/licenses/>.
21
20
 
 
21
set -e
 
22
 
22
23
common_objpfx=$1
23
24
run_program_prefix=$2
24
25
datafile=$3
31
32
for cns in `cd ./tst-fmon-locales && ls tstfmon_*`; do
32
33
    cn=tst-fmon-locales/$cns
33
34
    fn=charmaps/ISO-8859-1
34
 
    # If run_program_prefix includes a cross-testing wrapper based on a
35
 
    # program like ssh, it may steal input from the while loop, so
36
 
    # redirect its stdin from /dev/null.
37
35
    I18NPATH=. GCONV_PATH=${common_objpfx}iconvdata \
38
36
    LOCPATH=${common_objpfx}localedata LC_ALL=C LANGUAGE=C \
39
37
    ${run_program_prefix} ${common_objpfx}locale/localedef \
40
 
    --quiet -i $cn -f $fn ${common_objpfx}localedata/$cns < /dev/null
 
38
    --quiet -i $cn -f $fn ${common_objpfx}localedata/$cns
41
39
done
42
40
 
43
41
# Run the tests.
47
45
    case "$locale" in '#'*) continue ;; esac
48
46
    if [ -n "$format" ]; then
49
47
        expect=`echo "$expect" | sed 's/^\"\(.*\)\"$/\1/'`
50
 
        # If run_program_prefix includes a cross-testing wrapper based on a
51
 
        # program like ssh, it may steal input from the while loop, so
52
 
        # redirect its stdin from /dev/null.
53
48
        LOCPATH=${common_objpfx}localedata \
54
49
        GCONV_PATH=${common_objpfx}/iconvdata \
55
50
        ${run_program_prefix} ${common_objpfx}localedata/tst-fmon \