[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gettext-0.13: make check: xgettext-glade-3
From: |
Jouko Orava |
Subject: |
gettext-0.13: make check: xgettext-glade-3 |
Date: |
Mon, 1 Dec 2003 09:10:16 +0200 (EET) |
Hello,
I'm compiling gettext-0.13, no glade or expat present.
xgettext-glade-1 and xgettext-glade-2 tests are skipped
when make check is run, but xgettext-glade-3 fails.
(It is the only test that fails for me).
Looking at the source, the xgettext-glade-3 file
seems to be missing the glade support test altogether
(on the first eighteen or so lines in the two other files)
- instead of skipping when appropriate, the test always fails.
After I added the test, verbatim from the two other files,
make check skips xgettext-glade-3 as it should .. for me.
I'm not certain what exactly the test file should contain
("<glade-interface/>" or "<GTK-interface/>"), but assuming
xgettext-glade-3 should be skipped whenever the two other
glade tests are skipped, the patch is below.
It is really trivial, copied from xgettext-glade-1 (or -2),
and the pot file name changed to xg-gl-3.pot.
Yours,
Jouko Orava
--- gettext-0.13-original/gettext-tools/tests/xgettext-glade-3
+++ gettext-0.13/gettext-tools/tests/xgettext-glade-3
@@ -5,6 +5,17 @@
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
+tmpfiles="$tmpfiles empty.glade"
+cat <<EOF > empty.glade
+<?xml version="1.0"?>
+<GTK-Interface/>
+EOF
+
+tmpfiles="$tmpfiles xg-gl-3.pot"
+: ${XGETTEXT=xgettext}
+${XGETTEXT} -o xg-gl-3.pot empty.glade 2>/dev/null
+test $? = 0 || { rm -fr $tmpfiles; exit 77; }
+
tmpfiles="$tmpfiles asciitable.glade2"
cat <<EOF > asciitable.glade2
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
- gettext-0.13: make check: xgettext-glade-3,
Jouko Orava <=