Tools: autotest.py: add --enable-math-check-indexes
This commit is contained in:
parent
cb3c1742e8
commit
475027e03a
@ -337,6 +337,7 @@ def run_step(step):
|
|||||||
"debug": opts.debug,
|
"debug": opts.debug,
|
||||||
"clean": not opts.no_clean,
|
"clean": not opts.no_clean,
|
||||||
"configure": not opts.no_configure,
|
"configure": not opts.no_configure,
|
||||||
|
"math_check_indexes": opts.math_check_indexes,
|
||||||
"extra_configure_args": opts.waf_configure_args,
|
"extra_configure_args": opts.waf_configure_args,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -726,6 +727,11 @@ if __name__ == "__main__":
|
|||||||
default=False,
|
default=False,
|
||||||
action='store_true',
|
action='store_true',
|
||||||
help='make built binaries debug binaries')
|
help='make built binaries debug binaries')
|
||||||
|
group_build.add_option("--enable-math-check-indexes",
|
||||||
|
default=False,
|
||||||
|
action="store_true",
|
||||||
|
dest="math_check_indexes",
|
||||||
|
help="enable checking of math indexes")
|
||||||
parser.add_option_group(group_build)
|
parser.add_option_group(group_build)
|
||||||
|
|
||||||
group_sim = optparse.OptionGroup(parser, "Simulation options")
|
group_sim = optparse.OptionGroup(parser, "Simulation options")
|
||||||
|
@ -92,10 +92,12 @@ def relwaf():
|
|||||||
return "./modules/waf/waf-light"
|
return "./modules/waf/waf-light"
|
||||||
|
|
||||||
|
|
||||||
def waf_configure(board, j=None, debug=False, extra_args=[]):
|
def waf_configure(board, j=None, debug=False, math_check_indexes=False, extra_args=[]):
|
||||||
cmd_configure = [relwaf(), "configure", "--board", board]
|
cmd_configure = [relwaf(), "configure", "--board", board]
|
||||||
if debug:
|
if debug:
|
||||||
cmd_configure.append('--debug')
|
cmd_configure.append('--debug')
|
||||||
|
if math_check_indexes:
|
||||||
|
cmd_configure.append('--enable-math-check-indexes')
|
||||||
if j is not None:
|
if j is not None:
|
||||||
cmd_configure.extend(['-j', str(j)])
|
cmd_configure.extend(['-j', str(j)])
|
||||||
pieces = [shlex.split(x) for x in extra_args]
|
pieces = [shlex.split(x) for x in extra_args]
|
||||||
@ -108,12 +110,16 @@ def waf_clean():
|
|||||||
run_cmd([relwaf(), "clean"], directory=topdir(), checkfail=True)
|
run_cmd([relwaf(), "clean"], directory=topdir(), checkfail=True)
|
||||||
|
|
||||||
|
|
||||||
def build_SITL(build_target, j=None, debug=False, board='sitl', clean=True, configure=True, extra_configure_args=[]):
|
def build_SITL(build_target, j=None, debug=False, board='sitl', clean=True, configure=True, math_check_indexes=False, extra_configure_args=[]):
|
||||||
"""Build desktop SITL."""
|
"""Build desktop SITL."""
|
||||||
|
|
||||||
# first configure
|
# first configure
|
||||||
if configure:
|
if configure:
|
||||||
waf_configure(board, j=j, debug=debug, extra_args=extra_configure_args)
|
waf_configure(board,
|
||||||
|
j=j,
|
||||||
|
debug=debug,
|
||||||
|
math_check_indexes=math_check_indexes,
|
||||||
|
extra_args=extra_configure_args)
|
||||||
|
|
||||||
# then clean
|
# then clean
|
||||||
if clean:
|
if clean:
|
||||||
|
Loading…
Reference in New Issue
Block a user