third_party_vulkan-loader/tests
Charles Giessen 2703d19221 test: Add framework cmake and utilities
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
2021-05-27 16:59:28 -06:00
..
framework test: Add framework cmake and utilities 2021-05-27 16:59:28 -06:00
layers Add support for QNX platform. 2021-04-06 14:52:51 -06:00
_run_all_tests.ps1 repo: Minor updates for repo split 2018-05-13 12:06:29 -06:00
CMakeLists.txt test: Add framework cmake and utilities 2021-05-27 16:59:28 -06:00
loader_validation_tests.cpp tests: Change license to Apache 2.0 2020-08-27 14:26:22 -06:00
README.md docs: Add a short readme to tests directory 2018-05-22 15:41:30 -06:00
run_all_tests.sh repo: Fixup test code and scripts 2018-05-13 12:06:12 -06:00
run_extra_loader_tests.sh tests: Flock the implicit layer test 2018-12-18 17:43:29 -07:00
run_loader_tests.sh tests: Update layer path test to strip empty paths 2020-04-08 14:08:06 -06:00
run_wrap_objects_tests.sh repo: Make loader tests work on Linux 2018-05-13 11:58:20 -06:00
test_common.h loader: Fix some non-msvc compiler warnings 2020-08-19 15:46:13 -06:00
vk_layer_settings.txt docs: Remove swapchain refs from docs/text files 2017-06-12 07:32:50 -06:00
vk_loader_validation_tests.vcxproj.user tests: Add user env file for Visual Studio 2018-05-22 15:41:30 -06:00

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.