Hash :
15c2697c
Author :
Date :
2002-08-19T13:09:00
Fix for PR automake/345: * tests/defs: Add support for required=non-root, stolen from fileutils' test suite. * tests/destdir.test: Use required=non-root.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
#! /bin/sh
# Make sure that `make distcheck' can find some $(DESTDIR) omissions.
# PR/186.
# The feature we test here relies on read-only files.
# It will only work for non-root users.
required='non-root'
. $srcdir/defs || exit 1
set -e
cat >> configure.in <<'EOF'
AC_OUTPUT
EOF
cat > Makefile.am <<'EOF'
dist_data_DATA = foo
# This rule is bogus because it doesn't use $(DESTDIR) on the
# second argument of cp. distcheck is expected to catch this.
install-data-hook:
cp $(DESTDIR)$(datadir)/foo $(datadir)/bar
uninstall-local:
rm -f $(DESTDIR)$(datadir)/bar
EOF
: > foo
$ACLOCAL
$AUTOCONF
$AUTOMAKE -a
./configure
$MAKE distcheck && exit 1
: