Mercurial > hg
comparison tests/test-docker-packaging.t @ 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 | |
children | 7f49efcaa9b4 |
comparison
equal
deleted
inserted
replaced
26145:ca9bb66c80e9 | 26146:8c91726caeae |
---|---|
1 #require test-repo slow docker | |
2 | |
3 $ OUTPUTDIR=`pwd` | |
4 $ export OUTPUTDIR | |
5 | |
6 $ cd "$TESTDIR"/.. | |
7 $ make docker-debian-jessie > $OUTPUTDIR/build.log 2>&1 | |
8 $ cd $OUTPUTDIR | |
9 $ ls *.deb | |
10 mercurial-*.deb (glob) | |
11 | |
12 We check debian package contents with portable tools so that when | |
13 we're on non-debian machines we can still test the packages that are | |
14 built using docker. | |
15 $ ar x mercurial*.deb | |
16 $ tar tf data.tar* | grep localrepo | sort | |
17 ./usr/lib/python2.7/site-packages/mercurial/localrepo.py | |
18 ./usr/lib/python2.7/site-packages/mercurial/localrepo.pyc | |
19 $ rm -f *.deb build.log |