2 # Defines for Automake testing environment.
3 # Tom Tromey <tromey@cygnus.com>
5 # Ensure $srcdir set correctly.
6 test -f $srcdir/defs || {
7 echo "defs: installation error" 1>&2
11 # Always use an absolute srcdir. Otherwise symlinks made in subdirs
12 # of the test dir just won't work.
18 srcdir=`CDPATH=: && cd "$srcdir" && pwd`
22 chmod -R a+rwx testSubDir > /dev/null 2>&1
23 rm -rf testSubDir > /dev/null 2>&1
27 # Build appropriate environment in test directory. Eg create
28 # configure.in, touch all necessary files, etc.
29 cat > configure.in << 'END'
30 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
43 (cd .. && cp $srcdir/../depcomp testSubDir/depcomp) || exit 1
45 # See how redirections should work. User can set VERBOSE to see all
47 test -z "$VERBOSE" && {
51 # User can set PERL to change the perl interpreter used.
52 test -z "$PERL" && PERL=perl
54 # User can set MAKE to choose which make to use. Must use GNU make.
55 test -z "$MAKE" && MAKE=make
57 echo "=== Running test $0"
59 # See how Automake should be run. We put --foreign as the default
60 # strictness to avoid having to create lots and lots of files. A test
61 # can override this by specifying a different strictness.
62 AUTOMAKE="$PERL ../../automake --amdir=$srcdir/.. --foreign"
64 # See how aclocal should be run.
65 ACLOCAL="$PERL ../../aclocal --acdir=$srcdir/../m4"