]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
java: fix various blunders in test 'java-mix.test'
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 18 Sep 2011 15:32:50 +0000 (17:32 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 18 Sep 2011 15:32:50 +0000 (17:32 +0200)
* tests/java-mix.test: Add missing call to `set -e'.  Fix inverted
semantics (`.java' files are expected *not* to be distributed by
default, not the other way round).  Fix various typos in the name
of the `.java' files.  Correct other minor blunders.  Improve some
comments.

ChangeLog
tests/java-mix.test

index 1f7a263243de3cd89e4939b35da0f7eb62c65a5f..468c205b60a13f3fc4f35653a0953fa4b24980d0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-09-18  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+       java: fix various blunders in test 'java-mix.test'
+       * tests/java-mix.test: Add missing call to `set -e'.  Fix inverted
+       semantics (`.java' files are expected *not* to be distributed by
+       default, not the other way round).  Fix various typos in the name
+       of the `.java' files.  Correct other minor blunders.  Improve some
+       comments.
+
 2011-04-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
        java: allow both JAVA and nobase_JAVA in the same Makefile.am
index 1c8163ac157edf44037b4b53f31f8716a060f19a..d6a43e79edcd5447ba00774663767838da01bbf5 100755 (executable)
 
 # Check that the JAVA primary can be used freely in the same Makefile.am
 # with proper combinations of the `dist_', `nodist_' and `nobase_'
-# modifiers .
+# modifiers.  Also check that `.java' files are not ditributed by default.
 
 . ./defs || Exit 1
 
+set -e
+
 cat >> configure.in << 'END'
 AC_OUTPUT
 END
@@ -37,19 +39,18 @@ nobase_java_JAVA = ClassNobase.java
 nobase_dist_java_JAVA = ClassNobaseDist.java
 nobase_nodist_java_JAVA = ClassNobaseNodist.java
 
-Class3.java Class6.java:
+Class.java ClassNodist.java ClassNobase.java ClassNobaseNodist.java:
        @echo '$@ should not be generated!' >&2; exit 1
 END
 
-: > Class.java
 : > ClassDist.java
-: > ClassNobase.java
 : > ClassNobaseDist.java
 
 $ACLOCAL
 $AUTOCONF
-# Automake used to display non-fatal warnings with this test,
-# but those must be seen as a failure by us.
+# Automake used to display non-fatal warnings with this test, but
+# they were unexpected, so we want to consider them as failures in
+# this test.
 $AUTOMAKE 2>stderr || { cat stderr >&2; Exit 1; }
 cat stderr >&2
 test ! -s stderr
@@ -58,11 +59,11 @@ test ! -s stderr
 
 $MAKE distdir
 ls -l $distdir # For debugging.
-test -f $distdir/Class.java
+test -f $distdir/Class.java
 test -f $distdir/ClassDist.java
-test -f $distdir/NobaseClass.java
-test -f $distdir/NobaseClassDist.java
+test ! -f $distdir/ClassNobase.java
+test -f $distdir/ClassNobaseDist.java
 test ! -f $distdir/ClassNodist.java
-test ! -f $distdir/NobaseClassNodist.java
+test ! -f $distdir/ClassNobaseNodist.java
 
 :