Main.c 507 B

12345678910111213141516171819202122
  1. #define IMPORT_CORE
  2. #include <core/Logger.h>
  3. #include <core/Utility.h>
  4. #include <string.h>
  5. #include "Tests.h"
  6. int main(int argAmount, char** args) {
  7. (void)args;
  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. }