]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Explain why tests are skipped.
authorBruno Haible <bruno@clisp.org>
Fri, 9 Jun 2006 20:22:17 +0000 (20:22 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:13:22 +0000 (12:13 +0200)
41 files changed:
gettext-tools/tests/ChangeLog
gettext-tools/tests/Makefile.am
gettext-tools/tests/format-c-5
gettext-tools/tests/format-c-5-prg.c
gettext-tools/tests/gettext-3
gettext-tools/tests/gettext-4
gettext-tools/tests/gettext-5
gettext-tools/tests/gettext-6
gettext-tools/tests/gettext-7
gettext-tools/tests/lang-bash
gettext-tools/tests/lang-c
gettext-tools/tests/lang-c++
gettext-tools/tests/lang-clisp
gettext-tools/tests/lang-csharp
gettext-tools/tests/lang-gawk
gettext-tools/tests/lang-guile
gettext-tools/tests/lang-java
gettext-tools/tests/lang-librep
gettext-tools/tests/lang-objc
gettext-tools/tests/lang-pascal
gettext-tools/tests/lang-perl-1
gettext-tools/tests/lang-perl-2
gettext-tools/tests/lang-php
gettext-tools/tests/lang-python-1
gettext-tools/tests/lang-python-2
gettext-tools/tests/lang-sh
gettext-tools/tests/lang-smalltalk
gettext-tools/tests/lang-tcl
gettext-tools/tests/msgfilter-1
gettext-tools/tests/msgfilter-2
gettext-tools/tests/msgfilter-3
gettext-tools/tests/msgfilter-4
gettext-tools/tests/msgunfmt-csharp-1
gettext-tools/tests/msgunfmt-java-1
gettext-tools/tests/msgunfmt-tcl-1
gettext-tools/tests/recode-sr-latin-1
gettext-tools/tests/recode-sr-latin-2
gettext-tools/tests/testlocale.c
gettext-tools/tests/xgettext-glade-1
gettext-tools/tests/xgettext-glade-2
gettext-tools/tests/xgettext-glade-3

index 8b54fabf69cc9cdc68aef485e45c54fba38428b8..f29f8fabf6ced6493e8d7d8ad233ace7997089cc 100644 (file)
@@ -1,3 +1,49 @@
+2006-06-03  Bruno Haible  <bruno@clisp.org>
+
+       Explain why tests are skipped.
+       * Makefile.am (TESTS_ENVIRONMENT): Also define JAVA_CHOICE, BUILDJAVA,
+       CSHARPCHOICE, BUILDCSHARP.
+       * testlocale.c (main): Don't print "Couldn't set locale.".
+       * format-c-5-prg.c (main): Likewise.
+       * format-c-5: Print a message explaining why the test is skipped.
+       * gettext-3: Likewise.
+       * gettext-4: Likewise.
+       * gettext-5: Likewise.
+       * gettext-6: Likewise.
+       * gettext-7: Likewise.
+       * lang-bash: Likewise.
+       * lang-clisp: Likewise.
+       * lang-csharp: Likewise.
+       * lang-gawk: Likewise.
+       * lang-guile: Likewise.
+       * lang-java: Likewise.
+       * lang-librep: Likewise.
+       * lang-pascal: Likewise.
+       * lang-perl-1: Likewise.
+       * lang-perl-2: Likewise.
+       * lang-php: Likewise.
+       * lang-python-1: Likewise.
+       * lang-python-2: Likewise.
+       * lang-sh: Likewise.
+       * lang-smalltalk: Likewise.
+       * lang-tcl: Likewise.
+       * msgfilter-1: Likewise.
+       * msgfilter-2: Likewise.
+       * msgfilter-3: Likewise.
+       * msgfilter-4: Likewise.
+       * msgunfmt-csharp-1: Likewise.
+       * msgunfmt-java-1: Likewise.
+       * msgunfmt-tcl-1: Likewise.
+       * recode-sr-latin-1: Likewise.
+       * recode-sr-latin-2: Likewise.
+       * xgettext-glade-1: Likewise.
+       * xgettext-glade-2: Likewise.
+       * xgettext-glade-3: Likewise.
+       * lang-c: Print a message explaining why the test is skipped. Don't
+       print "Couldn't set locale.".
+       * lang-c++: Likewise.
+       * lang-objc: Likewise.
+
 2006-05-31  Bruno Haible  <bruno@clisp.org>
 
        * xgettext-ycp-3: New file, from Karl Eichwalder <ke@suse.de>.
index 8b6529ee5a41268bf4f1368711b4f7243ff53ad2..92c162de84603f5b38bbfbca42b309ffc54b71ab 100644 (file)
@@ -159,7 +159,11 @@ TESTS_ENVIRONMENT = top_srcdir=$(top_srcdir) \
                    CXX='@CXX@' CXXFLAGS='@CXXFLAGS@' \
                    CPPFLAGS='@CPPFLAGS@' LDFLAGS='@LDFLAGS@' \
                    LTLIBINTL='@LTLIBINTL@' \
+                   JAVA_CHOICE='@JAVA_CHOICE@' \
+                   BUILDJAVA='@BUILDJAVA@' \
                    TESTJAVA='@TESTJAVA@' \
+                   CSHARP_CHOICE='@CSHARP_CHOICE@' \
+                   BUILDCSHARP='@BUILDCSHARP@' \
                    TESTCSHARP='@TESTCSHARP@' \
                    TESTLIBASPRINTF='@TESTLIBASPRINTF@' \
                    LOCALE_FR='@LOCALE_FR@' \
index 8b9b252e01343bb02e8710a4f0b24f913644d3ac..00077afa6041778c27aa66c43e3e87f7d92a6e09 100755 (executable)
@@ -47,7 +47,13 @@ ${DIFF} fa.po.strip fa.po.tmp || exit 1
 LANGUAGE= ./fc5 fa_IR
 case $? in
   0) ;;
