Edit

kc3-lang/automake/tests/libobj7.test

Branch :

  • Show log

    Commit

  • Author : Tom Tromey
    Date : 1998-10-13 18:51:29
    Hash : d9b98a63
    Message : F77 changes + some random fixes * libobj7.test: Updated to reflect minor change in automake (test wasn't resilient enough). * instman.test: Updated to reflect fact that mkinstalldirs will be in distribution. * cxxonly.test: Removed. * Makefile.am (TESTS): Added compile_f_c_cxx.test. * compile_f_c_cxx.test: New file. * Makefile.am (TESTS): Added flink.test link_c_cxx.test link_f_c.test link_f_c_cxx.test link_f_cxx.test link_f_only.test. Removed flink.test. * flibs.test: New File. * link_c_cxx.test: New file. * link_f_c.test: New file. * link_f_c_cxx.test: New file. * link_f_cxx.test: New file. * link_f_only.test: New file. * Makefile.am (TESTS): Add cxxonly.test, fonly.test, flink.test, fnoc.test and fo.test. * cxxonly.test: New file. * fonly.test: New file. * flink.test: New file. * fnoc.test: New file. * fo.test: New file.

  • tests/libobj7.test
  • #! /bin/sh
    
    # Test for multiple replacement functions.
    
    . $srcdir/defs || exit 1
    
    cat > configure.in << 'END'
    PACKAGE=nonesuch
    VERSION=nonesuch
    AC_PROG_CC
    AC_ARG_PROGRAM
    AC_PROG_INSTALL
    AC_PROG_RANLIB
    AC_REPLACE_FUNCS(basename dirname strsignal)
    AC_OUTPUT(Makefile)
    END
    
    cat > Makefile.am << 'END'
    noinst_LIBRARIES = libtu.a
    libtu_a_SOURCES =
    libtu_a_LIBADD = @LIBOBJS@
    END
    
    : > basename.c
    : > dirname.c
    : > strsignal.c
    
    $AUTOMAKE || exit 1
    
    sed -n -e ': again
      /^DIST_COMMON.*[^\]$/ p
      /^DIST_COMMON/ {
         s/^DIST_COMMON//p
         n
         s/^/DIST_COMMON/
         b again
      }' < Makefile.in | fgrep dirname.c