[tests] moulette: added a sleep test to see if processes are well waited.
[ozulis.git] / src / moulette / testable.hh
blobbddbb70b188c76fbaad5d7bb3180935751739445
1 #ifndef MOULETTE_TESTABLE_HH
2 # define MOULETTE_TESTABLE_HH
4 # include <gc/gc_cpp.h>
5 # include <string>
6 # include <boost/filesystem.hpp>
8 # include <moulette/test-result.hh>
10 namespace moulette
12 class Testable : public gc
14 public:
15 Testable();
16 virtual ~Testable() {}
18 void run();
19 virtual bool isTestSuite() const = 0;
20 virtual void set(const std::string & key, const std::string & value);
21 virtual const TestResult & result() const = 0;
22 virtual const std::string & name() const;
23 virtual const std::string & type() const = 0;
25 boost::filesystem::path path;
27 protected:
28 virtual void test() = 0;
30 std::string name_;
34 #endif /* !MOULETTE_TESTABLE_HH */