summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/xgettext-c-1
blob: 039e7ec7229803bcfe4431070140d54d2d8d8cad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/sh
. "${srcdir=.}/init.sh"; path_prepend_ . ../src

# This test often fails during development. It works after "make dist".

# Test C support.

: ${XGETTEXT=xgettext}
${XGETTEXT} -d xg-c-1.tmp -k_ --omit-header --no-location \
 "$abs_top_srcdir"/src/xgettext.c "$abs_top_srcdir"/src/msgfmt.c || exit 1
LC_ALL=C tr -d '\r' < xg-c-1.tmp.po > xg-c-1.po || exit 1

: ${DIFF=diff}
${DIFF} "$abs_srcdir"/xg-c-1.ok.po xg-c-1.po
result=$?

exit $result