test-debian-packages: new test for testing construction of debian packages
authorAugie Fackler <augie@google.com>
Tue, 25 Aug 2015 00:08:29 -0400
changeset 26147 a02c22e48142
parent 26146 8c91726caeae
child 26148 7f49efcaa9b4
test-debian-packages: new test for testing construction of debian packages
tests/test-debian-packages.t
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-debian-packages.t	Tue Aug 25 00:08:29 2015 -0400
@@ -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