diff options
author | Daiki Ueno <ueno@gnu.org> | 2013-07-10 17:14:57 +0900 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2013-07-10 18:34:09 +0900 |
commit | 6c0abd26de617b218e86360885c1a6674fe1a4ea (patch) | |
tree | 7091011ed64116821ef6b5287d5713a7f605f6cd /gettext-tools/tests/format-c-3 | |
parent | b877f85b1825a080fc7562bfbe4ed697d94016e8 (diff) | |
download | external_gettext-6c0abd26de617b218e86360885c1a6674fe1a4ea.zip external_gettext-6c0abd26de617b218e86360885c1a6674fe1a4ea.tar.gz external_gettext-6c0abd26de617b218e86360885c1a6674fe1a4ea.tar.bz2 |
gettext-tools: convert tests to use init.sh from Gnulib
Diffstat (limited to 'gettext-tools/tests/format-c-3')
-rwxr-xr-x | gettext-tools/tests/format-c-3 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gettext-tools/tests/format-c-3 b/gettext-tools/tests/format-c-3 index 1e98422..9c8082b 100755 --- a/gettext-tools/tests/format-c-3 +++ b/gettext-tools/tests/format-c-3 @@ -1,4 +1,5 @@ #! /bin/sh +. "${srcdir=.}/init.sh"; path_prepend_ . ../src # Test ISO C 99 <inttypes.h> format string directives. @@ -7,7 +8,7 @@ trap 'rm -fr $tmpfiles' 1 2 3 15 tmpfiles="$tmpfiles fc3.tmp fc3.pot" : ${XGETTEXT=xgettext} -${XGETTEXT} -o fc3.tmp --omit-header --no-location ${top_srcdir}/tests/format-c-3-prg.c +${XGETTEXT} -o fc3.tmp --omit-header --no-location ../${srcdir}/format-c-3-prg.c test $? = 0 || { rm -fr $tmpfiles; exit 1; } LC_ALL=C tr -d '\r' < fc3.tmp > fc3.pot test $? = 0 || { rm -fr $tmpfiles; exit 1; } @@ -47,7 +48,7 @@ test $? = 0 || { rm -fr $tmpfiles; exit 1; } : ${DIFF=diff} ${DIFF} fc3-de.po fc3-de.po.un || exit 1 -LANGUAGE= ./fc3 de_DE +LANGUAGE= ../fc3 de_DE result=$? rm -fr $tmpfiles |