summaryrefslogtreecommitdiff
path: root/libs/honeysuckle/src/tests/tests_main.c
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-04-16 11:55:09 -0500
committersanine <sanine.not@pm.me>2022-04-16 11:55:09 -0500
commitdb81b925d776103326128bf629cbdda576a223e7 (patch)
tree58bea8155c686733310009f6bed7363f91fbeb9d /libs/honeysuckle/src/tests/tests_main.c
parent55860037b14fb3893ba21cf2654c83d349cc1082 (diff)
move 3rd-party librarys into libs/ and add built-in honeysuckle
Diffstat (limited to 'libs/honeysuckle/src/tests/tests_main.c')
-rw-r--r--libs/honeysuckle/src/tests/tests_main.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/libs/honeysuckle/src/tests/tests_main.c b/libs/honeysuckle/src/tests/tests_main.c
new file mode 100644
index 0000000..26af7cc
--- /dev/null
+++ b/libs/honeysuckle/src/tests/tests_main.c
@@ -0,0 +1,33 @@
+#include "hs_tests.h"
+
+/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ *
+ * RUN TESTS
+ *
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+
+int tests_run = 0;
+int tests_run_old = 0;
+int tests_failed = 0;
+
+int main()
+{
+ printf("================ start tests ================\n\n");
+
+ mu_run_suite(hs_type_to_string_tests);
+ mu_run_suite(hs_parse_args_tests);
+ mu_run_suite(hs_parse_overloaded_tests);
+ mu_run_suite(hs_create_table_tests);
+ //mu_run_suite(hs_create_enum_tests);
+ mu_run_suite(hs_process_table_tests);
+ mu_run_suite(hs_throw_error_tests);
+
+ mu_run_suite(hs_pushstring_tests);
+
+ printf("\n=============== tests finished ===============\n\n");
+
+ const char *color = tests_failed == 0 ? GREEN : RED;
+ printf("%sran %d tests, %d failed\n" RESET, color, tests_run, tests_failed);
+ return tests_failed;
+}