|
Boost : |
From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2006-02-05 01:34:47
"Gennadiy Rozental" wrote:
> So essentially you looking for something like this:
>
> BOOST_AUTO_TEST_CASE( test_abc )
> {
> ....
> }
>
> BOOST_TEST_CASE_CONDITION( test_abc, BOOST_TEST_CASE_FILE_DEPEND( abc.cpp,
> 10*60 ) ) ;
>
> We could design several different runtime conditions: file dependence,
> time dependency and provide API for custom users conditions.
>
> I will need to think how to implement something like this. Meanwhile if
> you could supply code for timestamp comparisons it'll be useful.
>
http://www.codeproject.com/cpp/minitest.asp
contains such code (one header file). It is just a call to stat().
/Pavel
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk