+2003-02-20 Bruno Haible <bruno@clisp.org>
+
+ * msgfilter-1: Remove SKIP: messages, now emitted by the Makefile.
+ * msgfilter-2: Likewise.
+ * msgunfmt-2: Likewise.
+ * msgunfmt-3: Likewise.
+ * xgettext-19: Likewise.
+ * xgettext-20: Likewise.
+ * lang-c: Likewise.
+ * lang-c++: Likewise.
+ * lang-clisp: Likewise.
+ * lang-gawk: Likewise.
+ * lang-java: Likewise.
+ * lang-librep: Likewise.
+ * lang-objc: Likewise.
+ * lang-pascal: Likewise.
+ * lang-php: Likewise.
+ * lang-python: Likewise.
+ * lang-smalltalk: Likewise.
+ * lang-tcl: Likewise.
+
2003-02-20 Bruno Haible <bruno@clisp.org>
* lang-gawk: Skip the test if gawk was built with --disable-nls.
LANGUAGE= ./prog fr_FR 2 > prog.out
case $? in
0) ;;
- 77) echo "SKIP: lang-c"; rm -fr $tmpfiles; exit 77;;
+ 77) rm -fr $tmpfiles; exit 77;;
*) exit 1;;
esac
${DIFF} prog.ok prog.out || exit 1
# Test whether a C++ compiler is found.
if test "${CXX}" = ":"; then
- echo "SKIP: lang-c++"; exit 77
+ exit 77
fi
tmpfiles="$tmpfiles prog.cc"
LANGUAGE= ./prog fr_FR 2 > prog.out
case $? in
0) ;;
- 77) echo "SKIP: lang-c++"; rm -fr $tmpfiles; exit 77;;
+ 77) rm -fr $tmpfiles; exit 77;;
*) exit 1;;
esac
${DIFF} prog.ok prog.out || exit 1
# 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 \
- || { echo "SKIP: lang-clisp"; rm -fr $tmpfiles; exit 77; }
+ || { rm -fr $tmpfiles; exit 77; }
version=`clisp --version | sed -e 's/^[^0-9]*//'`
case $version in
19* | 20*) # older than 2.25
- echo "SKIP: lang-clisp"; rm -fr $tmpfiles; exit 77;;
+ rm -fr $tmpfiles; exit 77;;
esac
version=`echo $version | sed -e 's/^\([0-9]*\.[0-9]*\).*/\1/'`
clisp -norc -x "(sys::exit (not (>= $version 2.28)))" >/dev/null \
- || { echo "SKIP: lang-clisp"; rm -fr $tmpfiles; exit 77; }
+ || { rm -fr $tmpfiles; exit 77; }
tmpfiles="$tmpfiles prog.ok prog.out"
: ${DIFF=diff}
# Test for presence of gawk version 3.1.1 or newer.
(gawk --version) >/dev/null 2>/dev/null \
- || { echo "SKIP: lang-gawk"; rm -fr $tmpfiles; exit 77; }
+ || { rm -fr $tmpfiles; exit 77; }
case `gawk --version 2>&1 | sed -e 's/^[^0-9]*//'` in
0.* | 1.* | 2.* | 3.0* | 3.1.0*)
- echo "SKIP: lang-gawk"; rm -fr $tmpfiles; exit 77;;
+ rm -fr $tmpfiles; exit 77;;
esac
# Test that gawk wasn't built with --disable-nls.
LANGUAGE= LC_ALL=fr_FR gawk --version | grep logiciel > /dev/null
-test $? = 0 || { echo "SKIP: lang-gawk"; rm -fr $tmpfiles; exit 77; }
+test $? = 0 || { rm -fr $tmpfiles; exit 77; }
tmpfiles="$tmpfiles prog.ok prog.out"
: ${DIFF=diff}
trap 'rm -fr $tmpfiles' 1 2 3 15
# Test whether we can build and test Java programs.
-test "${TESTJAVA}" = yes || { echo "SKIP: lang-java"; exit 77; }
+test "${TESTJAVA}" = yes || exit 77
tmpfiles="$tmpfiles Program.java"
cat <<\EOF > Program.java
# Test for presence of rep version 0.15.3 or newer.
(rep --version) >/dev/null 2>/dev/null \
- || { echo "SKIP: lang-librep"; rm -fr $tmpfiles; exit 77; }
+ || { 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] )
- echo "SKIP: lang-librep"; rm -fr $tmpfiles; exit 77;;
+ rm -fr $tmpfiles; exit 77;;
esac
tmpfiles="$tmpfiles prog.ok prog.out"
}
EOF
${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o hello hello.m 2>/dev/null \
- || { echo "SKIP: lang-objc"; rm -fr $tmpfiles; exit 77; }
+ || { rm -fr $tmpfiles; exit 77; }
tmpfiles="$tmpfiles prog.m"
cat <<\EOF > prog.m
LANGUAGE= ./prog fr_FR 2 > prog.out
case $? in
0) ;;
- 77) echo "SKIP: lang-objc"; rm -fr $tmpfiles; exit 77;;
+ 77) rm -fr $tmpfiles; exit 77;;
*) exit 1;;
esac
${DIFF} prog.ok prog.out || exit 1
EOF
tmpfiles="$tmpfiles prog.o prog.rst prog"
-(ppc386 prog.pp) >/dev/null 2>&1 || { echo "SKIP: lang-pascal"; rm -fr $tmpfiles; exit 77; }
+(ppc386 prog.pp) >/dev/null 2>&1 || { rm -fr $tmpfiles; exit 77; }
tmpfiles="$tmpfiles prog.pot"
: ${XGETTEXT=xgettext}
# Test for presence of gawk version 4.0 or newer.
case `(php -v) 2>/dev/null` in
[4-9].*) ;;
- *) echo "SKIP: lang-php"; rm -fr $tmpfiles; exit 77;;
+ *) rm -fr $tmpfiles; exit 77;;
esac
tmpfiles="$tmpfiles prog.ok prog.out"
# Test for presence of python version 2.0 or newer.
(python -V) >/dev/null 2>/dev/null \
- || { echo "SKIP: lang-python"; rm -fr $tmpfiles; exit 77; }
+ || { rm -fr $tmpfiles; exit 77; }
case `python -c 'import sys; print sys.hexversion >= 0x20000F0'` in
1) ;;
- *) echo "SKIP: lang-python"; rm -fr $tmpfiles; exit 77;;
+ *) rm -fr $tmpfiles; exit 77;;
esac
tmpfiles="$tmpfiles prog.ok prog.out"
# Test for presence of gst version 2.0.6 or newer.
(gst --version) >/dev/null 2>/dev/null \
- || { echo "SKIP: lang-smalltalk"; rm -fr $tmpfiles; exit 77; }
+ || { 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])
- echo "SKIP: lang-smalltalk"; rm -fr $tmpfiles; exit 77;;
+ rm -fr $tmpfiles; exit 77;;
esac
tmpfiles="$tmpfiles prog.ok prog.out"
puts $tcl_version
EOF
(tclsh version.tcl) >/dev/null 2>/dev/null \
- || { echo "SKIP: lang-tcl"; rm -fr $tmpfiles; exit 77; }
+ || { rm -fr $tmpfiles; exit 77; }
tmpfiles="$tmpfiles prog.ok prog.out"
: ${DIFF=diff}
# 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 || { echo "SKIP: msgfilter-1"; rm -fr $tmpfiles; exit 77; }
+echo abc | fold -b -s -w 20 >/dev/null 2>&1 || { 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 || { echo "SKIP: msgfilter-1"; rm -fr $tmpfiles; exit 77; }
+test "$foldoutputcount" = 3 || { rm -fr $tmpfiles; exit 77; }
tmpfiles="$tmpfiles mfi-test1.po"
cat <<\EOF > mfi-test1.po
# 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" || { echo "SKIP: msgfilter-2"; rm -fr $tmpfiles; exit 77; }
+test -n "$sedoutput" || { 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 || { echo "SKIP: msgfilter-2"; rm -fr $tmpfiles; exit 77; }
+test "$sedoutputcount" = 3 || { rm -fr $tmpfiles; exit 77; }
tmpfiles="$tmpfiles mfi-test2.po"
cat <<\EOF > mfi-test2.po
trap 'rm -fr $tmpfiles' 1 2 3 15
# Test whether we can compile and execute Java programs.
-test "${TESTJAVA}" = yes || { echo "SKIP: msgunfmt-2"; exit 77; }
+test "${TESTJAVA}" = yes || exit 77
tmpfiles="$tmpfiles fr.po"
cat <<\EOF > fr.po
puts $tcl_version
EOF
(tclsh version.tcl) >/dev/null 2>/dev/null \
- || { echo "SKIP: msgunfmt-3"; rm -fr $tmpfiles; exit 77; }
+ || { rm -fr $tmpfiles; exit 77; }
tmpfiles="$tmpfiles fr.po"
cat <<\EOF > fr.po
tmpfiles="$tmpfiles xg-test19.pot"
: ${XGETTEXT=xgettext}
${XGETTEXT} -o xg-test19.pot empty.glade 2>/dev/null
-test $? = 0 || { echo "SKIP: xgettext-19"; rm -fr $tmpfiles; exit 77; }
+test $? = 0 || { rm -fr $tmpfiles; exit 77; }
tmpfiles="$tmpfiles widgets.glade"
cat <<EOF > widgets.glade
tmpfiles="$tmpfiles xg-test20.pot"
: ${XGETTEXT=xgettext}
${XGETTEXT} -o xg-test20.pot empty.glade 2>/dev/null
-test $? = 0 || { echo "SKIP: xgettext-20"; rm -fr $tmpfiles; exit 77; }
+test $? = 0 || { rm -fr $tmpfiles; exit 77; }
tmpfiles="$tmpfiles simple.glade"
cat <<\EOF > simple.glade