Added dist-zip.
[automake.git] / tests / defs
blob321fa7b6635bf8830f482c481df6922b9a2067c7
1 # -*- ksh -*-
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
8    exit 1
11 # If srcdir is relative, we need to modify it.
12 case "$srcdir" in
13  /*)
14     ;;
16  *)
17     srcdir="../$srcdir"
18     ;;
19 esac
21 rm -rf testSubDir > /dev/null 2>&1
22 mkdir testSubDir
23 cd testSubDir
25 # Build appropriate environment in test directory.  Eg create
26 # configure.in, touch all necessary files, etc.
27 cat > configure.in << 'END'
28 PACKAGE=nonesuch
29 VERSION=nonesuch
30 AC_ARG_PROGRAM
31 fp_PROG_INSTALL
32 AC_OUTPUT(Makefile)
33 END
35 : > install-sh
36 : > mkinstalldirs
38 # See how redirections should work.
39 test -z "$VERBOSE" && {
40    exec > /dev/null 2>&1
43 echo "=== Running test $0"
45 # See how Automake should be run.  We put --foreign as the default
46 # strictness to avoid having to create lots and lots of files.  A test
47 # can override this by specifying a different strictness.
48 AUTOMAKE="../../automake --amdir=$srcdir/.. --foreign"