Mercurial > gnulib
annotate tests/test-quotearg.sh @ 40221:8c1a17df67e0
tests: Prepare for using valgrind.
tests/*.sh: Invoke all test programs through ${CHECKER}.
tests/*/*.sh: Likewise.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 10 Mar 2019 11:32:11 +0100 |
parents | 80ac14ef4e0b |
children |
rev | line source |
---|---|
11093
fc5faccd30e7
Make test-quotearg work on MacOS X and AIX.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
1 #!/bin/sh |
fc5faccd30e7
Make test-quotearg work on MacOS X and AIX.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
2 |
fc5faccd30e7
Make test-quotearg work on MacOS X and AIX.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
3 # Choose an existing locale. The locale encoding does not matter; see the |
fc5faccd30e7
Make test-quotearg work on MacOS X and AIX.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
4 # comment in test-quotearg.po. |
fc5faccd30e7
Make test-quotearg work on MacOS X and AIX.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
5 if test $LOCALE_FR_UTF8 != none; then |
fc5faccd30e7
Make test-quotearg work on MacOS X and AIX.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
6 locale=$LOCALE_FR_UTF8 |
fc5faccd30e7
Make test-quotearg work on MacOS X and AIX.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
7 else |
fc5faccd30e7
Make test-quotearg work on MacOS X and AIX.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
8 if test $LOCALE_FR != none; then |
fc5faccd30e7
Make test-quotearg work on MacOS X and AIX.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
9 locale=$LOCALE_FR |
fc5faccd30e7
Make test-quotearg work on MacOS X and AIX.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
10 else |
fc5faccd30e7
Make test-quotearg work on MacOS X and AIX.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
11 locale=none |
fc5faccd30e7
Make test-quotearg work on MacOS X and AIX.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
12 fi |
fc5faccd30e7
Make test-quotearg work on MacOS X and AIX.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
13 fi |
fc5faccd30e7
Make test-quotearg work on MacOS X and AIX.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
14 |
14340
80ac14ef4e0b
quotearg test: Avoid test failure on mingw.
Bruno Haible <bruno@clisp.org>
parents:
11093
diff
changeset
|
15 # Work around a limitation of gettext() on native Windows in gettext 0.18.1: |
80ac14ef4e0b
quotearg test: Avoid test failure on mingw.
Bruno Haible <bruno@clisp.org>
parents:
11093
diff
changeset
|
16 # the locale identifiers in the environment variables LC_ALL etc. have to |
80ac14ef4e0b
quotearg test: Avoid test failure on mingw.
Bruno Haible <bruno@clisp.org>
parents:
11093
diff
changeset
|
17 # be in Unix conventions, not in native Window conventions. |
80ac14ef4e0b
quotearg test: Avoid test failure on mingw.
Bruno Haible <bruno@clisp.org>
parents:
11093
diff
changeset
|
18 if test $locale = French_France.65001; then |
80ac14ef4e0b
quotearg test: Avoid test failure on mingw.
Bruno Haible <bruno@clisp.org>
parents:
11093
diff
changeset
|
19 locale=fr_FR.UTF-8 |
80ac14ef4e0b
quotearg test: Avoid test failure on mingw.
Bruno Haible <bruno@clisp.org>
parents:
11093
diff
changeset
|
20 fi |
80ac14ef4e0b
quotearg test: Avoid test failure on mingw.
Bruno Haible <bruno@clisp.org>
parents:
11093
diff
changeset
|
21 if test $locale = French_France.1252; then |
80ac14ef4e0b
quotearg test: Avoid test failure on mingw.
Bruno Haible <bruno@clisp.org>
parents:
11093
diff
changeset
|
22 locale=fr_FR.CP1252 |
80ac14ef4e0b
quotearg test: Avoid test failure on mingw.
Bruno Haible <bruno@clisp.org>
parents:
11093
diff
changeset
|
23 fi |
80ac14ef4e0b
quotearg test: Avoid test failure on mingw.
Bruno Haible <bruno@clisp.org>
parents:
11093
diff
changeset
|
24 |
11093
fc5faccd30e7
Make test-quotearg work on MacOS X and AIX.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
25 LOCALE=$locale LOCALEDIR="$srcdir/locale" \ |
40221
8c1a17df67e0
tests: Prepare for using valgrind.
Bruno Haible <bruno@clisp.org>
parents:
14340
diff
changeset
|
26 ${CHECKER} ./test-quotearg${EXEEXT} |