diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-01-11 10:14:23 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-01-12 10:58:19 +0200 |
commit | 9bf93c1ab73ee3cd2b763285fc5fc5456e972854 (patch) | |
tree | 0357c36e12fe2137ef6c9bd228e9d69bb2489a02 /build2/test/rule | |
parent | 33ed305eac57bff406fa3f672ba8acc4941e8f13 (diff) |
Implement support for narrowing down tests (config.test)
Diffstat (limited to 'build2/test/rule')
-rw-r--r-- | build2/test/rule | 20 |
1 files changed, 13 insertions, 7 deletions
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 <build2/rule> #include <build2/operation> +#include <build2/test/common> + 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; }; } } |