separate testing environment

-Separate main for running unit tests
-Move unit tests into testing folder
This commit is contained in:
marauder2k7 2023-07-24 12:38:36 +01:00
parent 2e8f5795fa
commit c09f79d199
265 changed files with 84537 additions and 334 deletions

View file

@ -23,9 +23,12 @@
#ifndef _UNIT_TESTING_H_
#define _UNIT_TESTING_H_
#ifdef TORQUE_TESTS_ENABLED
#if defined(SDL_MAIN_AVAILABLE)
#undef SDL_MAIN_AVAILABLE
#endif
#include <gtest/gtest.h>
#include <gmock/gmock.h>
/// Convenience to define a test fixture with a Fixture suffix for use with
/// TEST_FIX.
@ -38,6 +41,4 @@
GTEST_TEST_(test_fixture, test_name, test_fixture##Fixture, \
::testing::internal::GetTypeId<test_fixture##Fixture>())
#endif // TORQUE_TESTS_ENABLED
#endif // _UNIT_TESTING_H_