root/swish-e/trunk/tests/common.sh

Revision 1158, 0.8 kB (checked in by whmoseley, 6 years ago)

Added support for automake and libtool

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 #!/bin/sh
2
3 # From GNU Autoconf book
4
5 # Make sure srcdir is an absolute path.  Supply the variable
6 # if it does not exist.  We want to be able to run the tests
7 # stand-alone!!
8 #
9 srcdir=${srcdir-.}
10 if test ! -d $srcdir ; then
11     echo "defs: installation error" 1>&2
12     exit 1
13 fi
14
15 #  IF the source directory is a Unix or a DOS root directory, ...
16 #
17 case "$srcdir" in
18     /* | [A-Za-z]:\\*) ;;
19     *) srcdir=`\cd $srcdir && pwd` ;;
20 esac
21
22 case "$top_builddir" in
23     /* | [A-Za-z]:\\*) ;;
24     *) top_builddir=`\cd ${top_builddir-..} && pwd` ;;
25 esac
26
27 progname=`echo "$0" | sed 's,^.*/,,'`
28 testname=`echo "$progname" | sed 's,-.*$,,'`
29
30
31 # User can set VERBOSE to prevent output redirection
32 case x$VERBOSE in
33     xNO | xno | x0 | x)
34         exec > /dev/null 2>&1
35         ;;
36 esac
37
38
39 echo "=== Running test $progname"
40
41 SWISH="${top_builddir}/src/swish-e"
42
Note: See TracBrowser for help on using the browser.