Merging test scripts and output demo

Greg Ward greg-hg at gerg.ca
Fri Jun 11 16:56:20 CDT 2010


On Fri, Jun 11, 2010 at 5:30 PM, Matt Mackall <mpm at selenic.com> wrote:
> I started with this test script I had lying around:
[...]
> It shouldn't be too hard to teach run-tests to decorate/undecorate tests
> using my "salt trick" and to convert the existing tests to this format.
> Volunteers?

OK, that's neat, but:

1) how does this improve the testing-on-Windows situation?
2) what about test scripts that do more than just run hg commands?
It's often important to inspect the filesystem and make sure that hg
really did the right thing.  That leads to endless trickery with ls,
cat, and sed, where we all learn (again and again) just how portable
shell scripts are across Linux, BSD, and Solaris.  (I.e. "not very".)

(Which reminds me: another problem with the existing test suite is
that someone has to run it on Solaris periodically and clean up the
bash-isms that inevitable creep in.)

Greg


More information about the Mercurial-devel mailing list