mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-09 22:00:05 +00:00
Improve debuggability of Travis CI when things go wrong.
This commit is contained in:
parent
d11b8aa3ef
commit
45c797d54c
@ -22,5 +22,5 @@ script:
|
|||||||
- cd glslang && cmake . && make -j2 && cd ..
|
- cd glslang && cmake . && make -j2 && cd ..
|
||||||
- cd SPIRV-Tools && cmake . && make -j2 && cd ..
|
- cd SPIRV-Tools && cmake . && make -j2 && cd ..
|
||||||
- make -j2
|
- make -j2
|
||||||
- PATH=$PATH:./glslang/StandAlone:./SPIRV-Tools/tools
|
- PATH=./glslang/StandAlone:./SPIRV-Tools/tools:$PATH
|
||||||
- ./test_shaders.py shaders
|
- ./test_shaders.py shaders
|
||||||
|
@ -6,7 +6,7 @@ layout(location = 0) out mediump int FragColor;
|
|||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
FragColor = 15;
|
FragColor = 16;
|
||||||
for (mediump int i = 0; i < 25; i++)
|
for (mediump int i = 0; i < 25; i++)
|
||||||
{
|
{
|
||||||
FragColor += 10;
|
FragColor += 10;
|
||||||
|
@ -4,7 +4,7 @@ layout(location = 0) out int FragColor;
|
|||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
FragColor = 15;
|
FragColor = 16;
|
||||||
|
|
||||||
// Basic loop variable.
|
// Basic loop variable.
|
||||||
for (int i = 0; i < 25; i++)
|
for (int i = 0; i < 25; i++)
|
||||||
|
@ -137,6 +137,14 @@ def regression_check(shader, glsl, update, keep):
|
|||||||
shutil.move(glsl, reference)
|
shutil.move(glsl, reference)
|
||||||
else:
|
else:
|
||||||
print('Generated GLSL in {} does not match reference {}!'.format(glsl, reference))
|
print('Generated GLSL in {} does not match reference {}!'.format(glsl, reference))
|
||||||
|
with open(glsl, 'r') as f:
|
||||||
|
print('')
|
||||||
|
print('Generated:')
|
||||||
|
print('======================')
|
||||||
|
print(f.read())
|
||||||
|
print('======================')
|
||||||
|
print('')
|
||||||
|
|
||||||
# Otherwise, fail the test. Keep the shader file around so we can inspect.
|
# Otherwise, fail the test. Keep the shader file around so we can inspect.
|
||||||
if not keep:
|
if not keep:
|
||||||
os.remove(glsl)
|
os.remove(glsl)
|
||||||
|
Loading…
Reference in New Issue
Block a user