| 1 |
#require test-repo slow docker |
| 2 |
|
| 3 |
$ . "$TESTDIR/helpers-testrepo.sh" |
| 4 |
$ testrepohgenv |
| 5 |
|
| 6 |
Ensure debuild doesn't run the testsuite, as that could get silly. |
| 7 |
$ DEB_BUILD_OPTIONS=nocheck |
| 8 |
$ export DEB_BUILD_OPTIONS |
| 9 |
$ OUTPUTDIR=`pwd` |
| 10 |
$ export OUTPUTDIR |
| 11 |
|
| 12 |
$ cd "$TESTDIR"/.. |
| 13 |
$ make docker-debian-buster > $OUTPUTDIR/build.log 2>&1 |
| 14 |
$ cd $OUTPUTDIR |
| 15 |
$ ls *.deb |
| 16 |
mercurial-common_*.deb (glob) |
| 17 |
mercurial_*.deb (glob) |
| 18 |
|
| 19 |
We check debian package contents with portable tools so that when |
| 20 |
we're on non-debian machines we can still test the packages that are |
| 21 |
built using docker. |
| 22 |
|
| 23 |
main deb should have .so but no .py |
| 24 |
$ ar x mercurial_*.deb |
| 25 |
$ tar tf data.tar* | grep -E '(localrepo|parsers)' |
| 26 |
./usr/lib/python2.7/dist-packages/mercurial/parsers*.so (glob) |
| 27 |
mercurial-common should have .py but no .so or .pyc |
| 28 |
$ ar x mercurial-common_*.deb |
| 29 |
$ tar tf data.tar* | grep -E '(localrepo|parsers)' |
| 30 |
./usr/lib/python2.7/dist-packages/mercurial/pure/parsers.py |
| 31 |
./usr/lib/python2.7/dist-packages/mercurial/localrepo.py |