blob: ca16ec1a2bd17874db5b0c5563a608d2e94abdf5 [file] [log] [blame]
#!/bin/bash
#
# Run all the regression tests with validation layers enabled
# enable layers
export VK_INSTANCE_LAYERS=Threading:MemTracker:ObjectTracker:DrawState:ParamChecker:ShaderChecker:Swapchain:DeviceLimits:Image
export VK_DEVICE_LAYERS=Threading:MemTracker:ObjectTracker:DrawState:ParamChecker:ShaderChecker:Swapchain:DeviceLimits:Image
set -e
if [ -f ../../tests/vk_layer_settings.txt ];
then
cp ../../tests/vk_layer_settings.txt .
fi
if [ ! -f ./vk_layer_settings.txt ];
then
printf "ERROR: No vk_layer_settings.txt file found\n"
exit 1;
fi
# vkbase tests that basic VK calls are working (don't return an error).
./vkbase
# vk_blit_tests test Fill/Copy Memory, Clears, CopyMemoryToImage
./vk_blit_tests
# vk_image_tests check that image can be allocated and bound.
./vk_image_tests
#vk_render_tests tests a variety of features using rendered images
# --compare-images will cause the test to check the resulting image against
# a saved "golden" image and will report an error if there is any difference
./vk_render_tests --compare-images
# vktracereplay.sh tests vktrace trace and replay
./vktracereplay.sh
if [ -f ./vk_layer_settings.txt ];
then
rm ./vk_layer_settings.txt
fi