### SCons command line flags
--debug-build: Compile with the -g option, and -O0.
+--no-test-xml: Exclude the test result XML files from the build.
## External dependency detection
AddOption('--debug-build', dest='debug_build', action='store_true',
help='Build with debug info, and disable optimizations.')
+AddOption('--no-test-xml', dest='no_tests', action='store_true',
+ help='Omit test output xml files from the build.')
# Universal settings.
if GetOption('debug_build'):
need_qemu_to_run = 'HAVE_QEMU' in env;
# If we can run this test...
- if not need_qemu_to_run or env['HAVE_QEMU']:
+ if (not need_qemu_to_run or env['HAVE_QEMU']) \
+ and not GetOption('no_tests'):
# An XML file which holds the results of the test.
xml = Dir('test').Dir('result').File('%s.xml' % name)
# The basic command line for the test.