From a540261b157faa69588f4155a22988d84d2695b6 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 16 Jun 2019 18:49:02 -0400 Subject: tests/exe/ob-gencontrol.sh: Test source package control contents --- (limited to 'tests') 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" + Build-Depends: build-all-runes + Installed-Size: 0 + Description: foo source package + EOF rm -Rf 'src/' *'.data/' cp -Rp '../../src/' 'src/' -- cgit v0.9.1