summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/exe/ob-gencontrol.sh16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/exe/ob-gencontrol.sh b/tests/exe/ob-gencontrol.sh
index f64d512..a6407c1 100755
--- a/tests/exe/ob-gencontrol.sh
+++ b/tests/exe/ob-gencontrol.sh
@@ -22,7 +22,21 @@ set -eu
. "${TOP_SRCDIR}/tests/aux/tap-functions.sh"
. "${TOP_SRCDIR}/tests/aux/common.sh"
-plan_ 10
+plan_ 12
+
+OB_DO_SOURCE='true' command_ok_ 'ob-gencontrol source package exit status' -- \
+ ob-gencontrol
+cmd_is 'source package control file' cat 'src-foo.control/control' <<-EOF
+ Package: foo
+ Binary: bar baz-qux foo
+ Version: 1.0-1
+ Architecture: src
+ Platform: all
+ Maintainer: "J. Random Hacker" <jrandom@example.com>
+ Build-Depends: build-all-runes
+ Installed-Size: 0
+ Description: foo source package
+ EOF
rm -Rf 'src/' *'.data/'
cp -Rp '../../src/' 'src/'