Edit

kc3-lang/automake/tests/cond9.test

Branch :

  • Show log

    Commit

  • Author : Akim Demaille
    Date : 2001-03-23 16:23:53
    Hash : eedc18e1
    Message : * automake.in (read_am_file): TRUE and FALSE are predefined conditionals. (&by_condition): Adjust. (&conditional_string): Recognize `TRUE' and `FALSE'. (&make_condition): Use it. * m4/cond.m4: Reject TRUE and FALSE as conditionals. * automake.texi (Conditionals): Adjust. * tests/cond9.test: s/FALSE/WRONG/.

  • tests/cond9.test
  • #! /bin/sh
    
    # Test for bug in conditionals.  From Raja R Harinath.
    
    . $srcdir/defs || exit 1
    
    cat > configure.in << 'END'
    AC_INIT(Makefile.am)
    AM_INIT_AUTOMAKE(foo,0.0)
    AM_CONDITIONAL(WRONG, [test x = y])
    AC_OUTPUT(Makefile)
    END
    
    cat > Makefile.am << 'END'
    if WRONG
    this=
    else
    this=is_something_interesting
    endif
    
    echo-something:
    	echo '$(this)'
    END
    
    $needs_autoconf
    
    $ACLOCAL \
      && $AUTOCONF \
      && $AUTOMAKE -a \
      && ./configure \
      && $MAKE echo-something | grep interesting > /dev/null