automake-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[automake-commit] branch master updated: tests: more .NOTPARALLEL tests.


From: Karl Berry
Subject: [automake-commit] branch master updated: tests: more .NOTPARALLEL tests.
Date: Mon, 07 Dec 2020 18:53:13 -0500

This is an automated email from the git hooks/post-receive script.

karl pushed a commit to branch master
in repository automake.

View the commit online:
https://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=95da1185edb9bdf1d7bbc2cd2200ab29dabb3a33

The following commit(s) were added to refs/heads/master by this push:
     new 95da118  tests: more .NOTPARALLEL tests.
95da118 is described below

commit 95da1185edb9bdf1d7bbc2cd2200ab29dabb3a33
Author: Karl Berry <karl@freefriends.org>
AuthorDate: Mon Dec 7 15:53:01 2020 -0800

    tests: more .NOTPARALLEL tests.
    
    * contrib/t/multilib.sh: use .NOTPARALLEL to avoid unreproducible
    (and undebuggable, by me) test failures when running
      make -j$njobs AM_TESTSUITE_MAKE="make -j$njobs"
    for some arbitrary but rather large value of $njobs.
    The failures don't occur with just make -j; have to run the makes
    inside the tests in parallel also.
    * t/java-compile-install.sh: likewise.
    * t/java-compile-run-flat.sh: likewise.
    * t/java-uninstall.sh: likewise.
    * t/vala-headers.sh: likewise.
---
 contrib/t/multilib.sh      | 5 +++++
 t/java-compile-install.sh  | 5 +++++
 t/java-compile-run-flat.sh | 8 ++++++++
 t/java-uninstall.sh        | 5 +++++
 t/vala-headers.sh          | 6 ++++++
 5 files changed, 29 insertions(+)

diff --git a/contrib/t/multilib.sh b/contrib/t/multilib.sh
index 4b767d7..4b336a3 100755
--- a/contrib/t/multilib.sh
+++ b/contrib/t/multilib.sh
@@ -61,6 +61,11 @@ check-all:
        test -f debug/libbar/libbar.a
        test -f libfoo/libfoo.a
        test -f libbar/libbar.a
+# Tell GNU make not to parallelize, since the tests can result in, for example:
+#   make[5]: *** No rule to make target 'mostlyclean'.  Stop.
+#   make[5]: Leaving directory 
'/u/karl/gnu/src/akarl/contrib/t/multilib.dir/build/debug/libbar/sub'
+# No evident way to debug or reliably reproduce.
+.NOTPARALLEL:
 EOF
 
 # libfoo tests multilib supports when there are no subdirectories
diff --git a/t/java-compile-install.sh b/t/java-compile-install.sh
index 8cbfd58..89bb9cb 100644
--- a/t/java-compile-install.sh
+++ b/t/java-compile-install.sh
@@ -78,6 +78,11 @@ installcheck-local: test-install
 .PHONY: test test-install
 
 DISTCLEANFILES = Baz.java Foo2.java
+
+# Tell GNU make not to parallelize, since the tests can result in, for example:
+#   /usr/bin/install: cannot create regular file 
'/u/karl/gnu/src/akarl/t/java-compile-install.dir/_inst/share/java/Baz.class': 
File exists
+# No evident way to debug or reliably reproduce.
+.NOTPARALLEL:
 END
 
 echo 'class aClass {}' > Foo.java
diff --git a/t/java-compile-run-flat.sh b/t/java-compile-run-flat.sh
index a9a69cf..0efad4c 100644
--- a/t/java-compile-run-flat.sh
+++ b/t/java-compile-run-flat.sh
@@ -175,6 +175,14 @@ TESTS = \
 XFAIL_TESTS = badarg.test
 
 EXTRA_DIST += $(TESTS)
+
+# Tell GNU make not to parallelize, since the tests can result in, for example:
+#  /usr/bin/install: cannot change permissions of 
'/tmp/am-dc-13378//u/karl/gnu/src/akarl/t/java-compile-run-flat.dir/java-compile-run-flat-1.0/_inst/share/java-compile-run-flat/java/HelloStream.class':
 No such file or directory
+#  /usr/bin/install: cannot create regular file 
'/tmp/am-dc-13378//u/karl/gnu/src/akarl/t/java-compile-run-flat.dir/java-compile-run-flat-1.0/_inst/share/java-compile-run-flat/java/PkgLocation.class':
 File exists
+#  make[2]: *** [Makefile:393: install-dist_javaJAVA] Error 1
+#  make[2]: Leaving directory 
'/u/karl/gnu/src/akarl/t/java-compile-run-flat.dir/java-compile-run-flat-1.0/_build/sub'
+# No evident way to debug or reliably reproduce.
+.NOTPARALLEL:
 END
 
 cat > simple.test <<'END'
diff --git a/t/java-uninstall.sh b/t/java-uninstall.sh
index 8c54620..56a2440 100644
--- a/t/java-uninstall.sh
+++ b/t/java-uninstall.sh
@@ -47,6 +47,11 @@ Baz.java:
        chmod a-w $@-t && mv -f $@-t $@
 
 DISTCLEANFILES = Baz.java Foo2.java
+
+# Tell GNU make not to parallelize, since the tests can result in, for example:
+#   /usr/bin/install: cannot create regular file 
'/u/karl/gnu/src/akarl/t/java-uninstall.dir/java-uninstall-1.0/_inst/java/Baz.class':
 File exists
+# No evident way to debug or reliably reproduce.
+.NOTPARALLEL:
 END
 
 echo 'class aClass {}' > Foo.java
diff --git a/t/vala-headers.sh b/t/vala-headers.sh
index 8ba0b07..0f810c3 100644
--- a/t/vala-headers.sh
+++ b/t/vala-headers.sh
@@ -45,6 +45,12 @@ zardoz_VALAFLAGS = \
 
 AM_CFLAGS = $(GOBJECT_CFLAGS)
 LDADD = $(GOBJECT_LIBS)
+
+# Tell GNU make not to parallelize, since the tests can result in, for example:
+#   mv: cannot stat 'quux_vala.stamp-t': No such file or directory
+#   make[1]: *** [Makefile:438: quux_vala.stamp] Error 1
+# No evident way to debug or reliably reproduce.
+.NOTPARALLEL:
 END
 
 headers='HDR.h hello.vapi foo.h foo2.h foo3.vapi'



reply via email to

[Prev in Thread] Current Thread [Next in Thread]