Author :
Tom Tromey
Date :
1998-09-26 18:32:31
Hash :c7266e91 Message : Test suite updates for the @SHELL@ change:
* exsource.test: Set SHELL on `make' command line.
* ansi.test: Set SHELL on `make' command line.
* texinfo.test: Set SHELL on `make' command line.
* insh2.test: Set SHELL on `make' command line.
* empty.test: Rewrite @SHELL@ to /bin/sh.
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 0
}
cat >> configure.in << 'END'
AC_PROG_CC
END
cat > Makefile.am << 'END'
bin_PROGRAMS = www
www_SOURCES = www.c @extra_stuff@
EXTRA_www_SOURCES = xtra.c
magic:
@echo $(DEP_FILES)
END
: > www.c
: > xtra.c
$AUTOMAKE || exit 1
# Make sure the Makefile.in can find the .-files it needs.
mkdir .deps
echo > .deps/.P
echo > .deps/xtra.P
echo > .deps/www.P
$MAKE -s -f Makefile.in SHELL=/bin/sh srcdir=`pwd` magic | grep xtra