test/Makefile.am: fix tests for make distcheck

At several points in the forked code, top_srcdir and top_builddir
are mixed up.  It is not clear if this is an upstream bug or if this
is a result of the initial restructuring of the build system.  This
commit addresses this issue for tests triggered during make distcheck.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
This commit is contained in:
Anthony G. Basile 2012-11-19 19:09:37 -05:00
parent a21f6c078b
commit 802d021d2e
2 changed files with 4 additions and 4 deletions

View File

@ -9,10 +9,10 @@ check_DATA = \
test/sys:
$(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
$(AM_V_GEN)tar -C $(top_builddir)/test/ -xJf $(top_srcdir)/test/sys.tar.xz
test-sys-distclean:
-rm -rf test/sys
-rm -rf $(top_builddir)/test/sys
DISTCLEAN_LOCAL_HOOKS = \
test-sys-distclean

View File

@ -4,7 +4,7 @@
# (C) 2010 Canonical Ltd.
# Author: Martin Pitt <martin.pitt@ubuntu.com>
[ -n "$srcdir" ] || srcdir=`dirname $0`/..
[ -n "$builddir" ] || builddir=`dirname $0`/..
# skip if we don't have python
type python >/dev/null 2>&1 || {
@ -12,4 +12,4 @@ type python >/dev/null 2>&1 || {
exit 0
}
$srcdir/test/rule-syntax-check.py `find $srcdir/rules -name '*.rules'`
$builddir/test/rule-syntax-check.py `find $builddir/rules -name '*.rules'`