If a certain configuration is not supported, skip all its tests.
1999-03-19 Alexandre Oliva <oliva@dcc.unicamp.br>
+ * tests/*.test: when a test fails, skip tests that depend on it.
+ If a certain configuration is not supported, skip all its tests.
+
* doc/libtool.texi: reorder tests to reflect execution order
* tests/noinst-link.test: new test
. $srcdir/defs || exit 1
# Check that things are built.
-if test -f ../demo/hell; then :
+if test -f $prefix/lib/libhello.la && cd ../demo; then :
else
echo "You must run demo-inst.test before $0" 1>&2
- exit 1
+ exit 77
fi
-# Change to our build directory.
-cd ../demo || exit 1
-
# Unfortunately, we need access to libtool internals for this test.
objdir=NONE
eval `egrep -e '^objdir=' ./libtool 2>/dev/null`
echo "= Configuring in ../cdemo (prefix=$prefix)"
CONFIG_SITE=/dev/null ${CONFIG_SHELL-/bin/sh} $srcdir/../cdemo/configure --srcdir=$srcdir/../cdemo --prefix=$prefix || exit 1
+if egrep '^build_old_libs=yes' libtool > /dev/null &&
+ egrep '^build_libtool_libs=yes' libtool > /dev/null; then :
+else rm -f Makefile && exit 77
+fi
+
exit 0
if test -f ../cdemo/cdemo; then :
else
echo "You must run cdemo-make.test before running $0" 1>&2
- exit 1
+ exit 77
fi
# Check to see if the programs really run.
if test -f ../cdemo/Makefile; then :
else
echo "You must run cdemo-conf.test before running $0" 1>&2
- exit 1
+ exit 77
fi
# Change to our build directory.
echo "= Configuring in ../cdemo (prefix=$prefix) with --disable-static"
CONFIG_SITE=/dev/null ${CONFIG_SHELL-/bin/sh} $srcdir/../cdemo/configure --srcdir=$srcdir/../cdemo --prefix=$prefix --disable-static || exit 1
+if egrep '^build_old_libs=no' libtool > /dev/null &&
+ egrep '^build_libtool_libs=yes' libtool > /dev/null; then :
+else rm -f Makefile && exit 77
+fi
+
exit 0
echo "= Configuring in ../cdemo (prefix=$prefix) with --disable-shared"
CONFIG_SITE=/dev/null ${CONFIG_SHELL-/bin/sh} $srcdir/../cdemo/configure --srcdir=$srcdir/../cdemo --prefix=$prefix --disable-shared || exit 1
+if egrep '^build_old_libs=yes' libtool > /dev/null &&
+ egrep '^build_libtool_libs=no' libtool > /dev/null; then :
+else rm -f Makefile && exit 77
+fi
+
exit 0
echo "= Configuring in ../demo (prefix=$prefix)"
CONFIG_SITE=/dev/null ${CONFIG_SHELL-/bin/sh} $srcdir/../demo/configure --srcdir=$srcdir/../demo --prefix=$prefix || exit 1
+if egrep '^build_old_libs=yes' libtool > /dev/null &&
+ egrep '^build_libtool_libs=yes' libtool > /dev/null; then :
+else rm -f Makefile && exit 77
+fi
+
exit 0
if test -f ../demo/hell; then :
else
echo "You must run demo-make.test before running $0" 1>&2
- exit 1
+ exit 77
fi
# Check to see if the programs really run.
if test -f ../demo/hell; then :
else
echo "You must run demo-make.test before $0" 1>&2
- exit 1
+ exit 77
fi
# Change to our build directory.
if test -f ../demo/Makefile; then :
else
echo "You must run demo-conf.test before running $0" 1>&2
- exit 1
+ exit 77
fi
# Change to our build directory.
echo "= Configuring in ../demo (prefix=$prefix)"
CONFIG_SITE=/dev/null ${CONFIG_SHELL-/bin/sh} $srcdir/../demo/configure --srcdir=$srcdir/../demo --prefix=$prefix --enable-fast-install=no || exit 1
+if egrep '^hardcode_action=relink' libtool > /dev/null; then
+ rm -f Makefile && exit 77
+fi
+
exit 0
echo "= Configuring in ../demo (prefix=$prefix) with --disable-static"
CONFIG_SITE=/dev/null ${CONFIG_SHELL-/bin/sh} $srcdir/../demo/configure --srcdir=$srcdir/../demo --prefix=$prefix --disable-static || exit 1
+if egrep '^build_old_libs=no' libtool > /dev/null &&
+ egrep '^build_libtool_libs=yes' libtool > /dev/null; then :
+else rm -f Makefile && exit 77
+fi
+
exit 0
echo "= Configuring in ../demo (prefix=$prefix) with --disable-shared"
CONFIG_SITE=/dev/null ${CONFIG_SHELL-/bin/sh} $srcdir/../demo/configure --srcdir=$srcdir/../demo --prefix=$prefix --disable-shared || exit 1
+if egrep '^build_old_libs=yes' libtool > /dev/null &&
+ egrep '^build_libtool_libs=no' libtool > /dev/null; then :
+else rm -f Makefile && exit 77
+fi
+
exit 0
fi
. $srcdir/defs || exit 1
-# Maybe we have a VPATH build, in which case, create a new subdir.
+# Make sure it was installed already
if test "$prefix/bin/hell"; then :
else
echo "You must run demo-inst.test before $0." 1>&2
- exit 1
+ exit 77
fi
# Change to our build directory.
# hardcode.test - check to see what the system linker hardcodes
# Test script header.
-need_prefix=yes # otherwise it will be removed, and build-relink fails
+need_prefix=yes
if test -z "$srcdir"; then
srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
test "$srcdir" = "$0" && srcdir=.
. $srcdir/defs || exit 1
# Check that things are built.
-if test -f ../demo/hell; then :
+if test -f $prefix/lib/libhello.la && cd ../demo; then :
else
- echo "You must run demo-make.test before $0" 1>&2
- exit 1
+ echo "You must run demo-inst.test before $0" 1>&2
+ exit 77
fi
-# Change to our build directory.
-cd ../demo || exit 1
-
# Unfortunately, we need access to libtool internals for this test.
objdir=NONE
eval `egrep -e '^objdir=' ./libtool 2>/dev/null`
echo "= Configuring in ../mdemo (prefix=$prefix)"
CONFIG_SITE=/dev/null ${CONFIG_SHELL-/bin/sh} $srcdir/../mdemo/configure --srcdir=$srcdir/../mdemo --prefix=$prefix || exit 1
+if egrep '^build_old_libs=yes' libtool > /dev/null &&
+ egrep '^build_libtool_libs=yes' libtool > /dev/null; then :
+else rm -f Makefile && exit 77
+fi
+
exit 0
if test -f ../mdemo/mdemo; then :
else
echo "You must run mdemo-make.test before running $0" 1>&2
- exit 1
+ exit 77
fi
# Check to see if the programs really run.
if test -f ../mdemo/mdemo; then :
else
echo "You must run mdemo-make.test before $0" 1>&2
- exit 1
+ exit 77
fi
# Change to our build directory.
if test -f ../mdemo/Makefile; then :
else
echo "You must run mdemo-conf.test before running $0" 1>&2
- exit 1
+ exit 77
fi
# Change to our build directory.
echo "= Configuring in ../mdemo (prefix=$prefix) with --disable-static"
CONFIG_SITE=/dev/null ${CONFIG_SHELL-/bin/sh} $srcdir/../mdemo/configure --srcdir=$srcdir/../mdemo --prefix=$prefix --disable-static || exit 1
+if egrep '^build_old_libs=no' libtool > /dev/null &&
+ egrep '^build_libtool_libs=yes' libtool > /dev/null; then :
+else rm -f Makefile && exit 77
+fi
+
exit 0
echo "= Configuring in ../mdemo (prefix=$prefix) with --disable-shared"
CONFIG_SITE=/dev/null ${CONFIG_SHELL-/bin/sh} $srcdir/../mdemo/configure --srcdir=$srcdir/../mdemo --prefix=$prefix --disable-shared || exit 1
+if egrep '^build_old_libs=yes' libtool > /dev/null &&
+ egrep '^build_libtool_libs=no' libtool > /dev/null; then :
+else rm -f Makefile && exit 77
+fi
+
exit 0
fi
. $srcdir/defs || exit 1
-# Maybe we have a VPATH build, in which case, create a new subdir.
+# Make sure it was installed already
if test "$prefix/bin/hell"; then :
else
echo "You must run mdemo-inst.test before $0." 1>&2
- exit 1
+ exit 77
fi
# Change to our build directory.