-  77) rm -fr $tmpfiles; exit 77;;
+  77)
+    if test -f /usr/bin/localedef; then
+      echo "Skipping test: locale fa_IR not installed"
+    else
+      echo "Skipping test: locale fa_IR not supported"
+    fi
+    rm -fr $tmpfiles; exit 77;;
   *) exit 1;;
 esac
 
index bc477e8da23892384c82d17051591c44ae618e09..3ebb2f63ef3b8d7585d96af3f20bf151ecbb1701 100644 (file)
@@ -1,5 +1,5 @@
 /* Test program, used by the format-c-5 test.
-   Copyright (C) 2004 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2006 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -48,10 +48,8 @@ main (int argc, char *argv[])
 
   xsetenv ("LC_ALL", argv[1], 1);
   if (setlocale (LC_ALL, "") == NULL)
-    {
-      fprintf (stderr, "Couldn't set locale.\n");
-      exit (77);
-    }
+    /* Couldn't set locale.  */
+    exit (77);
 
   textdomain ("fc5");
   bindtextdomain ("fc5", ".");
index b45f5cecdd0d128856bd4f4ccbb9e39e6d06cfed..f7f7e6292ee2060c9dfb7cd55751bf12a1dc1752 100755 (executable)
@@ -7,11 +7,28 @@ tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
 # This test works only on glibc systems.
-grep '@GLIBC2@.*yes' ../config.status >/dev/null || exit 77
+grep '@GLIBC2@.*yes' ../config.status >/dev/null || {
+  echo "Skipping test: not a glibc system"
+  exit 77
+}
 
 # This test works only on systems that have a de_DE and fr_FR locale installed.
-LC_ALL=de_DE ./testlocale || exit 77
-LC_ALL=fr_FR ./testlocale || exit 77
+LC_ALL=de_DE ./testlocale || {
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: locale de_DE not installed"
+  else
+    echo "Skipping test: locale de_DE not supported"
+  fi
+  exit 77
+}
+LC_ALL=fr_FR ./testlocale || {
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: locale fr_FR not installed"
+  else
+    echo "Skipping test: locale fr_FR not supported"
+  fi
+  exit 77
+}
 
 tmpfiles="$tmpfiles de_DE fr_FR"
 test -d de_DE || mkdir de_DE
index aa3332b9a7ee31b81b20c59c3d14dd87896da2ea..f70eb18fcdf7950c7d14cd91be6487e5847b600d 100755 (executable)
@@ -6,7 +6,14 @@ tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
 # This test works only on systems that have a de_DE.ISO-8859-1 locale installed.
-LC_ALL=de_DE.ISO-8859-1 ./testlocale || exit 77
+LC_ALL=de_DE.ISO-8859-1 ./testlocale || {
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: locale de_DE.ISO-8859-1 not installed"
+  else
+    echo "Skipping test: locale de_DE.ISO-8859-1 not supported"
+  fi
+  exit 77
+}
 
 tmpfiles="$tmpfiles de_DE"
 test -d de_DE || mkdir de_DE
index beda92834146c88f99f332a32e875ccec6405d1f..955b1a4b0931c488d56c29cf971bdf8c1063357e 100755 (executable)
@@ -7,12 +7,29 @@ tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
 # This test works only on glibc systems.
-grep '@GLIBC2@.*yes' ../config.status >/dev/null || exit 77
+grep '@GLIBC2@.*yes' ../config.status >/dev/null || {
+  echo "Skipping test: not a glibc system"
+  exit 77
+}
 
 # This test works only on systems that have a de_DE.ISO-8859-1 and
 # de_DE.UTF-8 locale installed.
-LC_ALL=de_DE.ISO-8859-1 ./testlocale || exit 77
-LC_ALL=de_DE.UTF-8      ./testlocale || exit 77
+LC_ALL=de_DE.ISO-8859-1 ./testlocale || {
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: locale de_DE.ISO-8859-1 not installed"
+  else
+    echo "Skipping test: locale de_DE.ISO-8859-1 not supported"
+  fi
+  exit 77
+}
+LC_ALL=de_DE.UTF-8 ./testlocale || {
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: locale de_DE.UTF-8 not installed"
+  else
+    echo "Skipping test: locale de_DE.UTF-8 not supported"
+  fi
+  exit 77
+}
 
 tmpfiles="$tmpfiles de_DE"
 test -d de_DE || mkdir de_DE
index f029aeb9e99ae4080644c72a82723795dfa50257..dd56c62df0b3eef15481904bf416deba06058859 100755 (executable)
@@ -8,11 +8,28 @@ tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
 # This test works only on glibc systems.
-grep '@GLIBC2@.*yes' ../config.status >/dev/null || exit 77
+grep '@GLIBC2@.*yes' ../config.status >/dev/null || {
+  echo "Skipping test: not a glibc system"
+  exit 77
+}
 
 # This test works only on systems that have a de_DE and fr_FR locale installed.
-LC_ALL=de_DE ./testlocale || exit 77
-LC_ALL=fr_FR ./testlocale || exit 77
+LC_ALL=de_DE ./testlocale || {
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: locale de_DE not installed"
+  else
+    echo "Skipping test: locale de_DE not supported"
+  fi
+  exit 77
+}
+LC_ALL=fr_FR ./testlocale || {
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: locale fr_FR not installed"
+  else
+    echo "Skipping test: locale fr_FR not supported"
+  fi
+  exit 77
+}
 
 tmpfiles="$tmpfiles de_DE fr_FR"
 test -d de_DE || mkdir de_DE
index 2ff145cc03e456bb7e2857dc747e0e5d18ce3c92..598ee8c9ae8e26106b2f647a5a6f7dc534143bb6 100755 (executable)
@@ -8,12 +8,29 @@ tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
 # This test works only on glibc systems.
-grep '@GLIBC2@.*yes' ../config.status >/dev/null || exit 77
+grep '@GLIBC2@.*yes' ../config.status >/dev/null || {
+  echo "Skipping test: not a glibc system"
+  exit 77
+}
 
 # This test works only on systems that have a de_DE.ISO-8859-1 and
 # de_DE.UTF-8 locale installed.
