OSDN Git Service

Move GLES unit tests
authorAlexis Hetu <sugoi@google.com>
Wed, 17 Oct 2018 14:10:23 +0000 (10:10 -0400)
committerAlexis Hétu <sugoi@google.com>
Thu, 18 Oct 2018 14:49:17 +0000 (14:49 +0000)
GLES unit tests were in the generic "unittests" directory.
In order to avoid confusion with Vulkan unit tests, the
GLES unit tests directory was renamed to GLESUnitTests.

Change-Id: Idc40f63daddc6f822207fc4a75dd037a46ae22a6
Reviewed-on: https://swiftshader-review.googlesource.com/c/21628
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
12 files changed:
Android.mk
BUILD.gn
CMakeLists.txt
SwiftShader.sln
tests/GLESUnitTests/Android.mk [moved from tests/unittests/Android.mk with 100% similarity]
tests/GLESUnitTests/BUILD.gn [moved from tests/unittests/BUILD.gn with 100% similarity]
tests/GLESUnitTests/GLESUnitTests.vcxproj [moved from tests/unittests/GLESUnitTests.vcxproj with 95% similarity]
tests/GLESUnitTests/GLESUnitTests.vcxproj.filters [moved from tests/unittests/GLESUnitTests.vcxproj.filters with 100% similarity]
tests/GLESUnitTests/GLESUnitTests.vcxproj.user [moved from tests/unittests/GLESUnitTests.vcxproj.user with 100% similarity]
tests/GLESUnitTests/SwiftShaderTest.h [moved from tests/unittests/SwiftShaderTest.h with 100% similarity]
tests/GLESUnitTests/main.cpp [moved from tests/unittests/main.cpp with 100% similarity]
tests/GLESUnitTests/unittests.cpp [moved from tests/unittests/unittests.cpp with 100% similarity]

index bccaf14..5165436 100644 (file)
@@ -63,7 +63,7 @@ endif
 
 ifneq ($(swiftshader_unsupported_build),true)
 include $(swiftshader_root)/src/Android.mk
-include $(swiftshader_root)/tests/unittests/Android.mk
+include $(swiftshader_root)/tests/GLESUnitTests/Android.mk
 ifeq ($(REACTOR_LLVM_VERSION),3)
 include $(swiftshader_root)/third_party/LLVM/Android.mk
 else
index d218425..b36d9f9 100644 (file)
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -142,6 +142,6 @@ group("swiftshader_tests") {
   testonly = true
 
   data_deps = [
-    "tests/unittests:swiftshader_unittests",
+    "tests/GLESUnitTests:swiftshader_unittests",
   ]
 }
index d6f53af..90a62fa 100644 (file)
@@ -2125,8 +2125,8 @@ endif()
 
 if(BUILD_TESTS)
     set(UNITTESTS_LIST
-        ${CMAKE_SOURCE_DIR}/tests/unittests/main.cpp
-        ${CMAKE_SOURCE_DIR}/tests/unittests/unittests.cpp
+        ${CMAKE_SOURCE_DIR}/tests/GLESUnitTests/main.cpp
+        ${CMAKE_SOURCE_DIR}/tests/GLESUnitTests/unittests.cpp
         ${CMAKE_SOURCE_DIR}/third_party/googletest/googletest/src/gtest-all.cc
     )
 
index 990830b..4f0986f 100644 (file)
@@ -248,7 +248,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Subzero", "src\Reactor\Subz
 EndProject\r
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SubzeroLLVMDependencies", "src\Reactor\SubzeroLLVMDependencies.vcxproj", "{E3BBD7DA-45C1-43EF-9C87-3F411031BDE4}"\r
 EndProject\r
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GLESUnitTests", "tests\unittests\GLESUnitTests.vcxproj", "{CF8EBC89-8762-49DC-9440-6C82B3499913}"\r
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GLESUnitTests", "tests\GLESUnitTests\GLESUnitTests.vcxproj", "{CF8EBC89-8762-49DC-9440-6C82B3499913}"\r
 EndProject\r
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "VertexRoutineFuzzer", "tests\fuzzers\VertexRoutineFuzzer.vcxproj", "{FBDCFF88-0CE1-43C3-B694-8F45946FAFE3}"\r
        ProjectSection(ProjectDependencies) = postProject\r
similarity index 95%
rename from tests/unittests/GLESUnitTests.vcxproj
rename to tests/GLESUnitTests/GLESUnitTests.vcxproj
index 7769b92..3942209 100644 (file)
       <ForcedIncludeFiles>\r
       </ForcedIncludeFiles>\r
       <TreatSpecificWarningsAsErrors>4018;5038;4838</TreatSpecificWarningsAsErrors>\r
+      <AdditionalOptions>/permissive- %(AdditionalOptions)</AdditionalOptions>\r
     </ClCompile>\r
     <Link>\r
       <SubSystem>Console</SubSystem>\r
       <ForcedIncludeFiles>\r
       </ForcedIncludeFiles>\r
       <TreatSpecificWarningsAsErrors>4018;5038;4838</TreatSpecificWarningsAsErrors>\r
+      <AdditionalOptions>/permissive- %(AdditionalOptions)</AdditionalOptions>\r
     </ClCompile>\r
     <Link>\r
       <SubSystem>Console</SubSystem>\r
       <ForcedIncludeFiles>\r
       </ForcedIncludeFiles>\r
       <TreatSpecificWarningsAsErrors>4018;5038;4838</TreatSpecificWarningsAsErrors>\r
+      <AdditionalOptions>/permissive- %(AdditionalOptions)</AdditionalOptions>\r
     </ClCompile>\r
     <Link>\r
       <SubSystem>Console</SubSystem>\r
       <ForcedIncludeFiles>\r
       </ForcedIncludeFiles>\r
       <TreatSpecificWarningsAsErrors>4018;5038;4838</TreatSpecificWarningsAsErrors>\r
+      <AdditionalOptions>/permissive- %(AdditionalOptions)</AdditionalOptions>\r
     </ClCompile>\r
     <Link>\r
       <SubSystem>Console</SubSystem>\r