mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-11-27 06:09:57 +08:00
* 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.
This commit is contained in:
parent
cbd5046d65
commit
7e6797e65d
@ -1,5 +1,10 @@
|
||||
2005-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
* 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.
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user