#! /bin/sh
+. "${srcdir=.}/init.sh"; path_prepend_ . ../src
# Test of --java option.
# Note: This test fails when using gcj from GCC 3.1 and GCC 3.2, due to a bug
# (libgcj/6576). It is fixed in GCC 3.3.
-tmpfiles=""
-trap 'rm -fr $tmpfiles' 1 2 3 15
-
# Test whether we can compile and execute Java programs.
test "${JAVA_CHOICE}" != no || {
echo "Skipping test: configured with --disable-java"
exit 77
}
-tmpfiles="$tmpfiles mu-java-1"
test -d mu-java-1 || mkdir mu-java-1
cat <<\EOF > mu-java-1/fr.po
: ${MSGUNFMT=msgunfmt}
CLASSPATH=mu-java-1${CLASSPATH:+:$CLASSPATH} \
-GETTEXTJEXEDIR=../src GETTEXTJAR=../src/gettext.jar \
+GETTEXTJEXEDIR=../../src GETTEXTJAR=../../src/gettext.jar \
${MSGUNFMT} --java -d mu-java-1 -r prog -l fr -o mu-java-1/prog.out || exit 1
: ${MSGCAT=msgcat}
: ${DIFF=diff}
${DIFF} mu-java-1/prog.ok mu-java-1/prog.sort || exit 1
-rm -fr $tmpfiles
-
exit 0