[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#710882: tgt: Added autopkgtests



Package: tgt
Version: 1:1.0.17-1
Severity: wishlist
Tags: patch
User: yolanda.robla@canonical.com
Usertags: origin-ubuntu  ubuntu-patch

Added autopkgtests


*** /tmp/tmpDekwqb/bug_body

In Ubuntu, the attached patch was applied to achieve the following:

Improve QA of packages


  * d/tests: added dep-8-tests


Thanks for considering the patch.


-- System Information:
Debian Release: wheezy/sid
  APT prefers saucy-updates
  APT policy: (500, 'saucy-updates'), (500, 'saucy-security'), (500, 'saucy')
Architecture: amd64 (x86_64)

Kernel: Linux 3.8.0-14-generic (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
=== modified file 'debian/changelog'

=== modified file 'debian/control'
--- debian/control	2011-08-08 04:45:03 +0000
+++ debian/control	2013-06-03 08:34:28 +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-06-03 08:34:13 +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-06-03 08:34:13 +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-06-03 08:34:13 +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: