]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
build-sys: fix --disable-tests 2152/head
authorEvgeny Vereshchagin <evvers@ya.ru>
Sun, 13 Dec 2015 06:51:33 +0000 (06:51 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Sun, 13 Dec 2015 07:50:11 +0000 (07:50 +0000)
Fixes:
$ ./configure ... --disable-tests
$ make
$ sudo make check
FAIL: test/udev-test.pl
PASS: test/rule-syntax-check.py
PASS: test/sysv-generator-test.py
...

Makefile.am

index f552f7a60bce51852cb99c49a0fe5088d23c3677..00a92e34e03a843e608eec5d1590b9934a624e96 100644 (file)
@@ -3744,6 +3744,7 @@ EXTRA_DIST += \
        hwdb/sdio.ids
 
 # ------------------------------------------------------------------------------
+if ENABLE_TESTS
 TESTS += \
        test/udev-test.pl
 
@@ -3756,6 +3757,7 @@ TESTS += \
        test/sysv-generator-test.py
 endif
 endif
+endif
 
 manual_tests += \
        test-libudev \
@@ -3775,8 +3777,10 @@ test_udev_LDADD = \
        $(BLKID_LIBS) \
        $(KMOD_LIBS)
 
+if ENABLE_TESTS
 check_DATA += \
        test/sys
+endif
 
 # packed sysfs test tree
 test/sys: