aboutsummaryrefslogtreecommitdiff
path: root/tests/wanda/driver.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2018-12-15 12:07:00 +0100
committerFelix Morgner <felix.morgner@gmail.com>2018-12-15 12:07:00 +0100
commit9941c06c33c601a3e59c008c35c6181ba8a2e7f9 (patch)
treee5a71e5a3d3c541c82077695a0c302cfa952051d /tests/wanda/driver.cpp
parented419140280553b070943b7ba539120a26ff5686 (diff)
downloadwanda-9941c06c33c601a3e59c008c35c6181ba8a2e7f9.tar.xz
wanda-9941c06c33c601a3e59c008c35c6181ba8a2e7f9.zip
testing: rework test code
Diffstat (limited to 'tests/wanda/driver.cpp')
-rw-r--r--tests/wanda/driver.cpp23
1 files changed, 23 insertions, 0 deletions
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 <algorithm>
+#include <iostream>
+#include <iterator>
+#include <string>
+#include <utility>
+#include <vector>
+
+namespace wanda::test
+{
+ std::pair<cute::suite, std::string> 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