diff options
author | dx <aryadevchavali1@gmail.com> | 2020-05-06 03:45:59 +0100 |
---|---|---|
committer | dx <aryadevchavali1@gmail.com> | 2020-05-06 03:46:48 +0100 |
commit | ab7096fadb01cc3eb1a4d687ba5b4cbb326a0a8c (patch) | |
tree | 6e463804a538da7c13d2401c628a313cffcfe449 /Converter/src | |
parent | ef22f048087a79d99ac7e1cf7c7a3d83d7b66a7a (diff) | |
download | mdhtml-ab7096fadb01cc3eb1a4d687ba5b4cbb326a0a8c.tar.gz mdhtml-ab7096fadb01cc3eb1a4d687ba5b4cbb326a0a8c.tar.bz2 mdhtml-ab7096fadb01cc3eb1a4d687ba5b4cbb326a0a8c.zip |
+simple testing argument to executable in main
If argc is greater than 1 and the second argument is --test then run tests.
Diffstat (limited to 'Converter/src')
-rw-r--r-- | Converter/src/main.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Converter/src/main.c b/Converter/src/main.c index 7ca85e8..8d03c02 100644 --- a/Converter/src/main.c +++ b/Converter/src/main.c @@ -1,9 +1,17 @@ #include "../includes/compiler.h" +#include "../includes/test.h" #include <malloc.h> #include <stdio.h> #include <string.h> -int main() +int main(int argc, char *argv[]) { - return 0; + if (argc > 1) + { + if (strncmp(argv[1], "--test", 7) == 0) + { + // run tests + test_header_depths(); + } + } } |