##// END OF EJS Templates
revlog: subclass the new `repository.iverifyproblem` Protocol class...
revlog: subclass the new `repository.iverifyproblem` Protocol class This is the same transformation as 3a90a6fd710d did for dirstate, but the CamelCase naming was already cleaned up here. We shouldn't have to explicitly subclass, but I'm doing so to test the interplay of regular attributes and the `attrs` class. Also, PyCharm has a nifty feature that puts a jump point in the gutter to navigate back and forth between the base class and subclasses (and override functions and base class functions) when there's an explicit subclassing. Additionally, PyCharm will immediately flag signature mismatches without a 40m pytype run.

File last commit:

r51618:7e5be4a7 stable
r53365:4ef6dbc2 default
Show More
test-debian-packages.t
30 lines | 1.0 KiB | text/troff | Tads3Lexer
/ tests / test-debian-packages.t
Kyle Lippincott
tests: add "have" check for dpkg builddeps...
r34402 #require test-repo slow debhelper debdeps
Augie Fackler
debian: switch to using debhelper and dh_python2 to build debs...
r26148
timeless
tests: silence test-repo obsolete warning...
r29219 $ . "$TESTDIR/helpers-testrepo.sh"
Yuya Nishihara
tests: alias syshg and syshgenv so they can be switched conditionally
r33199 $ testrepohgenv
timeless
tests: silence test-repo obsolete warning...
r29219
Augie Fackler
debian: switch to using debhelper and dh_python2 to build debs...
r26148 Ensure debuild doesn't run the testsuite, as that could get silly.
$ DEB_BUILD_OPTIONS=nocheck
$ export DEB_BUILD_OPTIONS
Augie Fackler
test-debian-packages: new test for testing construction of debian packages
r26147 $ OUTPUTDIR=`pwd`
$ export OUTPUTDIR
$ cd "$TESTDIR"/..
$ make deb > $OUTPUTDIR/build.log 2>&1
$ cd $OUTPUTDIR
Kyle Lippincott
tests: expect parsers.so in cext, parsers.py in pure (test-debian-packages)...
r34401 $ ls *.deb | grep -v 'dbg'
Augie Fackler
debian: switch to using debhelper and dh_python2 to build debs...
r26148 mercurial_*.deb (glob)
Denis Laxalde
packaging: ship only a single binary Debian package...
r43627 should have .so and .py
Mads Kiilerich
tests: use grep -E instead of obsolescent egrep...
r51618 $ dpkg --contents mercurial_*.deb | grep -E '(localrepo|parsers)'
Denis Laxalde
packaging: upgrade Debian packaging to build with Python 3...
r43615 * ./usr/lib/python3/dist-packages/mercurial/cext/parsers*.so (glob)
* ./usr/lib/python3/dist-packages/mercurial/localrepo.py (glob)
Denis Laxalde
packaging: ship only a single binary Debian package...
r43627 * ./usr/lib/python3/dist-packages/mercurial/pure/parsers.py (glob)
should have zsh completions
Mads Kiilerich
tests: use grep -E instead of obsolescent egrep...
r51618 $ dpkg --contents mercurial_*.deb | grep -E 'zsh.*[^/]$'
Kyle Lippincott
deb: install zsh completions to /usr/share/zsh/vendor-completions...
r34406 * ./usr/share/zsh/vendor-completions/_hg (glob)
Denis Laxalde
packaging: ship only a single binary Debian package...
r43627 should have chg
Mads Kiilerich
tests: use grep -E instead of obsolescent egrep...
r51618 $ dpkg --contents mercurial_*.deb | grep -E 'chg$'
Kyle Lippincott
deb: build and install chg...
r34407 * ./usr/bin/chg (glob)
chg should come with a man page
Mads Kiilerich
tests: use grep -E instead of obsolescent egrep...
r51618 $ dpkg --contents mercurial_*.deb | grep -E 'man.*chg'
Kyle Lippincott
deb: build and install chg...
r34407 * ./usr/share/man/man1/chg.1.gz (glob)