From 9941c06c33c601a3e59c008c35c6181ba8a2e7f9 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sat, 15 Dec 2018 12:07:00 +0100 Subject: testing: rework test code --- tests/wanda/driver.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/wanda/driver.cpp (limited to 'tests/wanda/driver.cpp') diff --git a/tests/wanda/driver.cpp b/tests/wanda/driver.cpp new file mode 100644 index 0000000..e0dd7c8 --- /dev/null +++ b/tests/wanda/driver.cpp @@ -0,0 +1,23 @@ +#include "cute/cute.h" +#include "cute/cute_runner.h" +#include "cute/tap_listener.h" + +#include +#include +#include +#include +#include +#include + +namespace wanda::test +{ + std::pair suite(); +} + +int main(int argc, char const *const *argv) +{ + auto listener = cute::tap_listener<>{std::cout}; + auto runner = cute::makeRunner(listener, argc, argv); + auto suite = wanda::test::suite(); + return !runner(suite.first, suite.second.c_str()); +} \ No newline at end of file -- cgit v1.2.3