Bug#710173: tgt: DEP 8 auto package tests
Package: tgt
Severity: normal
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Dear Maintainer,
DEP 8 tests for tgt were submitted to Ubuntu:
http://tinyurl.com/ov5phrv
Forwarding to Debian here.
- -- System Information:
Debian Release: wheezy/sid
APT prefers saucy-updates
APT policy: (500, 'saucy-updates'), (500, 'saucy-security'), (500, 'saucy'), (100, 'saucy-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.9.0-2-generic (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQIcBAEBCAAGBQJRpQE4AAoJEBJutWOnSwa/1BEQAJ13ZjwylpNBhYIk7aTPEkFb
WktuDfT6bDWgKCTroPRJR/827dEocU6bmM9TIK8/s9elnJ3JtQeRvfKmQpf6Fh8N
L6NyHgz/VBVk3kv1d24ST8wxJ5pkRbXVCBga5FS7yVHI9norw3hc6R0jk0XNdd1t
qeM5IgFiOe4F76X+QUFo0WiUVAwOfD0VfxpwgIzcEwCcgk4l16KhQUrBJ+twRHt9
fYE+0JVcqnoDf2MUzEVGJ7pBNI2bUzb087sG3dFbNxJwzY3RKqshuYV1QkxdNbLN
TN8Nco7jdCdGr3PlPZxSgJVecRrOFII/KnVY4FgHNfiZMhQvFHCEY84pYVqZSUbr
Dmj4G88P4YhHhbgqs8svjhiJLzget0/DsS7Gs0lGZl/uZTNuWUKgwI1LkkWv18RI
WKpRq/prN01Ae+FMrnGKg07jefKq4VMzwI3kna14tjjnB0JqlJSb0/+SzpxUP/y3
jFeU3m9fdjuwOpQhQZXnuMCJySK/AbqhyvCphDxjXn5yjl1aW45879XanJIKJ1SJ
CJS4kx8EcOVQtclRsoNRpFBtDkqXU0mIekJsJ1KucdkFfH8AWfBTffmhcz9p+KQo
WnVagkBc9+YFyzaqUBqb6PKVKVpHglvzLMVDiE7asYjyu8ZZk4839Aiqc7c1tsFd
+RUfhFe4j/g1wvpbsik0
=9VVm
-----END PGP SIGNATURE-----
=== modified file 'debian/changelog'
--- debian/changelog 2012-10-08 23:02:42 +0000
+++ debian/changelog 2013-05-21 09:09:40 +0000
@@ -1,3 +1,9 @@
+tgt (1:1.0.17-1ubuntu4) saucy; urgency=low
+
+ * d/tests: added dep-8-tests
+
+ -- Yolanda <yolanda.robla@canonical.com> Tue, 21 May 2013 10:41:18 +0200
+
tgt (1:1.0.17-1ubuntu3) quantal; urgency=low
* Rebuild for new armel compiler default of ARMv5t.
=== modified file 'debian/control'
--- debian/control 2011-08-08 04:45:03 +0000
+++ debian/control 2013-05-21 09:09:40 +0000
@@ -7,6 +7,7 @@
Build-Depends: debhelper (>= 7), libibverbs-dev, librdmacm-dev
Standards-Version: 3.9.2
Homepage: http://stgt.berlios.de/
+XS-Testsuite: autopkgtest
Package: tgt
Architecture: any
=== added directory 'debian/tests'
=== added file 'debian/tests/admin'
--- debian/tests/admin 1970-01-01 00:00:00 +0000
+++ debian/tests/admin 2013-05-21 16:18:03 +0000
@@ -0,0 +1,13 @@
+#!/bin/bash
+#---------------
+# Testing tgtadm
+#---------------
+set -e
+ADMIN=tgtadm
+$ADMIN --help > /dev/null 2>&1
+RET=$?
+
+if [[ $RET != 0 ]]; then
+ echo "ERROR, ${ADMIN} is not running"
+ exit $RET
+fi
=== added file 'debian/tests/control'
--- debian/tests/control 1970-01-01 00:00:00 +0000
+++ debian/tests/control 2013-05-21 09:09:40 +0000
@@ -0,0 +1,3 @@
+Tests: daemon admin
+Depends: @
+Restrictions: needs-root
=== added file 'debian/tests/daemon'
--- debian/tests/daemon 1970-01-01 00:00:00 +0000
+++ debian/tests/daemon 2013-05-21 09:09:40 +0000
@@ -0,0 +1,13 @@
+#!/bin/bash
+#------------
+# Testing tgt
+#------------
+set -e
+DAEMON=tgtd
+
+if pidof -x $DAEMON > /dev/null; then
+ echo "OK"
+else
+ echo "ERROR: ${DAEMON} IS NOT RUNNING"
+ exit 1
+fi
Reply to: