Main.cpp 708 B

12345678910111213141516171819202122232425262728
  1. // Copyright (C) 2014, Panagiotis Christopoulos Charitos.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #include "tests/framework/Framework.h"
  6. #include "anki/core/Logger.h"
  7. #include "anki/util/Filesystem.h"
  8. using namespace anki;
  9. int main(int argc, char** argv)
  10. {
  11. HeapAllocator<U8> alloc(HeapMemoryPool(allocAligned, nullptr));
  12. // Call a few singletons to avoid memory leak confusion
  13. LoggerSingleton::init(
  14. Logger::InitFlags::WITH_SYSTEM_MESSAGE_HANDLER,
  15. alloc, &(getHomeDirectory(alloc) + ".anki/tests.log")[0]);
  16. int exitcode = getTesterSingleton().run(argc, argv);
  17. LoggerSingleton::destroy();
  18. deleteTesterSingleton();
  19. return exitcode;
  20. }