libtool/tests/demo-unst.test

36 lines
873 B
Plaintext
Raw Normal View History

1997-04-02 03:18:28 +08:00
#! /bin/sh
# demo.test - try uninstalling in the ../demo subdirectory
# Test script header.
need_prefix=yes
if test -z "$srcdir"; then
1997-04-02 03:21:43 +08:00
srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
test "$srcdir" = "$0" && srcdir=.
1997-04-02 03:18:28 +08:00
test "${VERBOSE+set}" != "set" && VERBOSE=yes
fi
. $srcdir/defs || exit 1
# Maybe we have a VPATH build, in which case, create a new subdir.
if test "$prefix/bin/hell"; then :
else
echo "You must run demo-inst.test before $0." 1>&2
exit 1
fi
# Change to our build directory.
cd ../demo || exit 1
1997-04-02 03:53:01 +08:00
echo "= Running $make uninstall in ../demo"
$make uninstall || exit 1
1997-04-02 03:18:28 +08:00
# See that there were no files leftover in $prefix.
1997-04-02 03:21:43 +08:00
# Ignore dotfiles, so that .nfsXXX files don't screw up the test.
1997-04-02 03:53:01 +08:00
leftovers=`find $prefix ! -type d ! -name '.*' -print`
1997-04-02 03:18:28 +08:00
if test -n "$leftovers"; then
echo "= Leftover after make uninstall:"
ls -l $leftovers
exit 1
fi
exit 0