|
From: | CooSoft Support |
Subject: | Re: [Monotone-devel] Contributed scripts and how to handle them... |
Date: | Sat, 05 Feb 2011 11:58:23 +0000 |
User-agent: | Mozilla-Thunderbird 2.0.0.24 (X11/20100328) |
Yup happy to do that, only fair after all :-)...However I am currently knee deep in trying to get mtn-browse to efficiently graph revision histories. So mtn-cleanup may have to temporarily move to the `dodgier contrib' area for now until I get the test script sorted.
When I come to write the lua test script I imagine I would test it by creating two pristine workspaces, go into one and change loads of stuff without committing and then run mtn-cleanup on it and then do a diff -r on both workspaces hoping to find no differences.
Having had a VERY quick look at some other test scripts a few things spring to mind:
1) I take it what I need to get up to speed on tests can be found under the notes directory? 2) Cross-platform issues, e.g. could I even run diff -r on say a Windows platform? Would it be enough to only test on say Linux/Unix/OSX?
BTW awesome cleanup job :-). Didn't recognise it at first - :-). MTIA, Tony. Richard Levitte wrote:
In message <address@hidden> on Sat, 05 Feb 2011 10:05:47 +0000, CooSoft Support <address@hidden> said: support> I nominate mtn-cleanup, not just because I wrote it :-) but support> it is also quite useful especially when used on large source support> trees (> 900MiB) or over NFS. Works with current monotones as support> well as old ones. Would you be willing to provide a test script? Since writing my previous email, I started tinkering, and ended up following the same form as test/func{-testsuite.lua}, so it should be fairly easy to produce new tests. They should end up in test/extra, see recent commits (test/extra-testsuite.lua and test/extra). support> Also put in a vote for the bash completion scripts (although support> I think they are safe). That was my first target ;-), and there's a test directory for it (test/extra/bash_completion) and it's been move to extra/ (to distinguish from contrib/, which currently holds all untested stuff). Cheers, Richard
[Prev in Thread] | Current Thread | [Next in Thread] |