test-debian-packages.t
30 lines
| 1.0 KiB
| text/troff
|
Tads3Lexer
/ tests / test-debian-packages.t
Kyle Lippincott
|
r34402 | #require test-repo slow debhelper debdeps | ||
Augie Fackler
|
r26148 | |||
timeless
|
r29219 | $ . "$TESTDIR/helpers-testrepo.sh" | ||
Yuya Nishihara
|
r33199 | $ testrepohgenv | ||
timeless
|
r29219 | |||
Augie Fackler
|
r26148 | Ensure debuild doesn't run the testsuite, as that could get silly. | ||
$ DEB_BUILD_OPTIONS=nocheck | ||||
$ export DEB_BUILD_OPTIONS | ||||
Augie Fackler
|
r26147 | $ OUTPUTDIR=`pwd` | ||
$ export OUTPUTDIR | ||||
$ cd "$TESTDIR"/.. | ||||
$ make deb > $OUTPUTDIR/build.log 2>&1 | ||||
$ cd $OUTPUTDIR | ||||
Kyle Lippincott
|
r34401 | $ ls *.deb | grep -v 'dbg' | ||
Augie Fackler
|
r26148 | mercurial_*.deb (glob) | ||
Denis Laxalde
|
r43627 | should have .so and .py | ||
Mads Kiilerich
|
r51618 | $ dpkg --contents mercurial_*.deb | grep -E '(localrepo|parsers)' | ||
Denis Laxalde
|
r43615 | * ./usr/lib/python3/dist-packages/mercurial/cext/parsers*.so (glob) | ||
* ./usr/lib/python3/dist-packages/mercurial/localrepo.py (glob) | ||||
Denis Laxalde
|
r43627 | * ./usr/lib/python3/dist-packages/mercurial/pure/parsers.py (glob) | ||
should have zsh completions | ||||
Mads Kiilerich
|
r51618 | $ dpkg --contents mercurial_*.deb | grep -E 'zsh.*[^/]$' | ||
Kyle Lippincott
|
r34406 | * ./usr/share/zsh/vendor-completions/_hg (glob) | ||
Denis Laxalde
|
r43627 | should have chg | ||
Mads Kiilerich
|
r51618 | $ dpkg --contents mercurial_*.deb | grep -E 'chg$' | ||
Kyle Lippincott
|
r34407 | * ./usr/bin/chg (glob) | ||
chg should come with a man page | ||||
Mads Kiilerich
|
r51618 | $ dpkg --contents mercurial_*.deb | grep -E 'man.*chg' | ||
Kyle Lippincott
|
r34407 | * ./usr/share/man/man1/chg.1.gz (glob) | ||