Skip to content

Commit

Permalink
tests: Add a unit test for a simple memcpy compute shader
Browse files Browse the repository at this point in the history
Bug: b/126871859
Change-Id: I0b3db6c033419a2ad54453d470960330d4f337cc
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/25909
Presubmit-Ready: Ben Clayton <bclayton@google.com>
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
Tested-by: Ben Clayton <bclayton@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
  • Loading branch information
ben-clayton committed Mar 12, 2019
1 parent f2be26a commit abb5785
Show file tree
Hide file tree
Showing 5 changed files with 811 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2353,6 +2353,7 @@ endif()

if(BUILD_TESTS AND BUILD_VULKAN)
set(UNITTESTS_LIST
${CMAKE_CURRENT_SOURCE_DIR}/tests/VulkanUnitTests/Device.cpp
${CMAKE_CURRENT_SOURCE_DIR}/tests/VulkanUnitTests/Driver.cpp
${CMAKE_CURRENT_SOURCE_DIR}/tests/VulkanUnitTests/main.cpp
${CMAKE_CURRENT_SOURCE_DIR}/tests/VulkanUnitTests/unittests.cpp
Expand All @@ -2363,6 +2364,7 @@ if(BUILD_TESTS AND BUILD_VULKAN)
${CMAKE_CURRENT_SOURCE_DIR}/third_party/googletest/googletest/include/
${CMAKE_CURRENT_SOURCE_DIR}/third_party/googletest/googlemock/include/
${CMAKE_CURRENT_SOURCE_DIR}/third_party/googletest/googletest/
${CMAKE_CURRENT_SOURCE_DIR}/third_party/SPIRV-Tools/include
${CMAKE_CURRENT_SOURCE_DIR}/include/
)

Expand All @@ -2373,5 +2375,5 @@ if(BUILD_TESTS AND BUILD_VULKAN)
COMPILE_DEFINITIONS "STANDALONE"
)

target_link_libraries(vk-unittests ${OS_LIBS})
target_link_libraries(vk-unittests ${OS_LIBS} SPIRV-Tools)
endif()
Loading

0 comments on commit abb5785

Please sign in to comment.