Add a simple SPIR-V for purposes of smoke testing the C API.

This commit is contained in:
Hans-Kristian Arntzen 2019-03-04 11:37:01 +01:00
parent 3699ead741
commit afef135dd8
3 changed files with 1 additions and 2 deletions

1
.gitignore vendored
View File

@ -3,7 +3,6 @@
*.txt *.txt
/test /test
/spirv-cross /spirv-cross
*.spv
/obj /obj
/msvc/x64 /msvc/x64
/msvc/Debug /msvc/Debug

View File

@ -233,7 +233,7 @@ if (SPIRV_CROSS_CLI)
target_compile_options(spirv-cross-c-api-test PRIVATE -std=c89 -Wall -Wextra) target_compile_options(spirv-cross-c-api-test PRIVATE -std=c89 -Wall -Wextra)
endif() endif()
add_test(NAME spirv-cross-c-api-test add_test(NAME spirv-cross-c-api-test
COMMAND $<TARGET_FILE:spirv-cross-c-api-test> ${CMAKE_CURRENT_SOURCE_DIR}/tests-other/c-api-test.spv) COMMAND $<TARGET_FILE:spirv-cross-c-api-test> ${CMAKE_CURRENT_SOURCE_DIR}/tests-other/c_api_test.spv)
add_test(NAME spirv-cross-test add_test(NAME spirv-cross-test
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_shaders.py --parallel COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_shaders.py --parallel
${CMAKE_CURRENT_SOURCE_DIR}/shaders ${CMAKE_CURRENT_SOURCE_DIR}/shaders

BIN
tests-other/c_api_test.spv Normal file

Binary file not shown.