[Debian-ha-commits] [csync2] 03/05: Update debian/tests to check inetd and systemd

Valentin Vidic vvidic-guest at moszumanska.debian.org
Fri Oct 21 13:07:26 UTC 2016


This is an automated email from the git hooks/post-receive script.

vvidic-guest pushed a commit to branch master
in repository csync2.

commit f7f9adb58b47b5d32e7347bc742b47c98d44659c
Author: Valentin Vidic <Valentin.Vidic at CARNet.hr>
Date:   Fri Oct 21 13:37:58 2016 +0200

    Update debian/tests to check inetd and systemd
---
 debian/tests/control                  | 8 ++++++--
 debian/tests/{self-update => inetd}   | 0
 debian/tests/{self-update => systemd} | 3 +++
 3 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/debian/tests/control b/debian/tests/control
index d352a88..7fb67f7 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,3 +1,7 @@
-Depends: @, openssl, sqlite3
-Tests: self-update
+Depends: @, openssl
+Tests: inetd
+Restrictions: needs-root, needs-recommends
+
+Depends: @, openssl, sqlite3, systemd-sysv
+Tests: systemd
 Restrictions: needs-root
diff --git a/debian/tests/self-update b/debian/tests/inetd
similarity index 100%
copy from debian/tests/self-update
copy to debian/tests/inetd
diff --git a/debian/tests/self-update b/debian/tests/systemd
similarity index 90%
rename from debian/tests/self-update
rename to debian/tests/systemd
index b19bc4a..63fb507 100755
--- a/debian/tests/self-update
+++ b/debian/tests/systemd
@@ -24,5 +24,8 @@ openssl req -x509 -newkey rsa:2048 \
   -keyout /etc/csync2_ssl_key.pem \
   -out    /etc/csync2_ssl_cert.pem 2>&1
 
+# start daemon socket
+systemctl start csync2.socket
+
 # sync with inetd daemon on this host
 csync2 -x -N 127.0.0.2 -P 127.0.0.1 -v 2>&1

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/csync2.git



More information about the Debian-HA-Commits mailing list