[Scons-dev] Testing cleaning

Russel Winder russel at winder.org.uk
Tue Apr 18 23:03:09 EDT 2017


On Tue, 2017-04-18 at 17:05 +0000, Managan, Rob wrote:
> Russel,
> testing/TEX/clean.py has one example of running the build with the “-
> c” option and then checking that certain files don’t exist

I added such a call (thanks also to Bill for similar suggestion) and
tests for non-existence of files after the build and test for existence
of files, and it all seems to work. Which is great. I now realise this
should have been added to all the other D tests. A canonical end-to-end 
test of this sort should be:

1. Build project.
2. Test expected files are there; try and test for no unexpected files.
3. Run application and test reasonableness, or build against newly
created library.
4. Clean project and ensure all created files are removed.

Once this pull request passes review and is merged, I shall update all
the other D tests along these lines.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://pairlist2.pair.net/pipermail/scons-dev/attachments/20170419/18aad60d/attachment.pgp>


More information about the Scons-dev mailing list