mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
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.
This commit is contained in:
parent
48d9b40177
commit
bde2ffd969
19
tests/test-docker-packaging.t
Normal file
19
tests/test-docker-packaging.t
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user