summaryrefslogtreecommitdiff
path: root/src/unit/main.c
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2025-04-08 01:07:22 +0000
committerLinnnus <[email protected]>2025-04-08 01:07:34 +0000
commit8dd0c4f27aae02dd60f029db4cf03f9902cba26f (patch)
tree829c4bc0917f6615c55ae61d49932179c038c1e5 /src/unit/main.c
feat: Initial commit
At this point we have some allocation routines but no work on the actual language has been done.
Diffstat (limited to 'src/unit/main.c')
-rw-r--r--src/unit/main.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/unit/main.c b/src/unit/main.c
new file mode 100644
index 0000000..32df795
--- /dev/null
+++ b/src/unit/main.c
@@ -0,0 +1,17 @@
+#include "greatest.h"
+
+SUITE_EXTERN(std_allocator);
+SUITE_EXTERN(arena_allocator);
+SUITE_EXTERN(page_allocator);
+
+GREATEST_MAIN_DEFS();
+
+int main(int argc, char **argv) {
+ GREATEST_MAIN_BEGIN();
+
+ RUN_SUITE(std_allocator);
+ RUN_SUITE(arena_allocator);
+ RUN_SUITE(page_allocator);
+
+ GREATEST_MAIN_END(); /* display results */
+}