Browse Source

adding eabase submodule

Roberto Parolin 6 years ago
parent
commit
ef1e52718c
3 changed files with 60 additions and 0 deletions
  1. 3 0
      .gitmodules
  2. 56 0
      test/CMakeLists.txt
  3. 1 0
      test/packages/EABase

+ 3 - 0
.gitmodules

@@ -13,3 +13,6 @@
 [submodule "test/packages/EASTL"]
 	path = test/packages/EASTL
 	url = [email protected]:electronicarts/EASTL.git
+[submodule "test/packages/EABase"]
+	path = test/packages/EABase
+	url = [email protected]:electronicarts/EABase.git

+ 56 - 0
test/CMakeLists.txt

@@ -0,0 +1,56 @@
+#-------------------------------------------------------------------------------------------
+# Copyright (C) Electronic Arts Inc.  All rights reserved.
+#-------------------------------------------------------------------------------------------
+
+#-------------------------------------------------------------------------------------------
+# CMake info
+#-------------------------------------------------------------------------------------------
+cmake_minimum_required(VERSION 3.1)
+project(EAStdCTest CXX)
+include(CTest)
+
+#-------------------------------------------------------------------------------------------
+# Defines
+#-------------------------------------------------------------------------------------------
+add_definitions(-D_CRT_SECURE_NO_WARNINGS)
+add_definitions(-D_SCL_SECURE_NO_WARNINGS)
+add_definitions(-D_CHAR16T)
+
+#-------------------------------------------------------------------------------------------
+# Compiler Flags
+#-------------------------------------------------------------------------------------------
+set (CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_CURRENT_SOURCE_DIR}/../../EASTL/scripts/CMake")
+include(CommonCppFlags)
+
+#-------------------------------------------------------------------------------------------
+# Source files
+#-------------------------------------------------------------------------------------------
+file(GLOB EASTDCTEST_SOURCES "TestEAAssert.cpp")
+set(SOURCES ${EASTDCTEST_SOURCES})
+
+#-------------------------------------------------------------------------------------------
+# Executable definition
+#-------------------------------------------------------------------------------------------
+add_executable(EAStdCTest ${SOURCES})
+
+#-------------------------------------------------------------------------------------------
+# Dependencies 
+#-------------------------------------------------------------------------------------------
+add_subdirectory(packages/EABase)
+add_subdirectory(packages/EAMain)
+add_subdirectory(packages/EASTL)
+add_subdirectory(packages/EATest)
+add_subdirectory(packages/EAThread)
+
+target_link_libraries(EAStdCTest EABase)
+target_link_libraries(EAStdCTest EAMain)
+target_link_libraries(EAStdCTest EASTL)
+target_link_libraries(EAStdCTest EATest)
+target_link_libraries(EAStdCTest EAThread)
+
+#-------------------------------------------------------------------------------------------
+# Run Unit tests and verify the results.
+#-------------------------------------------------------------------------------------------
+add_test(EAStdCTestRuns EAStdCTest)
+set_tests_properties (EAStdCTestRuns PROPERTIES PASS_REGULAR_EXPRESSION "RETURNCODE=0")
+

+ 1 - 0
test/packages/EABase

@@ -0,0 +1 @@
+Subproject commit 084a7e0c9bbd7537d2efca5494e150eb90567343