mirror of https://github.com/ArduPilot/ardupilot
waf: define command check as a build shortcut
Now that the concept of programs group is used and 'bin' is the default program group, the command check needed to be adapted so that (i) it is consistent with the other build command and (ii) it defines 'all' as its target programs group.
This commit is contained in:
parent
1682be2596
commit
6901a2cdf6
7
wscript
7
wscript
|
@ -187,9 +187,10 @@ def build(bld):
|
||||||
bld.fatal('check: gtest library is required')
|
bld.fatal('check: gtest library is required')
|
||||||
bld.add_post_fun(ardupilotwaf.test_summary)
|
bld.add_post_fun(ardupilotwaf.test_summary)
|
||||||
|
|
||||||
class CheckContext(BuildContext):
|
ardupilotwaf.build_shortcut('check',
|
||||||
'''executes tests after build'''
|
program_group_list='all',
|
||||||
cmd = 'check'
|
doc='builds all programs and run tests',
|
||||||
|
)
|
||||||
|
|
||||||
ardupilotwaf.build_shortcut('copter',
|
ardupilotwaf.build_shortcut('copter',
|
||||||
targets='bin/arducopter',
|
targets='bin/arducopter',
|
||||||
|
|
Loading…
Reference in New Issue