[pbuilder] 01/06: t: add a couple of simple tests for get822field()
Mattia Rizzolo
mattia at debian.org
Fri Oct 27 20:53:13 UTC 2017
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch master
in repository pbuilder.
commit bfe5637ecefbc06c9c9ca34b44c6b3d2165fd1a9
Author: Mattia Rizzolo <mattia at debian.org>
Date: Fri Oct 27 22:07:49 2017 +0200
t: add a couple of simple tests for get822field()
This made me realize I really need a function removing newlines and
leading/trailing whitespaces.
Eeek more sed will be incoming?
Gbp-Dch: Short
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
t/data/srccontrol1 | 56 +++++++++++++++++++++++++++++++++++++++++++++++++
t/test_pbuilder-modules | 6 ++++++
2 files changed, 62 insertions(+)
diff --git a/t/data/srccontrol1 b/t/data/srccontrol1
new file mode 100644
index 0000000..b5bc5c0
--- /dev/null
+++ b/t/data/srccontrol1
@@ -0,0 +1,56 @@
+Source: pbuilder
+Section: devel
+Priority: optional
+Maintainer: The foo team <foo at ml.org>
+Uploaders:
+ Bar <bar at debian.org>,
+ Foo Bar <foo.bar at debian.org>,
+Build-Depends:
+ dblatex,
+ debconf | debconf-2.0,
+ debhelper (>= 10),
+ docbook-xsl,
+ ldp-docbook-xsl,
+ po-debconf,
+ po4a,
+ xsltproc,
+Standards-Version: 4.1.1
+Vcs-Git: https://anonscm.debian.org/git/pbuilder/pbuilder.git
+Vcs-Browser: https://anonscm.debian.org/git/pbuilder/pbuilder.git
+
+Package: pbuilder
+Architecture: all
+Multi-Arch: foreign
+Depends:
+ debootstrap | cdebootstrap,
+ dpkg-dev (>= 1.17.0),
+ wget,
+ ${misc:Depends},
+Recommends:
+ devscripts,
+ eatmydata,
+ fakeroot,
+ net-tools | iproute2,
+ sudo,
+Suggests:
+ cowdancer,
+ gdebi-core,
+Homepage: http://pbuilder.alioth.debian.org
+Description: personal package builder for Debian packages
+ pbuilder constructs a chroot system, and builds a package inside the
+ chroot.
+ It is an ideal system to use to check
+ that a package has correct build-dependencies.
+ It uses apt extensively, and a local mirror, or a fast connection
+ to a Debian mirror is ideal, but not necessary.
+ .
+ "pbuilder create" uses debootstrap to create a chroot image.
+ .
+ "pbuilder update" updates the image to the current state of
+ testing/unstable/whatever
+ .
+ "pbuilder build" takes a *.dsc file and builds a binary in the chroot
+ image.
+ .
+ pdebuild is a wrapper for Debian Developers, to allow running
+ pbuilder just like "debuild", as a normal user.
diff --git a/t/test_pbuilder-modules b/t/test_pbuilder-modules
index 8f4eaf7..d137653 100755
--- a/t/test_pbuilder-modules
+++ b/t/test_pbuilder-modules
@@ -70,4 +70,10 @@ function test_conditional_cp_a_copy() {
}
expect_output "-a hoge /something-else" test_conditional_cp_a_copy
+
+expect_output "The foo team <foo at ml.org>" get822field Maintainer "$TESTDATA_DIR/srccontrol1"
+expect_output "
+ Bar <bar at debian.org>,
+ Foo Bar <foo.bar at debian.org>," get822field Uploaders "$TESTDATA_DIR/srccontrol1"
+
testlib_summary
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pbuilder/pbuilder.git
More information about the Pbuilder-maint
mailing list