[RFC] testable tutorial / doctests for ui

Robert Collins robertc at robertcollins.net
Mon Jan 30 10:09:52 GMT 2006


On Mon, 2006-01-30 at 10:58 +0100, Harald Meland wrote:
> [Robert Collins]
> 
> > Needed commands ? I think the shell commands we need to emulate to make
> > for useful demonstration texts are:
> >
> > cd
> > mkdir & rmdir
> > touch (not core, but handy)
> > cat
> > echo (i.e. echo "content A" > foo.txt)
> > rm (including -rf)
> > ls (maybe with -a, should not need -l)
> > ln -s (hardlinks not needed)
> 
> Does this mean that this part of the test suite will be skipped on
> (native) Windows?

I suspect an initial implementation might use os.chdir, os.getcwdu() etc
to provide the emulation... so no, this would work on windows as it does
not depend on a real shell.

Rob
-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060130/b2e1eee5/attachment.pgp 


More information about the bazaar mailing list