[PATCH] test-tests: Add test to guarantee portability of other unit tests

Matt Mackall mpm at selenic.com
Mon Jan 25 22:08:18 UTC 2010


On Mon, 2010-01-25 at 23:34 +0200, Marti Raudsepp wrote:
> Here's a test case to check other test scripts for bashisms and other
> portability problems. This can save us from making the same mistakes
> over and over again, without needing to involve humans.
> 
> Some tests that might be useful would trigger false positives. I also
> considered making a test for this:
> http://www.selenic.com/pipermail/mercurial-devel/2009-October/016162.html
> But "grep ' ((.*))' test-*" also flags Python code in
> test-convert-hg-source

Please see contrib/check-code.py that appeared last night.

-- 
http://selenic.com : development and support for Mercurial and Linux





More information about the Mercurial-devel mailing list