Improve debuggability of Travis CI when things go wrong.

This commit is contained in:
Hans-Kristian Arntzen 2016-12-16 13:48:30 +01:00
parent d11b8aa3ef
commit 45c797d54c
4 changed files with 11 additions and 3 deletions

View File

@ -22,5 +22,5 @@ script:
- cd glslang && cmake . && make -j2 && cd ..
- cd SPIRV-Tools && cmake . && make -j2 && cd ..
- make -j2
- PATH=$PATH:./glslang/StandAlone:./SPIRV-Tools/tools
- PATH=./glslang/StandAlone:./SPIRV-Tools/tools:$PATH
- ./test_shaders.py shaders

View File

@ -6,7 +6,7 @@ layout(location = 0) out mediump int FragColor;
void main()
{
FragColor = 15;
FragColor = 16;
for (mediump int i = 0; i < 25; i++)
{
FragColor += 10;

View File

@ -4,7 +4,7 @@ layout(location = 0) out int FragColor;
void main()
{
FragColor = 15;
FragColor = 16;
// Basic loop variable.
for (int i = 0; i < 25; i++)

View File

@ -137,6 +137,14 @@ def regression_check(shader, glsl, update, keep):
shutil.move(glsl, reference)
else:
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.
if not keep:
os.remove(glsl)