##// END OF EJS Templates
tests: replace `hg id --debug -i` command substitution with non-debug command...
tests: replace `hg id --debug -i` command substitution with non-debug command The censor and convert tests were failing on Windows because the `--debug` flag also prints debug messages, and at least some of these were outputting: skip updating dirstate: identity mismatch ${node} Obviously that causes cascading problems. The other tests were OK, but it's better to use a non debug command for stability.

File last commit:

r51618:7e5be4a7 stable
r52837:2eeca9a8 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)