chiark / gitweb /
udev: unpack sysfs test tree only on 'make check'; fix test-udev binary location
authorKay Sievers <kay@vrfy.org>
Fri, 13 Apr 2012 13:57:13 +0000 (15:57 +0200)
committerKay Sievers <kay@vrfy.org>
Fri, 13 Apr 2012 13:57:13 +0000 (15:57 +0200)
Makefile.am
src/udev/test/udev-test.pl

index d13963f..ebbee04 100644 (file)
@@ -98,6 +98,8 @@ dist_dbuspolicy_DATA =
 dbusinterface_DATA =
 dist_dbussystemservice_DATA =
 check_PROGRAMS =
+check_DATA =
+noinst_PROGRAMS =
 TESTS =
 
 AM_CPPFLAGS = \
@@ -856,7 +858,7 @@ EXTRA_DIST += \
        src/core/systemd.pc.in
 
 # ------------------------------------------------------------------------------
-check_PROGRAMS += \
+noinst_PROGRAMS += \
        test-engine \
        test-job-type \
        test-ns \
@@ -1487,7 +1489,7 @@ TESTS += \
        src/udev/test/udev-test.pl \
        src/udev/test/rules-test.sh
 
-check_PROGRAMS += \
+noinst_PROGRAMS += \
        test-libudev \
        test-udev
 
@@ -1505,7 +1507,7 @@ test_udev_LDADD = \
        libudev-private.la \
        libsystemd-shared.la
 
-test_udev_DEPENDENCIES = \
+check_DATA += \
        src/udev/test/sys
 
 # packed sysfs test tree
@@ -1929,7 +1931,7 @@ test_id128_LDADD = \
        libsystemd-shared.la \
        libsystemd-id128.la
 
-check_PROGRAMS += \
+noinst_PROGRAMS += \
        test-id128
 
 TESTS += \
@@ -2111,7 +2113,7 @@ libsystemd-journal-uninstall-hook:
 UNINSTALL_EXEC_HOOKS += \
        libsystemd-journal-uninstall-hook
 
-check_PROGRAMS += \
+noinst_PROGRAMS += \
        test-journal \
        test-journal-send
 
@@ -2634,7 +2636,7 @@ test_login_LDADD = \
        libsystemd-login.la \
        libsystemd-shared.la
 
-check_PROGRAMS += \
+noinst_PROGRAMS += \
        test-login
 
 libsystemd_login_la_SOURCES = \
index e2bfae3..a09e1b5 100755 (executable)
@@ -22,7 +22,7 @@ use strict;
 
 my $PWD                 = $ENV{PWD};
 my $sysfs               = "src/udev/test/sys";
-my $udev_bin            = ".libs/test-udev";
+my $udev_bin            = "./test-udev";
 my $valgrind            = 0;
 my $udev_bin_valgrind   = "valgrind --tool=memcheck --leak-check=yes --quiet $udev_bin";
 my $udev_root           = "udev-root";