Edit

kc3-lang/automake/tests/defs

Branch :

  • Show log

    Commit

  • Author : Tom Tromey
    Date : 1996-02-27 17:57:37
    Hash : 5945f033
    Message : Updated all tests

  • tests/defs
  • # -*- ksh -*-
    # Defines for Automake testing environment.
    # Tom Tromey <tromey@cygnus.com>
    
    # Ensure $srcdir set correctly.
    test -f $srcdir/defs || {
       echo "defs: installation error" 1>&2
       exit 1
    }
    
    # If srcdir is relative, we need to modify it.
    case "$srcdir" in
     /*)
        ;;
    
     *)
        srcdir="../$srcdir"
        ;;
    esac
    
    rm -rf testSubDir > /dev/null 2>&1
    mkdir testSubDir
    cd testSubDir
    
    # FIXME: build appropriate environment in test directory.
    # Eg create configure.in, touch all necessary files, etc.
    cat > configure.in << 'END'
    AC_ARG_PROGRAM
    fp_PROG_INSTALL
    AC_OUTPUT(Makefile)
    END
    
    : > install-sh
    : > mkinstalldirs
    
    # See how redirections should work.
    test -z "$VERBOSE" && {
       exec > /dev/null 2>&1
    }
    
    echo "=== Running test $0"
    
    # See how Automake should be run.
    AUTOMAKE="../../automake --amdir=$srcdir/.."