Edit

kc3-lang/automake/tests/cond.test

Branch :

  • Show log

    Commit

  • Author : Tom Tromey
    Date : 1997-04-30 01:10:36
    Hash : 8511c132
    Message : added conditionals tests from ian

  • tests/cond.test
  • #! /bin/sh
    
    # Check basic use of conditionals.
    
    . $srcdir/defs || exit 1
    
    cat > configure.in << 'END'
    AM_INIT_AUTOMAKE(nonesuch, nonesuch)
    AM_CONDITIONAL(TEST, true)
    AC_OUTPUT(Makefile)
    END
    
    cat > Makefile.am << 'END'
    if TEST
    VAR = true
    else
    VAR = false
    endif
    END
    
    $AUTOMAKE || exit 1
    
    grep '^@TEST_TRUE@' Makefile.in || exit 1
    exit 0