From a1cec9e0df14f3c1a833e2a447b5324ff9c430d3 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 21 Jul 2015 16:21:07 +0200 Subject: Test module genesis --- build/test/rule | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 build/test/rule (limited to 'build/test/rule') diff --git a/build/test/rule b/build/test/rule new file mode 100644 index 0000000..db10606 --- /dev/null +++ b/build/test/rule @@ -0,0 +1,32 @@ +// file : build/test/rule -*- C++ -*- +// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#ifndef BUILD_TEST_RULE +#define BUILD_TEST_RULE + +#include +#include + +namespace build +{ + namespace test + { + class rule: public build::rule + { + public: + rule (operation_id o): test_id (o) {} + + virtual match_result + match (action, target&, const std::string&) const; + + virtual recipe + apply (action, target&, const match_result&) const; + + private: + operation_id test_id; + }; + } +} + +#endif // BUILD_TEST_RULE -- cgit v1.1