diff --git a/.travis.yml b/.travis.yml index 84bb1357..593d472b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/reference/shaders/frag/for-loop-init.frag b/reference/shaders/frag/for-loop-init.frag index 95483d9f..98f1b8ce 100644 --- a/reference/shaders/frag/for-loop-init.frag +++ b/reference/shaders/frag/for-loop-init.frag @@ -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; diff --git a/shaders/frag/for-loop-init.frag b/shaders/frag/for-loop-init.frag index af2af7e2..0cde2676 100644 --- a/shaders/frag/for-loop-init.frag +++ b/shaders/frag/for-loop-init.frag @@ -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++) diff --git a/test_shaders.py b/test_shaders.py index 1e51aa4b..daac82a6 100755 --- a/test_shaders.py +++ b/test_shaders.py @@ -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)