Ubuntu

Merge lp:~yolanda.robla/ubuntu/saucy/tgt/dep-8-tests into lp:ubuntu/saucy/tgt

Proposed by Yolanda Robla on 2013-05-28
Status: Merged
Merge reported by: James Page
Merged at revision: not available
Proposed branch: lp:~yolanda.robla/ubuntu/saucy/tgt/dep-8-tests
Merge into: lp:ubuntu/saucy/tgt
Diff against target: 70 lines (+36/-0) 5 files modified
To merge this branch: bzr merge lp:~yolanda.robla/ubuntu/saucy/tgt/dep-8-tests
Reviewer Review Type Date Requested Status
Barry Warsaw Approve on 2013-05-28
Ubuntu branches 2013-05-28 Pending
Review via email: mp+166078@code.launchpad.net

Description of the Change

Added autopkgtests

To post a comment you must log in.
Barry Warsaw (barry) wrote :

Thanks!

review: Approve

Preview Diff

1=== modified file 'debian/changelog'
2--- debian/changelog 2012-10-08 23:02:42 +0000
3+++ debian/changelog 2013-05-28 15:25:34 +0000
4@@ -1,3 +1,9 @@
5+tgt (1:1.0.17-1ubuntu4) saucy; urgency=low
6+
7+ * d/tests: added dep-8-tests
8+
9+ -- Yolanda <yolanda.robla@canonical.com> Tue, 21 May 2013 10:41:18 +0200
10+
11 tgt (1:1.0.17-1ubuntu3) quantal; urgency=low
12
13 * Rebuild for new armel compiler default of ARMv5t.
14
15=== modified file 'debian/control'
16--- debian/control 2011-08-08 04:45:03 +0000
17+++ debian/control 2013-05-28 15:25:34 +0000
18@@ -7,6 +7,7 @@
19 Build-Depends: debhelper (>= 7), libibverbs-dev, librdmacm-dev
20 Standards-Version: 3.9.2
21 Homepage: http://stgt.berlios.de/
22+XS-Testsuite: autopkgtest
23
24 Package: tgt
25 Architecture: any
26
27=== added directory 'debian/tests'
28=== added file 'debian/tests/admin'
29--- debian/tests/admin 1970-01-01 00:00:00 +0000
30+++ debian/tests/admin 2013-05-28 15:25:34 +0000
31@@ -0,0 +1,13 @@
32+#!/bin/bash
33+#---------------
34+# Testing tgtadm
35+#---------------
36+set -e
37+ADMIN=tgtadm
38+$ADMIN --help > /dev/null 2>&1
39+RET=$?
40+
41+if [[ $RET != 0 ]]; then
42+ echo "ERROR, ${ADMIN} is not running"
43+ exit $RET
44+fi
45
46=== added file 'debian/tests/control'
47--- debian/tests/control 1970-01-01 00:00:00 +0000
48+++ debian/tests/control 2013-05-28 15:25:34 +0000
49@@ -0,0 +1,3 @@
50+Tests: daemon admin
51+Depends: @
52+Restrictions: needs-root
53
54=== added file 'debian/tests/daemon'
55--- debian/tests/daemon 1970-01-01 00:00:00 +0000
56+++ debian/tests/daemon 2013-05-28 15:25:34 +0000
57@@ -0,0 +1,13 @@
58+#!/bin/bash
59+#------------
60+# Testing tgt
61+#------------
62+set -e
63+DAEMON=tgtd
64+
65+if pidof -x $DAEMON > /dev/null; then
66+ echo "OK"
67+else
68+ echo "ERROR: ${DAEMON} IS NOT RUNNING"
69+ exit 1
70+fi

Subscribers

People subscribed via source and target branches

to all changes: