summaryrefslogtreecommitdiff
path: root/tests/defs
blob: ddf92ced6ff32923504a541637d98b1d9edf0f12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# -*- sh -*-
# Defines for Libtool testing environment.
# Gord Matzigkeit <gord@gnu.ai.mit.edu>, 1996

# Check that srcdir is set to an absolute path.
case "$srcdir" in
/* | [A-Za-z]:\\*) ;;
*) srcdir=`cd $srcdir && pwd` ;;
esac

progname=`echo "$0" | sed 's%^.*/%%'`

# tlibtool needs to know what srcdir is.
export srcdir
libtool="$srcdir/tlibtool"
make="${MAKE-make}"

prefix="./_inst"
if test "$need_prefix" = yes; then
  # An absolute path to a test installation directory.
  test -d $prefix || mkdir $prefix
  prefix=`cd $prefix && pwd`
else
  test -d $prefix && rm -rf $prefix
  prefix=NONE
fi

# See how redirections should work.
case "$VERBOSE" in
NO | no | 0 | "")
  exec > /dev/null 2>&1
  ;;
esac

echo "=== Running $progname"