Main.c 548 B

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