-LC_ALL=de_DE.ISO-8859-1 ./testlocale || exit 77
-LC_ALL=de_DE.UTF-8      ./testlocale || exit 77
+LC_ALL=de_DE.ISO-8859-1 ./testlocale || {
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: locale de_DE.ISO-8859-1 not installed"
+  else
+    echo "Skipping test: locale de_DE.ISO-8859-1 not supported"
+  fi
+  exit 77
+}
+LC_ALL=de_DE.UTF-8 ./testlocale || {
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: locale de_DE.UTF-8 not installed"
+  else
+    echo "Skipping test: locale de_DE.UTF-8 not supported"
+  fi
+  exit 77
+}
 
 tmpfiles="$tmpfiles de_DE"
 test -d de_DE || mkdir de_DE
index f9397b0996b70e622bc642f054c232b0e3b730cb..4700a0eacce0897ef9a109e86f8056a6bcf84017 100755 (executable)
@@ -83,10 +83,10 @@ ${MSGFMT} -o fr/LC_MESSAGES/prog.mo fr.po
 
 # Test for presence of bash version 2.0 or newer.
 (bash -c :) >/dev/null 2>/dev/null \
-  || { rm -fr $tmpfiles; exit 77; }
+  || { echo "Skipping test: bash not found"; rm -fr $tmpfiles; exit 77; }
 case `bash -c 'echo $BASH_VERSION'` in
   [2-9].*) ;;
-  *) rm -fr $tmpfiles; exit 77;;
+  *) echo "Skipping test: bash version too old"; rm -fr $tmpfiles; exit 77;;
 esac
 
 # Test which of the fr_FR locales are installed.
@@ -109,6 +109,11 @@ if test $LOCALE_FR_UTF8 != none; then
   esac
 fi
 if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: no french locale is installed"
+  else
+    echo "Skipping test: no french locale is supported"
+  fi
   rm -fr $tmpfiles; exit 77
 fi
 
@@ -133,13 +138,19 @@ EOF
 if test $LOCALE_FR != none; then
   LANGUAGE= LC_ALL=$LOCALE_FR bash ./prog.sh 2 > prog.out || exit 1
   : ${DIFF=diff}
-  ${DIFF} prog.nok prog.out > /dev/null && { rm -fr $tmpfiles; exit 77; }
+  ${DIFF} prog.nok prog.out > /dev/null && {
+    echo "Skipping test: bash is built without i18n support"
+    rm -fr $tmpfiles; exit 77
+  }
   ${DIFF} prog.ok prog.out || exit 1
 fi
 if test $LOCALE_FR_UTF8 != none; then
   LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 bash ./prog.sh 2 > prog.out || exit 1
   : ${DIFF=diff}
-  ${DIFF} prog.nok prog.out > /dev/null && { rm -fr $tmpfiles; exit 77; }
+  ${DIFF} prog.nok prog.out > /dev/null && {
+    echo "Skipping test: bash is built without i18n support"
+    rm -fr $tmpfiles; exit 77
+  }
   ${DIFF} prog.oku prog.out || exit 1
 fi
 
index 46c3bf5461bc1399ed1256a6006d2a777b3506d8..e341b9990a071716ef48284fb93286d03602e3f1 100755 (executable)
@@ -23,10 +23,8 @@ int main (int argc, char *argv[])
 
   xsetenv ("LC_ALL", argv[1], 1);
   if (setlocale (LC_ALL, "") == NULL)
-    {
-      fprintf (stderr, "Couldn't set locale.\n");
-      exit (77);
-    }
+    /* Couldn't set locale.  */
+    exit (77);
 
   textdomain ("prog");
   bindtextdomain ("prog", ".");
@@ -148,6 +146,11 @@ if test $LOCALE_FR_UTF8 != none; then
   esac
 fi
 if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: no french locale is installed"
+  else
+    echo "Skipping test: no french locale is supported"
+  fi
   rm -fr $tmpfiles; exit 77
 fi
 
index 7e4892e7e7e2c0d848d89edafb2960919cff2b05..af96ecf880ce4c605054879354c07ce364dcc27c 100755 (executable)
@@ -8,8 +8,14 @@ tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
 # Test whether a C++ compiler is found and libasprintf is built.
-test "${CXX}" != ":" || exit 77
-test "${TESTLIBASPRINTF}" = yes || exit 77
+test "${CXX}" != ":" || {
+  echo "Skipping test: no C++ compiler found"
+  exit 77
+}
+test "${TESTLIBASPRINTF}" = yes || {
+  echo "Skipping test: configured with --disable-libasprintf"
+  exit 77
+}
 
 tmpfiles="$tmpfiles prog.cc"
 cat <<\EOF > prog.cc
@@ -38,10 +44,8 @@ int main (int argc, char *argv[])
 
   xsetenv ("LC_ALL", argv[1], 1);
   if (setlocale (LC_ALL, "") == NULL)
-    {
-      cerr << "Couldn't set locale." << endl;
-      exit (77);
-    }
+    // Couldn't set locale.
+    exit (77);
 
   textdomain ("prog");
   bindtextdomain ("prog", ".");
@@ -161,6 +165,11 @@ if test $LOCALE_FR_UTF8 != none; then
   esac
 fi
 if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: no french locale is installed"
+  else
+    echo "Skipping test: no french locale is supported"
+  fi
   rm -fr $tmpfiles; exit 77
 fi
 
index dcd8b88fb0b2c9156c4b120719f1d3c38c99aa81..b01b36a7589b333e86757446b9e95ca1b3e35ecb 100755 (executable)
@@ -85,16 +85,18 @@ ${MSGFMT} -o fr/LC_MESSAGES/prog.mo fr.po
 # Use clisp for the comparison of the version numbers; neither 'expr' nor 'bc'
 # can deal with floating-point numbers.
 (clisp --version) >/dev/null 2>/dev/null \
