From c3da5a74ffef3cb177270b021c34bd4cd2bb80f5 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Sat, 27 Dec 2014 13:52:55 +0100 Subject: tests: avoid some spurious failures on AIX 7.1 * t/lex-noyywrap.sh: Here. * t/instmany-mans.sh: And here. * t/instmany-python.sh: And here. * t/instmany.sh: And here. * t/parallel-tests-concurrency.sh: And here. Signed-off-by: Stefano Lattarini --- t/instmany-mans.sh | 16 +++++++++++----- t/instmany-python.sh | 16 +++++++++++----- t/instmany.sh | 16 +++++++++++----- t/lex-noyywrap.sh | 7 ++++--- t/parallel-tests-concurrency.sh | 15 ++++++++++----- 5 files changed, 47 insertions(+), 23 deletions(-) diff --git a/t/instmany-mans.sh b/t/instmany-mans.sh index eb0c9dbb9..0ed23488f 100644 --- a/t/instmany-mans.sh +++ b/t/instmany-mans.sh @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 2008-2013 Free Software Foundation, Inc. +# Copyright (C) 2008-2014 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -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 <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 <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 < Date: Sat, 27 Dec 2014 15:49:36 +0100 Subject: tests: fix spurious failure in test on TEXINFO_TEX overriding * t/txinfo-override-texinfo-tex.sh: Here. The issue was pre-existing, but has been only recently exposed by the fix for automake bug#18286 "distcheck fails to detect missing files" (see commit v1.14.1-4-g01a7a4a) and by the BSD make semantics. To convince yourself this change actually makes sense semantically, see https://sourceware.org/ml/binutils/2012-06/msg00004.html Signed-off-by: Stefano Lattarini --- t/txinfo-override-texinfo-tex.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/txinfo-override-texinfo-tex.sh b/t/txinfo-override-texinfo-tex.sh index 72bf834e2..c03dd3947 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 -- cgit v1.2.1