Edit

kc3-lang/automake/tests/exsource.test

Branch :

  • Show log

    Commit

  • Author : Tom Tromey
    Date : 2001-02-16 06:16:27
    Hash : 828fcc88
    Message : * tests/subobj3.test: Exit with status 77 if gcc not found. * tests/pr9.test: Exit with status 77 if gzip not found. * tests/pr87.test: Exit with status 77 if gcc not found. * tests/pr19.test: Exit with status 77 if gzip or gcc not found. * tests/install2.test: Exit with status 77 if gzip not found. * tests/exsource.test: Exit with status 77 if GNU make not found. * tests/ansi3.test: Exit with status 77 if gcc not found. * tests/target-cflags.test: Require GNU make. Exit with status 77 if gcc or make not found. Fixes PR automake/121.

  • tests/exsource.test
  • #! /bin/sh
    
    # Test to make sure EXTRA_..._SOURCES actually works.
    # Bug report from Henrik Frystyk Nielsen.
    
    . $srcdir/defs || exit 1
    
    # This test relies on GNU make.
    $MAKE --version > /dev/null 2>&1 || {
       # Nope.
       exit 77
    }
    
    cat >> configure.in << 'END'
    AC_PROG_CC
    END
    
    cat > Makefile.am << 'END'
    bin_PROGRAMS = www
    www_SOURCES = www.c
    EXTRA_www_SOURCES = xtra.c
    www_LDADD = @extra_stuff@
    magic:
    	@echo $(DEP_FILES)
    END
    
    : > www.c
    : > xtra.c
    
    $AUTOMAKE || exit 1
    
    grep '@_am_include@ .*/xtra\.P' Makefile.in