From: Ralf Wildenhues Date: Wed, 24 Aug 2005 13:39:51 +0000 (+0000) Subject: * tests/defs.m4sh (m4dir, auxdir, scripts): Fix for source tree X-Git-Tag: release-2-1b~560 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e6797e65d3172b6b29150436514667dc3451707;p=thirdparty%2Flibtool.git * tests/defs.m4sh (m4dir, auxdir, scripts): Fix for source tree reorganization. * tests/sh.test: Adjust. Also barf on sed diagnostics so this test will not fail again silently. --- diff --git a/ChangeLog b/ChangeLog index 201f1ff02..e5eca2653 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2005-08-24 Ralf Wildenhues + * tests/defs.m4sh (m4dir, auxdir, scripts): Fix for source tree + reorganization. + * tests/sh.test: Adjust. Also barf on sed diagnostics so this + test will not fail again silently. + * libltdl/m4/ltdl.m4 (LT_SYS_SYMBOL_USCORE): Use _LT_EOF, not EOF. diff --git a/tests/defs.m4sh b/tests/defs.m4sh index a6acfc946..ad1f4478b 100644 --- a/tests/defs.m4sh +++ b/tests/defs.m4sh @@ -334,7 +334,9 @@ func_exec () # Shared global variables for test scripts prefix="./_inst" srcdir=`cd $srcdir && pwd` -scripts="$srcdir/config/ltmain.sh ./libtoolize" +m4dir=$srcdir/libltdl/m4 +auxdir=$srcdir/libltdl/config +scripts="$auxdir/ltmain.sh ./libtoolize" func_msg "Running $progname" diff --git a/tests/sh.test b/tests/sh.test index 93beadaaa..fec6fb261 100755 --- a/tests/sh.test +++ b/tests/sh.test @@ -92,9 +92,10 @@ do done # Check for opening brace on next line in shell function definition. +# redirect stderr so we also barf when sed issues diagnostics. for s in $scripts do - if $SED -n '/^func_/{N;/^func_[^ ]* ()\n{$/d;p;}' "$s" | + if $SED -n '/^func_/{N;/^func_[^ ]* ()\n{$/d;p;}' "$s" 2>&1 | $EGREP .; then echo "Function definitions should look like this in $s: func_foo () @@ -105,11 +106,13 @@ func_foo () fi done -for s in "$srcdir/m4/libtool.m4" +# Check for correct usage of $cc_basename. +# redirect stderr so we also barf when sed issues diagnostics. +for s in "$m4dir/libtool.m4" do if $SED -n '/case \$cc_basename in/,/esac/ { /^[ ]*[a-zA-Z][a-zA-Z0-9+]*[^*][ ]*)/p - };' $s | $EGREP .; then + };' $s 2>&1 | $EGREP .; then echo "\$cc_basename matches should include a trailing \`*' in $s." status=$EXIT_FAILURE fi