[PATCH 2 of 4 debhelper] test-debian-packages: new test for testing construction of debian packages
Augie Fackler
raf at durin42.com
Tue Sep 1 04:11:10 UTC 2015
# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1440475709 14400
# Tue Aug 25 00:08:29 2015 -0400
# Node ID 71ae95bb8e4c772d9aa130b3a61591fe07891358
# Parent ce4b4c2f37b7c845d7ec3e7c8e8ca0898ad8104e
test-debian-packages: new test for testing construction of debian packages
This test takes over a minute to run to completion on my workstation,
and far longer if the docker images have to be built for the first
time on a given host. As such, the entire test is tagged as slow.
The test does *not* require dpkg - it merely requires one of docker or
dpkg be available to usefully test. On a (say) fedora machine with
docker installed, it'l still test creating debian packages using
docker.
diff --git a/tests/test-debian-packages.t b/tests/test-debian-packages.t
new file mode 100644
--- /dev/null
+++ b/tests/test-debian-packages.t
@@ -0,0 +1,13 @@
+#require test-repo slow debhelper
+ $ OUTPUTDIR=`pwd`
+ $ export OUTPUTDIR
+
+ $ cd "$TESTDIR"/..
+ $ make deb > $OUTPUTDIR/build.log 2>&1
+ $ cd $OUTPUTDIR
+ $ ls *.deb
+ mercurial-*.deb (glob)
+ $ dpkg --contents mercurial*.deb | grep localrepo
+ * ./usr/lib/python2.7/site-packages/mercurial/localrepo.py (glob)
+ * ./usr/lib/python2.7/site-packages/mercurial/localrepo.pyc (glob)
+ $ rm -f *.deb build.log
More information about the Mercurial-devel
mailing list