changeset 26146:8c91726caeae

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.
author Augie Fackler <augie@google.com>
date Mon, 31 Aug 2015 22:44:57 -0400
parents ca9bb66c80e9
children a02c22e48142
files tests/test-docker-packaging.t
diffstat 1 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-docker-packaging.t	Mon Aug 31 22:44:57 2015 -0400
@@ -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