Debian Codegraph @

tests/test-debian-packages.t

raw
1 #require test-repo slow debhelper debdeps
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 deb > $OUTPUTDIR/build.log 2>&1
14 $ cd $OUTPUTDIR
15 $ ls *.deb | grep -v 'dbg'
16 mercurial_*.deb (glob)
17 should have .so and .py
18 $ dpkg --contents mercurial_*.deb | grep -E '(localrepo|parsers)'
19 * ./usr/lib/python3/dist-packages/mercurial/cext/parsers*.so (glob)
20 * ./usr/lib/python3/dist-packages/mercurial/localrepo.py (glob)
21 * ./usr/lib/python3/dist-packages/mercurial/pure/parsers.py (glob)
22 should have zsh completions
23 $ dpkg --contents mercurial_*.deb | grep -E 'zsh.*[^/]$'
24 * ./usr/share/zsh/vendor-completions/_hg (glob)
25 should have chg
26 $ dpkg --contents mercurial_*.deb | grep -E 'chg$'
27 * ./usr/bin/chg (glob)
28 chg should come with a man page
29 $ dpkg --contents mercurial_*.deb | grep -E 'man.*chg'
30 * ./usr/share/man/man1/chg.1.gz (glob)