[Debian-ha-commits] [sbd] 01/02: Add debian test for upstream regression tests.

Adrian Vondendriesch discostu-guest at moszumanska.debian.org
Tue Jan 17 16:06:22 UTC 2017


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

discostu-guest pushed a commit to branch master
in repository sbd.

commit 96a640c6e96f70266f285c81dbc84468b30ec275
Author: Adrian Vondendriesch <adrian.vondendriesch at credativ.de>
Date:   Tue Jan 17 17:01:49 2017 +0100

    Add debian test for upstream regression tests.
---
 debian/changelog                          |  1 +
 debian/patches/regression_test-exit.patch | 22 ++++++++++++++++++++++
 debian/patches/series                     |  1 +
 debian/tests/control                      |  3 +++
 debian/tests/regression                   |  3 +++
 5 files changed, 30 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 3616e81..2e35285 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ sbd (1.2.0-109-gc511b06-3) UNRELEASED; urgency=medium
 
   * debian/patches/ld-as-needed.patch: Use LDADD instead of LDFLAGS to fix
     FTBFS with ld --as-needed (Closes: 842886).
+  * debian/tests: run regression testsuite
 
  -- Adrian Vondendriesch <adrian.vondendriesch at credativ.de>  Mon, 16 Jan 2017 18:10:17 +0100
 
diff --git a/debian/patches/regression_test-exit.patch b/debian/patches/regression_test-exit.patch
new file mode 100644
index 0000000..d3cfc39
--- /dev/null
+++ b/debian/patches/regression_test-exit.patch
@@ -0,0 +1,22 @@
+diff --git a/tests/regressions.sh b/tests/regressions.sh
+index 9db1c15..3870002 100755
+--- a/tests/regressions.sh
++++ b/tests/regressions.sh
+@@ -63,7 +63,7 @@ _ok() {
+ 	rc=$?
+ 	if [ $rc -ne 0 ]; then
+ 		echo "$@ failed with $rc"
+-		exit
++		exit 1
+ 	fi
+ }
+ 
+@@ -73,7 +73,7 @@ _no() {
+ 	rc=$?
+ 	if [ $rc -eq 0 ]; then
+ 		echo "$@ did NOT fail ($rc)"
+-		exit
++		exit 1
+ 	fi
+ 	return 0
+ }
diff --git a/debian/patches/series b/debian/patches/series
index 028178a..59a8133 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ sbd.service.in-kill-path
 sbd-service_sysconfig-vs-default.patch
 cl_log-format-security.patch
 ld-as-needed.patch
+regression_test-exit.patch
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..2e96000
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Depends: @
+Restrictions: needs-root, allow-stderr
+Tests: regression
diff --git a/debian/tests/regression b/debian/tests/regression
new file mode 100755
index 0000000..b82b449
--- /dev/null
+++ b/debian/tests/regression
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+tests/regressions.sh

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



More information about the Debian-HA-Commits mailing list