Pull requests

#5 Merged
Repository
jfita_blitz
Branch
default
Repository
gward
Branch
default

Added tests for fossil support.

Author
  1. Jordi Fita
Reviewers
Description

I’ve added the test scripts to test fossil support in vcprompt.

There are two new setup-fossil and test-fossil files which are basically and adaptation of the same scripts from mercurial—they do more or less the same, except that test-fossil also checks the modified and unknown modifiers; they are disabled in mercurial’s script.

There is also a test in ‘test-simple’ to make sure that the _FOSSIL_ and .fskckout files are recognized properly, but it does not modify these files to emulate a real repositories, like the rest of test in that file do, because fossil stores the data in a binary sqlite file. It might be possible to do this using sqlite’s command-line shell, but I think it would be cumbersome and I do not like to have that kind of dependencies for tests.

  • Learn about pull requests

Comments (1)

  1. Greg Ward repo owner

    Looks good. I completely agree with you on leaving _FOSSIL_ and .fskckout empty; anything more than that belongs in the "real" test, and thus should use the fossil client rather than sqlite. Thanks!