tests:Add "--devsim" option
authorTobin Ehlis <tobine@google.com>
Wed, 15 Nov 2017 16:43:56 +0000 (09:43 -0700)
committerTobin Ehlis <tobine@google.com>
Fri, 17 Nov 2017 16:38:09 +0000 (09:38 -0700)
commit6e2361cac85d14217c1ea5b51f94b2835e6b3fb9
treef306a82b7edbd8599f17431c15b90e8f52fdf32c
parent0dd3c4b6ced1719aade73e07456673b74abeea35
tests:Add "--devsim" option

Add "--devsim" option to vk_layer_validation_tests. This will enable
the Device Simulation layer as the bottom layer on the stack.
It still requires the caller to set the VK_DEVSIM_FILENAME env var in
order to select the json profile that they want to test with.

When "--devsim" option is specified, the device_profile layer will not
be enabled by default when InitFramework() is called. Instead, any
tests that require the device_profile layer can call
EnableDeviceProfileLayer(). This function will cause the device profile
layer to replace the dev sim layer as the bottome layer on the stack.
tests/layer_validation_tests.cpp
tests/vkrenderframework.cpp
tests/vkrenderframework.h
tests/vktestframework.cpp
tests/vktestframework.h
tests/vktestframeworkandroid.cpp
tests/vktestframeworkandroid.h