-  || { rm -fr $tmpfiles; exit 77; }
+  || { echo "Skipping test: clisp not found"; rm -fr $tmpfiles; exit 77; }
 version=`clisp --version | sed -n -e 1p | sed -e 's/^[^0-9]*//'`
 case $version in
   19* | 20*) # older than 2.25
-    rm -fr $tmpfiles; exit 77;;
+    echo "Skipping test: clisp version too old"; rm -fr $tmpfiles; exit 77;;
 esac
 version=`echo $version | sed -e 's/^\([0-9]*\.[0-9]*\).*/\1/'`
 clisp -norc -x "(sys::exit #+GETTEXT (not (>= $version 2.28)) #-GETTEXT t)" \
       >/dev/null \
-  || { rm -fr $tmpfiles; exit 77; }
+  || { echo "Skipping test: clisp was built without gettext support"
+       rm -fr $tmpfiles; exit 77
+     }
 
 # Test which of the fr_FR locales are installed.
 : ${LOCALE_FR=fr_FR}
@@ -116,6 +118,11 @@ if test $LOCALE_FR_UTF8 != none; then
   esac
 fi
 if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: no french locale is installed"
+  else
+    echo "Skipping test: no french locale is supported"
+  fi
   rm -fr $tmpfiles; exit 77
 fi
 
index 27a4c86eb5777702ff59186afd85329edd80ce62..b4e3276b174a39620c27058845d2c8e126874b9b 100755 (executable)
@@ -12,7 +12,18 @@ tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
 # Test whether we can build and test C# programs.
-test "${TESTCSHARP}" = yes || exit 77
+test "${CSHARP_CHOICE}" != no || {
+  echo "Skipping test: configured with --disable-csharp"
+  exit 77
+}
+test "${BUILDCSHARP}" = yes || {
+  echo "Skipping test: C# compiler not found"
+  exit 77
+}
+test "${TESTCSHARP}" = yes || {
+  echo "Skipping test: C# engine not found"
+  exit 77
+}
 
 tmpfiles="$tmpfiles program.cs"
 cat <<\EOF > program.cs
@@ -118,6 +129,11 @@ if test $LOCALE_FR_UTF8 != none; then
   esac
 fi
 if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: no french locale is installed"
+  else
+    echo "Skipping test: no french locale is supported"
+  fi
   rm -fr $tmpfiles; exit 77
 fi
 
index cafa3665c492491e35e45895ccf44c6fdf772395..20b236184ed773311a72bc20661e2bd6b9574042 100755 (executable)
@@ -87,10 +87,10 @@ ${MSGFMT} -o fr/LC_MESSAGES/prog.mo fr.po
 
 # Test for presence of gawk version 3.1.1 or newer.
 (gawk --version) >/dev/null 2>/dev/null \
-  || { rm -fr $tmpfiles; exit 77; }
+  || { echo "Skipping test: gawk not found"; rm -fr $tmpfiles; exit 77; }
 case `gawk --version 2>&1 | sed -e 's/^[^0-9]*//'` in
   0.* | 1.* | 2.* | 3.0* | 3.1.0*)
-    rm -fr $tmpfiles; exit 77;;
+    echo "Skipping test: gawk version too old"; rm -fr $tmpfiles; exit 77;;
 esac
 
 # Test which of the fr_FR locales are installed.
@@ -113,6 +113,11 @@ if test $LOCALE_FR_UTF8 != none; then
   esac
 fi
 if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: no french locale is installed"
+  else
+    echo "Skipping test: no french locale is supported"
+  fi
   rm -fr $tmpfiles; exit 77
 fi
 
@@ -121,11 +126,17 @@ fi
 : ${LOCALE_FR_UTF8=fr_FR.UTF-8}
 if test $LOCALE_FR != none; then
   LANGUAGE= LC_ALL=$LOCALE_FR gawk --version | grep logiciel > /dev/null
-  test $? = 0 || { rm -fr $tmpfiles; exit 77; }
+  test $? = 0 || {
+    echo "Skipping test: gawk was built without i18n support"
+    rm -fr $tmpfiles; exit 77
+  }
 fi
 if test $LOCALE_FR_UTF8 != none; then
   LANGUAGE= LC_ALL=$LOCALE_FR_UTF8 gawk --version | grep logiciel > /dev/null
-  test $? = 0 || { rm -fr $tmpfiles; exit 77; }
+  test $? = 0 || {
+    echo "Skipping test: gawk was built without i18n support"
+    rm -fr $tmpfiles; exit 77
+  }
 fi
 
 tmpfiles="$tmpfiles prog.ok prog.oku prog.out"
index 79c949599fc323116dc5f4d660203c19fda6bf61..deef89532ccfc976eff5f9f371889e5ce1b87729 100755 (executable)
@@ -86,10 +86,10 @@ ${MSGFMT} -o fr/LC_MESSAGES/prog.mo fr.po
 
 # Test for presence of guile version 1.7 or newer.
 (guile --version) >/dev/null 2>/dev/null \
-  || { rm -fr $tmpfiles; exit 77; }
+  || { echo "Skipping test: guile not found"; rm -fr $tmpfiles; exit 77; }
 case `guile --version | sed -e 1q | sed -e 's/^[^0-9]*//'` in
   0.* | 1.[0-6] | 1.[0-6].* )
-    rm -fr $tmpfiles; exit 77;;
+    echo "Skipping test: guile version too old"; rm -fr $tmpfiles; exit 77;;
 esac
 
 # Test which of the fr_FR locales are installed.
@@ -112,6 +112,11 @@ if test $LOCALE_FR_UTF8 != none; then
   esac
 fi
 if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: no french locale is installed"
+  else
+    echo "Skipping test: no french locale is supported"
+  fi
   rm -fr $tmpfiles; exit 77
 fi
 
index 68ece1976cb9b10a3e3f869e823e99dbb55173f7..c47928d1e11bb2b169aaeedc65ae72798d7e55d5 100755 (executable)
@@ -11,7 +11,18 @@ tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
 # Test whether we can build and test Java programs.
