From 6901a2cdf619aa576accf547b9b90b2c5da9518a Mon Sep 17 00:00:00 2001 From: Gustavo Jose de Sousa Date: Wed, 27 Jan 2016 16:07:36 +0000 Subject: [PATCH] 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. --- wscript | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wscript b/wscript index 3d1f369563..0e3a4f3d89 100644 --- a/wscript +++ b/wscript @@ -187,9 +187,10 @@ def build(bld): bld.fatal('check: gtest library is required') bld.add_post_fun(ardupilotwaf.test_summary) -class CheckContext(BuildContext): - '''executes tests after build''' - cmd = 'check' +ardupilotwaf.build_shortcut('check', + program_group_list='all', + doc='builds all programs and run tests', +) ardupilotwaf.build_shortcut('copter', targets='bin/arducopter',