'python doclib/fix-links.py -v -s .svn -s linklint -s debian linklint/errorX.txt linklint/errorAX.txt',
])
-PhonyTarget(env, 'prepare', [])
+PhonyTarget(env, 'prepare', [ 'true' ])
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'
import os, os.path, sys
-from cStringIO import StringIO
+import tempfile
from SCons.Script import *
import SCons.Scanner.C
tests = scanTests(file(source[0].abspath))
cenv = env.Clone()
cenv.Append( CPPDEFINES = { 'COMPILE_CHECK': '' } )
- out = StringIO()
+ out = tempfile.TemporaryFile()
cenv['SPAWN'] = lambda sh, escape, cmd, args, env, pspawn=cenv['PSPAWN'], out=out: \
pspawn(sh, escape, cmd, args, env, out, out)
Action('$CXXCOM').execute(target, source, cenv)
passedTests = {}
delay_name = None
- for error in out.getvalue().splitlines():
+ out.seek(0)
+ for error in out.read().splitlines():
elts = error.split(':',2)
if len(elts) != 3 : continue
filename, line, message = elts
if compileTestSources:
test.extend(env.CompileCheck(source = compileTestSources))
env.Alias('all_tests', test)
- env.Command(env.File('test'), test, [])
+ env.Command(env.File('test'), test, [ 'true' ])
#env.Alias(env.File('test'), test)
# Hmm ... here I'd like to use an Alias instead of a file
# however the alias does not seem to live in the subdirectory
# which breaks 'scons -u test'
- env.Command(env.File('test'), test, [])
+ env.Command(env.File('test'), test, [ 'true' ])
#env.Alias(env.File('test'), test)
return objects