chiark / gitweb /
test: add integration test for systemd-sysv-generator
[elogind.git] / Makefile.am
index b368e107e90145b29165e49db8268e71999adb1d..406910a3c2ff3561c5eb495b5d7029f7fc25e48c 100644 (file)
@@ -3773,6 +3773,7 @@ TESTS += \
 if HAVE_PYTHON
 TESTS += \
        test/rule-syntax-check.py \
+       test/sysv-generator-test.py \
        $(NULL)
 endif
 
@@ -3818,7 +3819,10 @@ DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
 EXTRA_DIST += \
        test/sys.tar.xz \
        test/udev-test.pl \
-       test/rule-syntax-check.py
+       test/rule-syntax-check.py \
+       test/sysv-generator-test.py \
+       $(NULL)
+
 
 # ------------------------------------------------------------------------------
 ata_id_SOURCES = \
@@ -5275,7 +5279,9 @@ systemd_import_CFLAGS = \
        $(LIBCURL_CFLAGS) \
        $(XZ_CFLAGS) \
        $(ZLIB_CFLAGS) \
-       $(GCRYPT_CFLAGS)
+       $(GCRYPT_CFLAGS) \
+       -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \
+       -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\"
 
 systemd_import_LDADD = \
        libsystemd-internal.la \
@@ -5303,6 +5309,9 @@ test_qcow2_LDADD = \
        libsystemd-label.la \
        libsystemd-shared.la \
        $(ZLIB_LIBS)
+
+dist_rootlibexec_DATA = \
+       src/import/import-pubring.gpg
 endif
 endif
 endif
@@ -6668,3 +6677,9 @@ git-contrib:
 
 EXTRA_DIST += \
         tools/gdb-sd_dump_hashmaps.py
+
+list-keys:
+       gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --list-keys
+
+add-key:
+       gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --import -