sapling/tests/test-help.t
David M. Carr 8d69bf5e9a tests: extract extension configuration into a testutil library
Thanks to Felipe Contreras for the patch which this was based on.

Even though the MQ extension was only used in a single test
(test-pull-after-strip.t), I included it in the testutil.  It shouldn't hurt
anything to have it enabled and not used, and saves us from having to deal
with enabling extensions in individual tests at all.

Similarly, this changeset results in the graphlog extension being enabled
for all tests, even though there were some that didn't use it before.  This is
even less significant in Mercurial 2.3+, since in those versions, graphlog is
part of core, and is available even when the extension is disabled.
2012-10-30 20:03:26 -04:00

13 lines
460 B
Perl
Executable File

Tests that the various help files are properly registered
Load commonly used test logic
$ . "$TESTDIR/testutil"
$ hg help | grep 'git' | sed 's/ */ /g'
hggit push and pull from a Git server
git Working with Git Repositories
$ hg help hggit | grep 'help git' | sed 's/:hg:`help git`/"hg help git"/g'
For more information and instructions, see "hg help git"
$ hg help git | grep 'Working with Git Repositories'
Working with Git Repositories