-test "${TESTJAVA}" = yes || exit 77
+test "${JAVA_CHOICE}" != no || {
+  echo "Skipping test: configured with --disable-java"
+  exit 77
+}
+test "${BUILDJAVA}" = yes || {
+  echo "Skipping test: Java compiler or jar not found"
+  exit 77
+}
+test "${TESTJAVA}" = yes || {
+  echo "Skipping test: Java engine not found"
+  exit 77
+}
 
 tmpfiles="$tmpfiles Program.java"
 cat <<\EOF > Program.java
@@ -141,6 +152,11 @@ if test $LOCALE_FR_UTF8 != none; then
   esac
 fi
 if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: no french locale is installed"
+  else
+    echo "Skipping test: no french locale is supported"
+  fi
   rm -fr $tmpfiles; exit 77
 fi
 
index 5b8840ac76864fc1c0de613094d770367ac7facb..75efcf2acc1e5ac2a5b192b6794a369f6bee4477 100755 (executable)
@@ -69,10 +69,10 @@ ${MSGFMT} -o fr/LC_MESSAGES/prog.mo fr.po
 
 # Test for presence of rep version 0.15.3 or newer.
 (rep --version) >/dev/null 2>/dev/null \
-  || { rm -fr $tmpfiles; exit 77; }
+  || { echo "Skipping test: rep not found"; rm -fr $tmpfiles; exit 77; }
 case `rep --version | sed -e 's/^[^0-9]*//'` in
   0.[0-9] | 0.1[0-5] | 0.[0-9].* | 0.1[0-4].* | 0.15.[0-2] )
-    rm -fr $tmpfiles; exit 77;;
+    echo "Skipping test: rep version too old"; rm -fr $tmpfiles; exit 77;;
 esac
 
 # Test which of the fr_FR locales are installed.
@@ -95,6 +95,11 @@ if test $LOCALE_FR_UTF8 != none; then
   esac
 fi
 if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: no french locale is installed"
+  else
+    echo "Skipping test: no french locale is supported"
+  fi
   rm -fr $tmpfiles; exit 77
 fi
 
index 2ab2b3fd0c393e0b65f28211cfa2540b5d7bead1..16e3a77fc7c6202d564632100f3274e697ebb74f 100755 (executable)
@@ -19,7 +19,9 @@ int main ()
 }
 EOF
 ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o hello hello.m 2>/dev/null \
-  || { rm -fr $tmpfiles; exit 77; }
+  || { echo "Skipping test: Objective C compiler not found"
+       rm -fr $tmpfiles; exit 77
+     }
 
 tmpfiles="$tmpfiles prog.m"
 cat <<\EOF > prog.m
@@ -37,10 +39,8 @@ int main (int argc, char *argv[])
 
   xsetenv ("LC_ALL", argv[1], 1);
   if (setlocale (LC_ALL, "") == NULL)
-    {
-      fprintf (stderr, "Couldn't set locale.\n");
-      exit (77);
-    }
+    /* Couldn't set locale.  */
+    exit (77);
 
   textdomain ("prog");
   bindtextdomain ("prog", ".");
@@ -162,6 +162,11 @@ if test $LOCALE_FR_UTF8 != none; then
   esac
 fi
 if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: no french locale is installed"
+  else
+    echo "Skipping test: no french locale is supported"
+  fi
   rm -fr $tmpfiles; exit 77
 fi
 
index 46cb24aafe7335e0c12280f375c81524eac424ce..4c58581411dbff828280b20e9e4eb4753b4c2155 100755 (executable)
@@ -30,7 +30,10 @@ end.
 EOF
 
 tmpfiles="$tmpfiles prog.o prog.rst prog"
-(ppc386 prog.pp) >/dev/null 2>&1 || { rm -fr $tmpfiles; exit 77; }
+(ppc386 prog.pp) >/dev/null 2>&1 || {
+  echo "Skipping test: ppc386 compiler not found"
+  rm -fr $tmpfiles; exit 77
+}
 
 tmpfiles="$tmpfiles prog.pot"
 : ${XGETTEXT=xgettext}
@@ -105,6 +108,11 @@ if test $LOCALE_FR_UTF8 != none; then
   ${DIFF} prog.oku prog.out || exit 1
 fi
 if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: no french locale is installed"
+  else
+    echo "Skipping test: no french locale is supported"
+  fi
   rm -fr $tmpfiles; exit 77
 fi
 
index ccd2d85ffcb832457d4417d08fdaae0405c43d2d..fc3ed8905f315b912da422f2ae6cbdb3fe70dd1f 100755 (executable)
@@ -101,7 +101,9 @@ EOF
 
 # Test for perl with Locale::Messages package.
 perl -e 'use Locale::Messages;' 2>/dev/null \
-  || { rm -fr $tmpfiles; exit 77; }
+  || { echo "Skipping test: perl package Locale::Messages is not installed"
+       rm -fr $tmpfiles; exit 77
+     }
 
 : ${LOCALE_FR=fr_FR}
 : ${LOCALE_FR_UTF8=fr_FR.UTF-8}
@@ -114,6 +116,11 @@ if test $LOCALE_FR_UTF8 != none; then
   ${DIFF} prog.oku prog.out || exit 1
 fi
 if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: no french locale is installed"
+  else
+    echo "Skipping test: no french locale is supported"
+  fi
   rm -fr $tmpfiles; exit 77
 fi
 
index 940aaeea5b34ead3d40ece4dd2c2de606d8ae862..af305ef639323d5e91dd7f9e27fbd7c0bae556d7 100755 (executable)
@@ -100,7 +100,9 @@ EOF
 
 # Test for perl with libintl-perl package.
 perl -M'Locale::TextDomain' -e '' 2>/dev/null \
-  || { rm -fr $tmpfiles; exit 77; }
+  || { echo "Skipping test: perl package libintl-perl is not installed"
+       rm -fr $tmpfiles; exit 77
+     }
 
 : ${LOCALE_FR=fr_FR}
 : ${LOCALE_FR_UTF8=fr_FR.UTF-8}
