return deps
-option_defaults = { "gui": True, "variant": None }
+option_defaults = { "gui": True, "variant": None, "xml": False }
def configure_options(target, options):
opt = ''
target.command('pdflatex colour.tex')
return [os.path.abspath('pdf'), os.path.abspath('html'), os.path.abspath('colour.pdf')]
-def test(target, test):
+def test(target, options, test):
if target.platform != 'windows':
target.set('LC_ALL', 'C')
- cmd = 'run/tests --xml '
+ cmd = 'run/tests'
+ if options['xml']:
+ target += '--xml '
if target.debug:
cmd += '--backtrace '
if test is not None:
shift;
valgrind --tool="helgrind" build/test/unit-tests $*
elif [ "$1" == "--xml" ]; then
+ shift;
build/test/unit-tests --catch_system_errors=no --log_format=XML --log_sink=results.xml --log_level=all --report_level=no --result_code=no
else
ulimit -c unlimited