annotate tests/test-nl_langinfo.sh @ 17906:d86e349ad92d

getugroups: Fix Android build * lib/getugroups.c: Don't reference unsupported {get,set,end}grent functions.
author Kevin Cernekee <cernekee@google.com>
date Wed, 11 Feb 2015 15:22:53 -0800
parents ebdcb6dc7134
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12431
ebdcb6dc7134 Tests for module 'nl_langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 #!/bin/sh
ebdcb6dc7134 Tests for module 'nl_langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2
ebdcb6dc7134 Tests for module 'nl_langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 LC_ALL=C ./test-nl_langinfo${EXEEXT} 0 || exit 1
ebdcb6dc7134 Tests for module 'nl_langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4
ebdcb6dc7134 Tests for module 'nl_langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 # Test whether a specific traditional locale is installed.
ebdcb6dc7134 Tests for module 'nl_langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 : ${LOCALE_FR=fr_FR}
ebdcb6dc7134 Tests for module 'nl_langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 if test $LOCALE_FR != none; then
ebdcb6dc7134 Tests for module 'nl_langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 LC_ALL=$LOCALE_FR ./test-nl_langinfo${EXEEXT} 1 || exit 1
ebdcb6dc7134 Tests for module 'nl_langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 fi
ebdcb6dc7134 Tests for module 'nl_langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10
ebdcb6dc7134 Tests for module 'nl_langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 # Test whether a specific UTF-8 locale is installed.
ebdcb6dc7134 Tests for module 'nl_langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 : ${LOCALE_FR_UTF8=fr_FR.UTF-8}
ebdcb6dc7134 Tests for module 'nl_langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 if test $LOCALE_FR_UTF8 != none; then
ebdcb6dc7134 Tests for module 'nl_langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 LC_ALL=$LOCALE_FR_UTF8 ./test-nl_langinfo${EXEEXT} 2 || exit 1
ebdcb6dc7134 Tests for module 'nl_langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 fi
ebdcb6dc7134 Tests for module 'nl_langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16
ebdcb6dc7134 Tests for module 'nl_langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 exit 0