]> git.stg.codes - stg.git/blobdiff - tests/main.cpp
Добавляем каталог с тестами
[stg.git] / tests / main.cpp
diff --git a/tests/main.cpp b/tests/main.cpp
new file mode 100644 (file)
index 0000000..f561cb1
--- /dev/null
@@ -0,0 +1,22 @@
+#include <tut/tut.hpp>
+#include <tut_reporter.h>
+#include <iostream>
+
+using std::exception;
+using std::cerr;
+using std::endl;
+
+namespace tut
+{
+    test_runner_singleton runner;
+}
+
+int main()
+{
+    tut::reporter reporter;
+    tut::runner.get().set_callback(&reporter);
+
+    tut::runner.get().run_tests();
+
+    return !reporter.all_ok();
+}