bfile tests

Greg Ward greg-hg at gerg.ca
Mon Nov 2 08:18:45 CST 2009


On Sat, Oct 31, 2009 at 6:45 AM, David Douard <david.douard at logilab.fr> wrote:
> the repository of your bfile extension does hold symlinks to files not
> distributed with the repo, thus making unit tests impossible to run out of a
> fresh clone. May you please fix that?

Hmmm, good point.  For those of you not hacking on bfiles, what I've
done is try to use as much of Mercurial's testing infrastructure as I
can without repeating anything.  E.g. the tests are

  tests/test-add
  tests/test-create
  ...

and they are run by

   tests/run-tests.py

which is a symlink to "../../hg-crew/tests/run-tests.py".  That works
fine for me, since I have a clone of hg-crew next to my clone of
hg-bfiles wherever I work on hg-bfiles.

What do other extension developers do to leverage Mercurial's test
infrastructure?  I suppose I could commit a copy of run-tests.py.
Better idea?

Greg


More information about the Mercurial mailing list