2703d19221
Create the CMake infrastructure for a testing framework. `test_util.h/.cpp` contains the core macros, wrappers, and utilities. framework_config.h.in is the header that other components include to get the full path to binaries on a system. Change-Id: I3e24a3ee4ff24da499a3bca63059e3b872d3981c |
||
---|---|---|
.. | ||
framework | ||
layers | ||
_run_all_tests.ps1 | ||
CMakeLists.txt | ||
loader_validation_tests.cpp | ||
README.md | ||
run_all_tests.sh | ||
run_extra_loader_tests.sh | ||
run_loader_tests.sh | ||
run_wrap_objects_tests.sh | ||
test_common.h | ||
vk_layer_settings.txt | ||
vk_loader_validation_tests.vcxproj.user |
Loader Tests
This directory contains a test suite for the Vulkan loader. These tests are not exhaustive — they are expected to be supplemented with other tests, such as CTS.
Running Tests
To run the tests, your environment needs to be configured so that the test layers will be found.
This can be done by setting the VK_LAYER_PATH
environment variable to point at the built layers.
Depending on the platform build tool you use, this location will either be ${CMAKE_BINARY_DIR}/tests/layers
or ${CMAKE_BINARY_DIR}/tests/layers/${CONFIGURATION}
.
When using Visual Studio, a the generated project will already be set up to set the environment as needed.
Running the tests through the run_loader_tests.sh
script on Linux will also set up the environment properly.
With any other toolchain, the user will have to set up the environment manually.