diff options
Diffstat (limited to 'bdep/test.hxx')
-rw-r--r-- | bdep/test.hxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/bdep/test.hxx b/bdep/test.hxx index b057c24..ff983b2 100644 --- a/bdep/test.hxx +++ b/bdep/test.hxx @@ -19,12 +19,22 @@ namespace bdep const cstrings& pkgs, const strings& cfg_vars) { - run_bpkg (2, o, "test", "-d", c->path, cfg_vars, pkgs); + run_bpkg (2, + o, + "test", + "-d", c->path, + (o.immediate () ? "--immediate" : + o.recursive () ? "--recursive" : nullptr), + cfg_vars, + pkgs); } inline int cmd_test (const cmd_test_options& o, cli::scanner& args) { + if (o.immediate () && o.recursive ()) + fail << "both --immediate|-i and --recursive|-r specified"; + return cmd_build (o, &cmd_test, args); } } |