@@ -113,6 +115,11 @@ if test $LOCALE_FR_UTF8 != none; then
   ${DIFF} prog.oku prog.out || exit 1
 fi
 if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: no french locale is installed"
+  else
+    echo "Skipping test: no french locale is supported"
+  fi
   rm -fr $tmpfiles; exit 77
 fi
 
index 77de6cee8271ee17112b34d55a841e2287a10e83..987274cf7c8e7940b0cdbf782df8095122bbf231 100755 (executable)
@@ -68,7 +68,7 @@ ${MSGFMT} -o fr/LC_MESSAGES/prog.mo fr.po
 # Test for presence of php version 4.0 or newer.
 case `(php -v) 2>/dev/null` in
   [4-9].*) ;;
-  *) rm -fr $tmpfiles; exit 77;;
+  *) echo "Skipping test: php not found or too old"; rm -fr $tmpfiles; exit 77;;
 esac
 
 # Test which of the fr_FR locales are installed.
@@ -91,6 +91,11 @@ if test $LOCALE_FR_UTF8 != none; then
   esac
 fi
 if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: no french locale is installed"
+  else
+    echo "Skipping test: no french locale is supported"
+  fi
   rm -fr $tmpfiles; exit 77
 fi
 
index 40b686e8bbe9db6e323c219269ef2485b6982ab3..7d38235d5b3e6cf7d079d9df54cf6dea4d508240 100755 (executable)
@@ -70,10 +70,10 @@ ${MSGFMT} -o fr/LC_MESSAGES/prog.mo fr.po
 
 # Test for presence of python version 2.0 or newer.
 (python -V) >/dev/null 2>/dev/null \
-  || { rm -fr $tmpfiles; exit 77; }
+  || { echo "Skipping test: python not found"; rm -fr $tmpfiles; exit 77; }
 case `python -c 'import sys; print sys.hexversion >= 0x20000F0'` in
   1 | True) ;;
-  *) rm -fr $tmpfiles; exit 77;;
+  *) echo "Skipping test: python version too old"; rm -fr $tmpfiles; exit 77;;
 esac
 
 tmpfiles="$tmpfiles prog.ok prog.oku prog.out"
@@ -98,6 +98,11 @@ if test $LOCALE_FR_UTF8 != none; then
   ${DIFF} prog.oku prog.out || exit 1
 fi
 if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: no french locale is installed"
+  else
+    echo "Skipping test: no french locale is supported"
+  fi
   rm -fr $tmpfiles; exit 77
 fi
 
index 70f889afaacda403abd2436c62d798458d4a7ec6..b1e10c7b91bc5f22ec0ae66dff4d759d02533ff8 100755 (executable)
@@ -89,10 +89,10 @@ ${MSGFMT} -o fr/LC_MESSAGES/prog.mo fr.po
 
 # Test for presence of python version 2.3 or newer.
 (python -V) >/dev/null 2>/dev/null \
-  || { rm -fr $tmpfiles; exit 77; }
+  || { echo "Skipping test: python not found"; rm -fr $tmpfiles; exit 77; }
 case `python -c 'import sys; print sys.hexversion >= 0x20300F0'` in
   1 | True) ;;
-  *) rm -fr $tmpfiles; exit 77;;
+  *) echo "Skipping test: python version too old"; rm -fr $tmpfiles; exit 77;;
 esac
 
 tmpfiles="$tmpfiles prog.ok prog.oku prog.out"
@@ -119,6 +119,11 @@ if test $LOCALE_FR_UTF8 != none; then
   ${DIFF} prog.oku prog.out || exit 1
 fi
 if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: no french locale is installed"
+  else
+    echo "Skipping test: no french locale is supported"
+  fi
   rm -fr $tmpfiles; exit 77
 fi
 
index baca02a6b03d0b1afbf1961223bda2b9138470b7..76c878fba948407af32bb4dfed6b5e2f13ffdbe1 100755 (executable)
@@ -99,6 +99,11 @@ if test $LOCALE_FR_UTF8 != none; then
   esac
 fi
 if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: no french locale is installed"
+  else
+    echo "Skipping test: no french locale is supported"
+  fi
   rm -fr $tmpfiles; exit 77
 fi
 
index 31ff30543d8d475cf9c7c4b4e87ce608c02ed8ec..7308428e5daa8fddee78deff3f9669ebf8cff049 100755 (executable)
@@ -95,10 +95,10 @@ ${MSGFMT} -o fr/LC_MESSAGES/prog.mo fr.po
 
 # Test for presence of gst version 2.0.6 or newer.
 (gst --version) >/dev/null 2>/dev/null \
-  || { rm -fr $tmpfiles; exit 77; }
+  || { echo "Skipping test: gst not found"; rm -fr $tmpfiles; exit 77; }
 case `gst --version | sed -n -e 1p | sed -e 's/^[^0-9]*//'` in
   0.* | 1.* | 2.0 | 2.0.[0-5] | 2.1 | 2.1.[0-1])
-    rm -fr $tmpfiles; exit 77;;
+    echo "Skipping test: gst version too old"; rm -fr $tmpfiles; exit 77;;
 esac
 
 tmpfiles="$tmpfiles prog.ok prog.oku prog.out"
@@ -127,6 +127,11 @@ if test $LOCALE_FR_UTF8 != none; then
   ${DIFF} prog.oku prog.out || exit 1
 fi
 if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: no french locale is installed"
+  else
+    echo "Skipping test: no french locale is supported"
+  fi
   rm -fr $tmpfiles; exit 77
 fi
 
index 93d6fbe373afc8c9114b6e8bbc8293898d103341..377ea21da56647fb4d9402a815b5f3e52bf8087d 100755 (executable)
@@ -76,7 +76,9 @@ package require msgcat
 puts $tcl_version
 EOF
 (tclsh version.tcl) >/dev/null 2>/dev/null \
