Package: bonnie++
Version: 1.97.1
Severity: wishlist
Tags: patch

Please include this simple smoke test, in the current dep8 draft[*]
format, for use with autopkgtest.

[*] http://dep.debian.net/deps/dep8/

diff -urpN bonnie++-1.97.1.orig/debian/control bonnie++-1.97.1/debian/control
--- bonnie++-1.97.1.orig/debian/control 2012-11-23 00:52:15.000000000 -0700
+++ bonnie++-1.97.1/debian/control      2013-08-13 17:53:53.832310754 -0600
@@ -4,6 +4,7 @@ Priority: optional
 Maintainer: Russell Coker <russ...@coker.com.au>
 Standards-Version: 3.5.6
 Build-Depends: debhelper
+XS-Testsuite: autopkgtest
 
 Package: bonnie++
 Architecture: any
diff -urpN bonnie++-1.97.1.orig/debian/tests/control 
bonnie++-1.97.1/debian/tests/control
--- bonnie++-1.97.1.orig/debian/tests/control   1969-12-31 17:00:00.000000000 
-0700
+++ bonnie++-1.97.1/debian/tests/control        2013-08-13 10:40:04.749597773 
-0600
@@ -0,0 +1 @@
+Tests: smoke
diff -urpN bonnie++-1.97.1.orig/debian/tests/smoke 
bonnie++-1.97.1/debian/tests/smoke
--- bonnie++-1.97.1.orig/debian/tests/smoke     1969-12-31 17:00:00.000000000 
-0700
+++ bonnie++-1.97.1/debian/tests/smoke  2013-08-13 17:51:51.898916735 -0600
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+tmpdir="$(mktemp -d)"
+trap "rm -rf $tmpdir" 0 INT QUIT ABRT PIPE TERM
+
+# A minimalist bonnie++ run
+/usr/sbin/bonnie++ -q -u $(id -u) -d "$tmpdir" -s 0 -n 1 > /dev/null; then
+exit $?


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to