env.Clean('all', ('.prepare-stamp', env.Dir('dist')))
if env.GetOption('clean') : env.Depends('all', ('lcov', 'all_valgrinds'))
-if env.GetOption('clean'):
+if env.GetOption('clean') and 'all' in BUILD_TARGETS:
env.Clean('all', [ os.path.join(path,f)
for path, subdirs, files in os.walk('.')
for pattern in env['CLEAN_PATTERNS']
for f in fnmatch.filter(files,pattern) ])
- if 'all' in BUILD_TARGETS:
- import SCons.SConsign
- SCons.SConsign.write = lambda : None
+ # Disable writing to the deleted .sconsign file
+ import SCons.SConsign
+ SCons.SConsign.write = lambda : None
if not env.GetOption('clean') and not os.path.exists(".prepare-stamp"):
Execute(Touch(".prepare-stamp"))
BOOST_AUTO_UNIT_TEST(rateAnalyzer)
{
+ char const * enabled (getenv("SENF_TIMING_CRITICAL_TESTS"));
+ if (! enabled) {
+ BOOST_WARN_MESSAGE(false, "Set SENF_TIMING_CRITICAL_TESTS to not skip timing critical tests");
+ }
senf::DataPacket p (senf::DataPacket::create(13u));
senf::ppi::module::CloneSource source (p);
senf::ppi::module::RateFilter filter (senf::ClockService::milliseconds(58u));
pps /= calls;
bps /= calls;
- BOOST_CHECK_CLOSE( pps, 16.67f, .1f );
- BOOST_CHECK_CLOSE( bps, 216.67f, .1f );
+ if (enabled) {
+ BOOST_CHECK_CLOSE( pps, 16.67f, .1f );
+ BOOST_CHECK_CLOSE( bps, 216.67f, .1f );
+ }
}
///////////////////////////////cc.e////////////////////////////////////////