eudev/test/rules-test.sh
Anthony G. Basile 802d021d2e 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>
2012-11-19 19:09:48 -05:00

16 lines
425 B
Bash
Executable File

#!/bin/sh
# Call the udev rule syntax checker on all rules that we ship
#
# (C) 2010 Canonical Ltd.
# Author: Martin Pitt <martin.pitt@ubuntu.com>
[ -n "$builddir" ] || builddir=`dirname $0`/..
# skip if we don't have python
type python >/dev/null 2>&1 || {
echo "$0: No python installed, skipping udev rule syntax check"
exit 0
}
$builddir/test/rule-syntax-check.py `find $builddir/rules -name '*.rules'`