Browse Source

Print test details for scripting

Kajetan Johannes Hammerle 3 weeks ago
parent
commit
c36fd85706
1 changed files with 10 additions and 0 deletions
  1. 10 0
      test/Main.c

+ 10 - 0
test/Main.c

@@ -1,4 +1,5 @@
 #include <locale.h>
+#include <stdio.h>
 #include <string.h>
 
 #include "Tests.h"
@@ -14,6 +15,15 @@ static void onExit(int code, void* data) {
 }
 
 int main(int argAmount, const char** args) {
+    if(argAmount >= 2 && strcmp(args[1], "help") == 0) {
+        puts("alloc");
+        puts("realloc");
+        puts("pre_canary");
+        puts("post_canary");
+        puts("test;ignore");
+        puts("light;readLineTest");
+        return 0;
+    }
     setlocale(LC_ALL, "en_US.utf8");
     bool light = false;
     for(int i = 0; i < argAmount; i++) {