A little fix is needed for the udev-test.pl script (to be called with the
proper path), but this allows for the test binaries to be only built when
running the tests themselves.
@ cat ChangeLog.tmp >> ChangeLog
@ rm ChangeLog.tmp
-test-run:
- cd test && ./udev-test.pl
-
test-install:
rm -rf $(PWD)/udev-test-install/
make DESTDIR=$(PWD)/udev-test-install install
# ------------------------------------------------------------------------------
# Tests
# ------------------------------------------------------------------------------
+
+TESTS = test/udev-test.pl
+
check_PROGRAMS = \
libudev/test-libudev \
udev/test-udev
my $PWD = $ENV{PWD};
my $sysfs = "sys/";
-my $udev_bin = "../udev/test-udev";
+my $udev_bin = "udev/test-udev";
my $valgrind = 0;
my $udev_bin_valgrind = "valgrind --tool=memcheck --leak-check=yes --quiet $udev_bin";
my $udev_root = "udev-root/";