From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-03-28 01:32:06
Douglas Gregor wrote:
> On Thursday 27 March 2003 08:28 pm, Rene Rivera wrote:
> > Seems OK to me. But could you add a test case for this into the __test__
> > rule. I'll test it in Win32 with that.
> Unfortunately, I'm not sure how to portably test this sort of thing. The
> only changes I made affect writing output to a file (not to the console),
> and I'm not sure of a good way to test the contents of the file without
> something like diff (not portable to non-Cygwin Windows).
Use the test system ;-)
I attach a minimal test case which verifies that 'print.text' produces
expected result on the first run. I think you can tweak it to check that
overriting really happens.
I'm not sure this should make into regression suite, but in general, tests are
good. We even have docs, in test/test_system.html.
- Volodya --------------Boundary-00=_IT4G7XJDKUA62W3FW6TF Content-Type: text/x-python;
Content-Disposition: attachment; filename="print.py"
from BoostBuild import Tester, List
t = Tester()
import print ;
print.output foo ;
print.text Something ;
DEPENDS all : foo ;
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk