aboutsummaryrefslogtreecommitdiff
path: root/build2/test/rule
diff options
context:
space:
mode:
Diffstat (limited to 'build2/test/rule')
-rw-r--r--build2/test/rule20
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;
};
}
}