From 9bf93c1ab73ee3cd2b763285fc5fc5456e972854 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 11 Jan 2017 10:14:23 +0200 Subject: Implement support for narrowing down tests (config.test) --- build2/test/rule | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'build2/test/rule') diff --git a/build2/test/rule b/build2/test/rule index e3fc864..20ad905 100644 --- a/build2/test/rule +++ b/build2/test/rule @@ -11,34 +11,40 @@ #include #include +#include + namespace build2 { namespace test { - class rule: public build2::rule + class rule_common: public build2::rule, protected virtual common { public: virtual match_result match (action, target&, const string&) const override; + target_state + perform_script (action, target&) const; + }; + + class rule: public rule_common + { + public: virtual recipe apply (action, target&) const override; static target_state - perform_script (action, target&); - - static target_state perform_test (action, target&); }; - class alias_rule: public rule + class alias_rule: public rule_common { public: virtual recipe apply (action, target&) const override; - static target_state - perform_test (action, target&); + target_state + perform_test (action, target&) const; }; } } -- cgit v1.1