Patchwork [3,of,4,debhelper] test-docker-packaging: test packages built using docker

login
register
mail settings
Submitter Augie Fackler
Date Sept. 1, 2015, 4:11 a.m.
Message ID <4797bed07ade3ec084be.1441080671@imladris.local>
Download mbox | patch
Permalink /patch/10337/
State Accepted
Headers show

Comments

Augie Fackler - Sept. 1, 2015, 4:11 a.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1441075497 14400
#      Mon Aug 31 22:44:57 2015 -0400
# Node ID 4797bed07ade3ec084bef3c285c53169ce2ac669
# Parent  71ae95bb8e4c772d9aa130b3a61591fe07891358
test-docker-packaging: test packages built using docker

For now this only tests debian packages, but it could easily be
extended to also test rpms.

Patch

diff --git a/tests/test-docker-packaging.t b/tests/test-docker-packaging.t
new file mode 100644
--- /dev/null
+++ b/tests/test-docker-packaging.t
@@ -0,0 +1,19 @@ 
+#require test-repo slow docker
+
+  $ OUTPUTDIR=`pwd`
+  $ export OUTPUTDIR
+
+  $ cd "$TESTDIR"/..
+  $ make docker-debian-jessie > $OUTPUTDIR/build.log 2>&1
+  $ cd $OUTPUTDIR
+  $ ls *.deb
+  mercurial-*.deb (glob)
+
+We check debian package contents with portable tools so that when
+we're on non-debian machines we can still test the packages that are
+built using docker.
+  $ ar x mercurial*.deb
+  $ tar tf data.tar* | grep localrepo | sort
+  ./usr/lib/python2.7/site-packages/mercurial/localrepo.py
+  ./usr/lib/python2.7/site-packages/mercurial/localrepo.pyc
+  $ rm -f *.deb build.log