X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=SConstruct;h=b501151c8c48fcc3515de8257df9bf0e01f1e5e3;hb=6a3a31fb7b2d2a5e8ae6d67d50797700274fb34e;hp=478cfdf977a42c5948d46f121222eb2cad5ca868;hpb=044a1bfb46ce16c3daac307b8c684604b43dd4cf;p=senf.git diff --git a/SConstruct b/SConstruct index 478cfdf..b501151 100644 --- a/SConstruct +++ b/SConstruct @@ -8,8 +8,8 @@ import SENFSCons # This hack is needed for SCons V 0.96.1 compatibility. In current SCons versions # we can just use 'env.AlwaysBuild(env.Alias(target), [], action)' -def PhonyTarget(env, target, action): - env.AlwaysBuild(env.Command(target + '.phony', 'SConstruct', env.Action(action))) +def PhonyTarget(env, target, action, sources=[]): + env.AlwaysBuild(env.Command(target + '.phony', [ 'SConstruct' ] + sources, env.Action(action))) env.Alias(target, target + '.phony') def updateRevision(target, source, env): @@ -239,6 +239,10 @@ PhonyTarget(env, 'fixlinks', [ PhonyTarget(env, 'prepare', []) +PhonyTarget(env, 'valgrind', [ + 'find -name .test.bin | while read test; do echo; echo "Running $$test"; echo; valgrind --tool=memcheck --error-exitcode=99 --suppressions=valgrind.sup $$test $BOOSTTESTARGS; [ $$? -ne 99 ] || exit 1; done' + ], [ 'all_tests' ]) + env.Clean('all', env.Dir('linklint')) env.Clean('all','.prepare-stamp')