Lots of work on printbuffers
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "drivertests.hpp"
|
||||
#include "drivenengine.hpp"
|
||||
#include "world.hpp"
|
||||
#include <iomanip>
|
||||
|
||||
static void write_closed_message(Channel *ch, StreamBuffer *out) {
|
||||
@@ -127,6 +128,21 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
class RunUnitTests : public DrivenEngine {
|
||||
private:
|
||||
UniqueWorld world_;
|
||||
|
||||
void event_init(int argc, char *argv[])
|
||||
{
|
||||
world_.reset(new World(util::WORLD_TYPE_STANDALONE));
|
||||
world_->update_source(get_lua_source());
|
||||
world_->run_unittests();
|
||||
stop_driver();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
UniqueDrivenEngine make_DriverListenTest() {
|
||||
return UniqueDrivenEngine(new DriverListenTest);
|
||||
}
|
||||
@@ -143,4 +159,7 @@ UniqueDrivenEngine make_DriverPrintClockTest() {
|
||||
return UniqueDrivenEngine(new DriverPrintClockTest);
|
||||
}
|
||||
|
||||
UniqueDrivenEngine make_RunUnitTests() {
|
||||
return UniqueDrivenEngine(new RunUnitTests);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user