-  || { rm -fr $tmpfiles; exit 77; }
+  || { echo "Skipping test: tclsh not found or msgcat extension not present"
+       rm -fr $tmpfiles; exit 77
+     }
 
 tmpfiles="$tmpfiles prog.ok prog.oku prog.out"
 : ${DIFF=diff}
@@ -100,6 +102,11 @@ if test $LOCALE_FR_UTF8 != none; then
   ${DIFF} prog.oku prog.out || exit 1
 fi
 if test $LOCALE_FR = none && test $LOCALE_FR_UTF8 = none; then
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: no french locale is installed"
+  else
+    echo "Skipping test: no french locale is supported"
+  fi
   rm -fr $tmpfiles; exit 77
 fi
 
index 80ecf07601a83696c773da6dc2082f9c3bc432ad..ec0d2019fcea7d73405fb91e414e13d9aba353e5 100755 (executable)
@@ -19,13 +19,19 @@ fi
 
 # Some fold programs (like SunOS4 and FreeBSD) don't have an option to wrap at
 # spaces.
-echo abc | fold -b -s -w 20 >/dev/null 2>&1 || { rm -fr $tmpfiles; exit 77; }
+echo abc | fold -b -s -w 20 >/dev/null 2>&1 || {
+  echo "Skipping test: fold program not POSIX compliant"
+  rm -fr $tmpfiles; exit 77
+}
 
 # Some fold programs (like HP-UX) insert a newline at the end, if the last
 # line was not terminated with a newline and the -s option was given.
 foldoutputcount=`echo $ac_n "abc$ac_c" | fold -b -s -w 20 | wc -c`
 foldoutputcount=`echo "$foldoutputcount" | sed -e 's/[         ]//g'`
-test "$foldoutputcount" = 3 || { rm -fr $tmpfiles; exit 77; }
+test "$foldoutputcount" = 3 || {
+  echo "Skipping test: fold program inserts extra newline"
+  rm -fr $tmpfiles; exit 77
+}
 
 tmpfiles="$tmpfiles mfi-test1.po"
 cat <<\EOF > mfi-test1.po
index 8bb2ade293efb0ecfc46812af10df656577419eb..20887cd958742c776ef973b4304eff5b712bcd7f 100755 (executable)
@@ -20,13 +20,19 @@ fi
 # Some sed programs (Solaris etc.) omit the last line if it ended without
 # a newline. We must skip this test when we encounter such a broken sed.
 sedoutput=`echo $ac_n "abc$ac_c" | sed -e s/x/x/`
-test -n "$sedoutput" || { rm -fr $tmpfiles; exit 77; }
+test -n "$sedoutput" || {
+  echo "Skipping test: sed program is broken"
+  rm -fr $tmpfiles; exit 77
+}
 
 # Some sed programs (IRIX, OSF/1 etc.) add a newline to the last line if it
 # doesn't end with a newline.
 sedoutputcount=`echo $ac_n "abc$ac_c" | sed -e s/x/x/ | wc -c`
 sedoutputcount=`echo "$sedoutputcount" | sed -e 's/[   ]//g'`
-test "$sedoutputcount" = 3 || { rm -fr $tmpfiles; exit 77; }
+test "$sedoutputcount" = 3 || {
+  echo "Skipping test: sed program inserts extra newline"
+  rm -fr $tmpfiles; exit 77
+}
 
 tmpfiles="$tmpfiles mfi-test2.po"
 cat <<\EOF > mfi-test2.po
index e0c47feab746f1fc5bba584da1f09aa0d8d6de92..546f85595053942c36a37d0b78c62c9c09ae0ac6 100755 (executable)
@@ -19,13 +19,19 @@ fi
 
 # Some fold programs (like SunOS4 and FreeBSD) don't have an option to wrap at
 # spaces.
-echo abc | fold -b -s -w 20 >/dev/null 2>&1 || { rm -fr $tmpfiles; exit 77; }
+echo abc | fold -b -s -w 20 >/dev/null 2>&1 || {
+  echo "Skipping test: fold program not POSIX compliant"
+  rm -fr $tmpfiles; exit 77
+}
 
 # Some fold programs (like HP-UX) insert a newline at the end, if the last
 # line was not terminated with a newline and the -s option was given.
 foldoutputcount=`echo $ac_n "abc$ac_c" | fold -b -s -w 20 | wc -c`
 foldoutputcount=`echo "$foldoutputcount" | sed -e 's/[         ]//g'`
-test "$foldoutputcount" = 3 || { rm -fr $tmpfiles; exit 77; }
+test "$foldoutputcount" = 3 || {
+  echo "Skipping test: fold program inserts extra newline"
+  rm -fr $tmpfiles; exit 77
+}
 
 tmpfiles="$tmpfiles mfi-test3.properties"
 cat <<\EOF > mfi-test3.properties
index e25d8920253ffce3dce458df4a398b5190f3c60e..d8cab872b063b129f1b1bfb5614127653d7b7515 100755 (executable)
@@ -20,13 +20,19 @@ fi
 # Some sed programs (Solaris etc.) omit the last line if it ended without
 # a newline. We must skip this test when we encounter such a broken sed.
 sedoutput=`echo $ac_n "abc$ac_c" | sed -e s/x/x/`
-test -n "$sedoutput" || { rm -fr $tmpfiles; exit 77; }
+test -n "$sedoutput" || {
+  echo "Skipping test: sed program is broken"
+  rm -fr $tmpfiles; exit 77
+}
 
 # Some sed programs (IRIX, OSF/1 etc.) add a newline to the last line if it
 # doesn't end with a newline.
 sedoutputcount=`echo $ac_n "abc$ac_c" | sed -e s/x/x/ | wc -c`
 sedoutputcount=`echo "$sedoutputcount" | sed -e 's/[   ]//g'`
-test "$sedoutputcount" = 3 || { rm -fr $tmpfiles; exit 77; }
+test "$sedoutputcount" = 3 || {
+  echo "Skipping test: sed program inserts extra newline"
+  rm -fr $tmpfiles; exit 77
+}
 
 tmpfiles="$tmpfiles mfi-test4.po"
 cat <<\EOF > mfi-test4.po
