diff options
Diffstat (limited to 'tests/wanda/core_driver.cpp')
| -rw-r--r-- | tests/wanda/core_driver.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/wanda/core_driver.cpp b/tests/wanda/core_driver.cpp new file mode 100644 index 0000000..3643da0 --- /dev/null +++ b/tests/wanda/core_driver.cpp @@ -0,0 +1,18 @@ +#include "test_suite_xdg.hpp" + +#include "cute/cute.h" +#include "cute/cute_runner.h" +#include "cute/tap_listener.h" + +#include <algorithm> +#include <iostream> +#include <iterator> +#include <vector> + +int main(int argc, char const *const *argv) +{ + auto listener = cute::tap_listener<>{std::cout}; + auto runner = cute::makeRunner(listener, argc, argv); + auto suites = std::vector<std::pair<cute::suite, std::string>>{wanda::test_suite_xdg()}; + return !all_of(cbegin(suites), cend(suites), [&](auto const &suite) { return runner(suite.first, suite.second.c_str()); }); +}
\ No newline at end of file |
