summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2014-12-28 11:56:32 +0100
committerStefano Lattarini <stefano.lattarini@gmail.com>2014-12-28 11:56:32 +0100
commitbe85adf480272e24d9167c83715916d20eb9006b (patch)
tree48797d164e415bcdad1eb1d993f11fb818f94778
parenta34409f0ab805c7f83cecc2f520bada748a07584 (diff)
parent75ba55ff95160c6a59995263e29ee6061b815881 (diff)
downloadautomake-be85adf480272e24d9167c83715916d20eb9006b.tar.gz
Merge branch 'master' into ng/master
* master: tests: avoid a possible failure due to autom4te cache staleness tests: fix spurious failure in test on TEXINFO_TEX overriding tests: avoid some spurious failures on AIX 7.1 Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
-rw-r--r--t/includes-deprecation.sh2
-rw-r--r--t/instmany-mans.sh14
-rw-r--r--t/instmany-python.sh14
-rw-r--r--t/instmany.sh14
-rw-r--r--t/parallel-tests-concurrency.sh9
-rw-r--r--t/txinfo-override-texinfo-tex.sh6
6 files changed, 41 insertions, 18 deletions
diff --git a/t/includes-deprecation.sh b/t/includes-deprecation.sh
index 7db0c0696..66a95644d 100644
--- a/t/includes-deprecation.sh
+++ b/t/includes-deprecation.sh
@@ -32,6 +32,8 @@ grep "^Makefile\\.am:2:.* 'INCLUDES'.* deprecated.* 'AM_CPPFLAGS'" stderr
AUTOMAKE_run -Wall -Wno-obsolete
test ! -s stderr
+$sleep
+
echo 'AC_SUBST([INCLUDES])' >> configure.ac
sed '/^INCLUDES/d' Makefile.am > t && mv -f t Makefile.am
diff --git a/t/instmany-mans.sh b/t/instmany-mans.sh
index be33a02ab..0ed23488f 100644
--- a/t/instmany-mans.sh
+++ b/t/instmany-mans.sh
@@ -37,8 +37,6 @@ mkdir x-bin
sed "s|@limit@|$limit|g" >x-bin/my-install <<'END'
#! /bin/sh
-# Fake install script. This doesn't really install
-# (the INSTALL path below would be wrong outside this directory).
limit=@limit@
PATH=$oPATH; export PATH
if test -z "$orig_INSTALL"; then
@@ -72,8 +70,16 @@ END
# Creative quoting in the next line to please maintainer-check.
chmod +x x-bin/'rm' x-bin/my-install
-cat > setenv.in <<'END'
-orig_INSTALL='@INSTALL@'; export orig_INSTALL
+cat >setenv.in <<'END'
+orig_INSTALL='@INSTALL@'
+# In case we've falled back on the install-sh script (seen e.g.,
+# on AIX 7.1), we need to make sure we use its absolute path,
+# as we don't know from which directory we'll be run.
+case "$orig_INSTALL" in
+ /*) ;;
+ */*) orig_INSTALL=$(pwd)/$orig_INSTALL;;
+esac
+export orig_INSTALL
END
cat >>configure.ac <<END
diff --git a/t/instmany-python.sh b/t/instmany-python.sh
index 40c850223..0088b2d62 100644
--- a/t/instmany-python.sh
+++ b/t/instmany-python.sh
@@ -33,8 +33,6 @@ mkdir x-bin
sed "s|@limit@|$limit|g" >x-bin/my-install <<'END'
#! /bin/sh
-# Fake install script. This doesn't really install
-# (the INSTALL path below would be wrong outside this directory).
limit=@limit@
PATH=$oPATH; export PATH
if test -z "$orig_INSTALL"; then
@@ -68,8 +66,16 @@ END
# Creative quoting in the next line to please maintainer-check.
chmod +x x-bin/'rm' x-bin/my-install
-cat > setenv.in <<'END'
-orig_INSTALL='@INSTALL@'; export orig_INSTALL
+cat >setenv.in <<'END'
+orig_INSTALL='@INSTALL@'
+# In case we've falled back on the install-sh script (seen e.g.,
+# on AIX 7.1), we need to make sure we use its absolute path,
+# as we don't know from which directory we'll be run.
+case "$orig_INSTALL" in
+ /*) ;;
+ */*) orig_INSTALL=$(pwd)/$orig_INSTALL;;
+esac
+export orig_INSTALL
END
cat >>configure.ac <<END
diff --git a/t/instmany.sh b/t/instmany.sh
index 94a805302..126c93fb2 100644
--- a/t/instmany.sh
+++ b/t/instmany.sh
@@ -45,8 +45,6 @@ mkdir x-bin
sed "s|@limit@|$limit|g" >x-bin/my-install <<'END'
#! /bin/sh
-# Fake install script. This doesn't really install
-# (the INSTALL path below would be wrong outside this directory).
limit=@limit@
PATH=$oPATH; export PATH
if test -z "$orig_INSTALL"; then
@@ -80,8 +78,16 @@ END
# Creative quoting in the next line to please maintainer-check.
chmod +x x-bin/'rm' x-bin/my-install
-cat > setenv.in <<'END'
-orig_INSTALL='@INSTALL@'; export orig_INSTALL
+cat >setenv.in <<'END'
+orig_INSTALL='@INSTALL@'
+# In case we've falled back on the install-sh script (seen e.g.,
+# on AIX 7.1), we need to make sure we use its absolute path,
+# as we don't know from which directory we'll be run.
+case "$orig_INSTALL" in
+ /*) ;;
+ */*) orig_INSTALL=$(pwd)/$orig_INSTALL;;
+esac
+export orig_INSTALL
END
cat >>configure.ac <<END
diff --git a/t/parallel-tests-concurrency.sh b/t/parallel-tests-concurrency.sh
index 448b3bc0d..9c80c2c7b 100644
--- a/t/parallel-tests-concurrency.sh
+++ b/t/parallel-tests-concurrency.sh
@@ -17,8 +17,8 @@
# Check parallel-tests features:
# - concurrent parallel execution
-# FIXME: we should factorize the code to determine how to run
-# make in parallel out in am-test-lib.sh ...
+# FIXME: we should factor out (into am-test-lib.sh?) the code to determine
+# how to run make in parallel mode ...
. test-init.sh
@@ -69,10 +69,13 @@ done
cd serial
$MAKE -j1 check &
-cd ../parallel
+cd ..
+
+cd parallel
$sleep
run_make -O -- -j4 check
cd ..
+
# Ensure the tests are really being run in parallel mode: if this is
# the case, the serial run of the dummy testsuite started above should
# still be ongoing when the parallel one has terminated.
diff --git a/t/txinfo-override-texinfo-tex.sh b/t/txinfo-override-texinfo-tex.sh
index fc2fcc721..60be43df1 100644
--- a/t/txinfo-override-texinfo-tex.sh
+++ b/t/txinfo-override-texinfo-tex.sh
@@ -30,12 +30,13 @@ AC_OUTPUT
END
cat > Makefile.am << 'END'
-TEXINFO_TEX = $(srcdir)/tex/texinfo.tex
+TEXINFO_TEX = ../tex/texinfo.tex
info_TEXINFOS = main.texi
sure_it_exists:
- test -f $(TEXINFO_TEX)
+ test -f $(srcdir)/$(TEXINFO_TEX)
sure_it_is_not_distributed: distdir
test ! -f $(distdir)/tex/texinfo.tex
+check-local: sure_it_exists
END
cat > main.texi << 'END'
@@ -61,7 +62,6 @@ test -f tex/texinfo.tex
./configure
-$MAKE sure_it_exists
$MAKE distcheck
$MAKE sure_it_is_not_distributed