Main.c 528 B

12345678910111213141516171819202122
  1. #include <core/Logger.h>
  2. #include <core/Utility.h>
  3. #include <locale.h>
  4. #include <string.h>
  5. #include "Tests.h"
  6. int main(int argAmount, char** args) {
  7. setlocale(LC_ALL, "en_US.utf8");
  8. if(argAmount < 3) {
  9. LOG_ERROR("missing path to images and/or mode");
  10. return 0;
  11. } else if(strcmp("test", args[2]) == 0) {
  12. testImageReader(args[1]);
  13. testNetwork();
  14. } else if(strcmp("window", args[2]) == 0) {
  15. testWindow();
  16. }
  17. finalizeTests();
  18. printMemoryReport();
  19. return 0;
  20. }