From 023f1a286b7dfe80eb80a9e6924e492cf6f3f80a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 10 May 2018 10:34:31 +0200 Subject: Implement test, update, and clean commands --- bdep/test.hxx | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 bdep/test.hxx (limited to 'bdep/test.hxx') diff --git a/bdep/test.hxx b/bdep/test.hxx new file mode 100644 index 0000000..b057c24 --- /dev/null +++ b/bdep/test.hxx @@ -0,0 +1,32 @@ +// file : bdep/test.hxx -*- C++ -*- +// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#ifndef BDEP_TEST_HXX +#define BDEP_TEST_HXX + +#include +#include + +#include +#include + +namespace bdep +{ + inline void + cmd_test (const cmd_test_options& o, + const shared_ptr& c, + const cstrings& pkgs, + const strings& cfg_vars) + { + run_bpkg (2, o, "test", "-d", c->path, cfg_vars, pkgs); + } + + inline int + cmd_test (const cmd_test_options& o, cli::scanner& args) + { + return cmd_build (o, &cmd_test, args); + } +} + +#endif // BDEP_TEST_HXX -- cgit v1.1