index 01a587c5c5dbd7309761c915831cbc8fa0e6b9ff..bfd733213abdb11fae4937cab0fc2e0de78de605 100755 (executable)
@@ -6,7 +6,18 @@ tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
 # Test whether we can compile and execute C# programs.
-test "${TESTCSHARP}" = yes || exit 77
+test "${CSHARP_CHOICE}" != no || {
+  echo "Skipping test: configured with --disable-csharp"
+  exit 77
+}
+test "${BUILDCSHARP}" = yes || {
+  echo "Skipping test: C# compiler not found"
+  exit 77
+}
+test "${TESTCSHARP}" = yes || {
+  echo "Skipping test: C# engine not found"
+  exit 77
+}
 
 tmpfiles="$tmpfiles fr.po"
 cat <<\EOF > fr.po
index c3ea1e9003e00deb0c2a6496912a7624a78537f6..f2158c73552e56a656b93a0d4f8ca9931d5639d7 100755 (executable)
@@ -9,7 +9,18 @@ tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
 # Test whether we can compile and execute Java programs.
-test "${TESTJAVA}" = yes || exit 77
+test "${JAVA_CHOICE}" != no || {
+  echo "Skipping test: configured with --disable-java"
+  exit 77
+}
+test "${BUILDJAVA}" = yes || {
+  echo "Skipping test: Java compiler or jar not found"
+  exit 77
+}
+test "${TESTJAVA}" = yes || {
+  echo "Skipping test: Java engine not found"
+  exit 77
+}
 
 tmpfiles="$tmpfiles fr.po"
 cat <<\EOF > fr.po
index 66d57600eaca71779e7231ddf3a710defcc239cd..679404d0bc404700ef953a3675ed705fb585b535 100755 (executable)
@@ -13,7 +13,9 @@ fconfigure stdout -encoding utf-8
 puts $tcl_version
 EOF
 (tclsh version.tcl) >/dev/null 2>/dev/null \
-  || { rm -fr $tmpfiles; exit 77; }
+  || { echo "Skipping test: tclsh not found or Tcl too old"
+       rm -fr $tmpfiles; exit 77
+     }
 
 tmpfiles="$tmpfiles fr.po"
 cat <<\EOF > fr.po
index 615f1616f4b16e9993c9a4779d4316af66680333..c71f8798252d20fd9572b6c061715db760d19311 100755 (executable)
@@ -16,6 +16,11 @@ if test $LOCALE_FR_UTF8 != none; then
   esac
 fi
 if test $LOCALE_FR_UTF8 = none; then
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: no french UTF-8 locale is installed"
+  else
+    echo "Skipping test: no french UTF-8 locale is supported"
+  fi
   rm -fr $tmpfiles; exit 77
 fi
 
index 62aa343e9b863ea36bde98861d9900d2e89f023d..aea706da7f7576eb66d69626302376992b764929 100755 (executable)
@@ -18,6 +18,11 @@ if test $LOCALE_JA_EUCJP != none; then
   esac
 fi
 if test $LOCALE_JA_EUCJP = none; then
+  if test -f /usr/bin/localedef; then
+    echo "Skipping test: no japanese EUC-JP locale is installed"
+  else
+    echo "Skipping test: no japanese EUC-JP locale is supported"
+  fi
   rm -fr $tmpfiles; exit 77
 fi
 
index 3383439d6d0e3786cbc09d94c2ccca7d8ca464f0..eac95785955ce8344c345fe487de176737f6fac2 100644 (file)
@@ -1,5 +1,5 @@
 /* testlocale - test whether the locale given by the environment is installed.
-   Copyright (C) 2003 Free Software Foundation, Inc.
+   Copyright (C) 2003, 2006 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -34,10 +34,8 @@ main (int argc, char *argv[])
 /* This test must match the one in intl/localename.c.  */
 #if defined HAVE_SETLOCALE && defined HAVE_LC_MESSAGES && defined HAVE_LOCALE_NULL
   if (setlocale (LC_ALL, "") == NULL)
-    {
-      fprintf (stderr, "Couldn't set locale.\n");
-      exit (77);
-    }
+    /* Couldn't set locale.  */
+    exit (77);
 #endif
   exit (0);
 }
index f87af409476b2312e92a0ac1f499ed12c8523113..d4323a0cbdce8b799b99dfe30eec25586eefaf17 100755 (executable)
@@ -14,7 +14,10 @@ EOF
 tmpfiles="$tmpfiles xg-gl-1.pot"
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} -o xg-gl-1.pot empty.glade 2>/dev/null
-test $? = 0 || { rm -fr $tmpfiles; exit 77; }
+test $? = 0 || {
+  echo "Skipping test: xgettext was built without Glade support"
+  rm -fr $tmpfiles; exit 77
+}
 
 tmpfiles="$tmpfiles widgets.glade"
 cat <<EOF > widgets.glade
index c40ead83945f2ba3808e91f2f9f2a17e488301f3..56b40482cec631c1f667fa4afc6bf922f100ea98 100755 (executable)
@@ -15,7 +15,10 @@ EOF
 tmpfiles="$tmpfiles xg-gl-2.pot"
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} -o xg-gl-2.pot empty.glade 2>/dev/null
-test $? = 0 || { rm -fr $tmpfiles; exit 77; }
+test $? = 0 || {
+  echo "Skipping test: xgettext was built without Glade support"
+  rm -fr $tmpfiles; exit 77
+}
 
 tmpfiles="$tmpfiles simple.glade"
 cat <<\EOF > simple.glade
index 5539f355e780d3254c727cc556b2b6920cfb494c..0625e9603ab3e43547447ff4f51394fcca82acc0 100755 (executable)
@@ -14,7 +14,10 @@ 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; }
+test $? = 0 || {
+  echo "Skipping test: xgettext was built without Glade support"
+  rm -fr $tmpfiles; exit 77
+}
 
 tmpfiles="$tmpfiles asciitable.glade2"
 cat <<EOF > asciitable.glade2