Edit

kc3-lang/automake/tests/distcommon.test

Branch :

  • Show log

    Commit

  • Author : Tom Tromey
    Date : 2001-02-07 20:55:07
    Hash : b88ca08f
    Message : * distcommon.test: New file. * Makefile.am (TESTS): Added new file.

  • tests/distcommon.test
  • #! /bin/sh
    
    # A test for failure to include files provided in AC_OUTPUT into
    # DIST_COMMON
    # From Derek R. Price.
    
    . $srcdir/defs || exit 1
    
    cat > configure.in << EOF
    AM_INIT_AUTOMAKE(nonesuch, nonesuch)
    AC_OUTPUT(subdir/bar \
    	  Makefile \
    	  subdir/Makefile)
    EOF
    
    : > Makefile.am
    
    mkdir subdir
    : > subdir/Makefile.am
    : > subdir/bar.in
    
    $AUTOMAKE || exit 1
    
    # verify bar.in
    grep 'DIST_COMMON.*bar.in' subdir/Makefile.in || exit 1
    
    exit 0