summaryrefslogtreecommitdiff
path: root/src/test/test_main.c
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2021-09-23 22:06:41 -0500
committersanine <sanine.not@pm.me>2021-09-23 22:06:41 -0500
commit6f92e9da2f6b0223c34728da34be65d76d5db485 (patch)
tree932760a75acd33dfe4e303e1c46fd8bdd153501f /src/test/test_main.c
parent34603bb6d538ab1b0edbe10feeef27b80b1b7f7a (diff)
add basic test framework
Diffstat (limited to 'src/test/test_main.c')
-rw-r--r--src/test/test_main.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/test_main.c b/src/test/test_main.c
new file mode 100644
index 0000000..a4e776a
--- /dev/null
+++ b/src/test/test_main.c
@@ -0,0 +1,14 @@
+#include "minunit.h"
+#include "suites.h"
+
+int tests_run = 0;
+int tests_failed = 0;
+
+int main()
+{
+ printf("~~~~~~~~ running tests ~~~~~~~~\n\n");
+ RUN_TESTS;
+ printf("~~~~~~~~~ tests done ~~~~~~~~~~\n\n");
+
+ mu_tests_finished();
+}