/*** Copyright (C) 2020 Reece Wilson (a/k/a "Reece"). All rights reserved. File: entrypoint.cpp Date: 2020-6-9 Originator: Reece Purpose: ***/ #define _AURORA_RUNTIME_BUILD_API_INTERFACES #include #include #include "gtest/gtest.h" #include "test.hpp" #include "unit.hpp" #include "console.hpp" using namespace Aurora::UnitTesting; extern void RunTests(); int main(int argsc, const char ** argsv) { Aurora::UnitTesting::Console::Init(); RunTests(); ::testing::InitGoogleTest(&argsc, (char **)argsv); if (::testing::UnitTest::GetInstance()->total_test_count()) { UnitAssert(RUN_ALL_TESTS() == 0, "gtest failed"); } if (Aurora::RuntimeHasStarted()) { Aurora::RuntimeShutdown(); } Aurora::UnitTesting::Console::Log(" Single unit test executable passed without a failed assertion."); Aurora::UnitTesting::Console::Log(" Returning exitcode encoded TestResponse::kPass w/ magic"); return ToExitCode(TestResponse::kPass); }