Improve debuggability of Travis CI when things go wrong.
This commit is contained in:
Родитель
d11b8aa3ef
Коммит
45c797d54c
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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++)
|
||||
|
|
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче