summaryrefslogtreecommitdiff
path: root/tests/test_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_main.cpp')
-rw-r--r--tests/test_main.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test_main.cpp b/tests/test_main.cpp
new file mode 100644
index 0000000..5b22560
--- /dev/null
+++ b/tests/test_main.cpp
@@ -0,0 +1,14 @@
+#include <iostream>
+
+int main() {
+ std::cout << "[BoltDBG] Running tests...\n";
+ int passed = 0, failed = 0;
+
+ extern void run_logger_tests(int&, int&);
+ run_logger_tests(passed, failed);
+
+ std::cout << "Tests passed: " << passed << "\n";
+ std::cout << "Tests failed: " << failed << "\n";
+
+ return failed > 0 ? 1 : 0;
+}