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 # If srcdir is relative, we need to modify it.
21 rm -rf testSubDir > /dev/null 2>&1
25 # Build appropriate environment in test directory. Eg create
26 # configure.in, touch all necessary files, etc.
27 cat > configure.in << 'END'
39 # See how redirections should work. User can set VERBOSE to see all
41 test -z "$VERBOSE" && {
45 # User can set PERL to change the perl interpreter used.
46 test -z "$PERL" && PERL=perl
48 # User can set MAKE to choose which make to use. Must use GNU make.
49 test -z "$MAKE" && MAKE=make
51 echo "=== Running test $0"
53 # See how Automake should be run. We put --foreign as the default
54 # strictness to avoid having to create lots and lots of files. A test
55 # can override this by specifying a different strictness.
56 AUTOMAKE="$PERL ../../automake --amdir=$srcdir/.. --foreign"
58 # See how aclocal should be run.
59 ACLOCAL="$PERL ../../aclocal --acdir=$srcdir/../m4"