Closed rayanht closed 2 years ago
I am afraid this is working as intended. The Vulkan validation layers are not part of Amber, and they do not communicate their status to Amber. Their status is only communicated via logging to stderr (by default). As such, Amber cannot fail a test based on the validation layers.
My use case for Amber is just to run SPIR-V shaders and dump the buffers to a file. In other words, I don't have any actual testing going on inside the Amber script.
In that scenario, when the Vulkan validation layer fails due to an improper SPIR-V assembly file, Amber exits with return code 0. I'm assuming this happens because there's technically not a hard failure as there are no tests to run. Is this expected behaviour?
Here's a sample Amber file to reproduce:
Running with
bin/amber -t spv1.3 -v 1.2 tmp.amber
, we get:And a return code of 0.