Bug 101291

Summary: FAIL: glsl/tests/optimization-test
Product: Mesa Reporter: Vedran Miletić <vedran>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact: mesa-dev
Severity: normal    
Priority: medium    
Version: 17.0   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Vedran Miletić 2017-06-03 21:41:17 UTC
$ /autogen.sh --enable-egl --enable-driglx-direct --disable-gles1 --enable-gles2 --enable-shared-glapi --enable-glx-tls --enable-dri --enable-texture-float --with-dri-drivers="" --with-egl-platforms=drm,wayland,surfaceless,x11 --with-gallium-drivers=r600,radeonsi,swrast --with-vulkan-drivers=radeon --enable-opencl --enable-opencl-icd PKG_CONFIG_PATH=/usr/local/share/pkgconfig --enable-nine --enable-gbm --enable-va --enable-vdpau --libdir=/usr/local/lib64

$ make -j4; make -j4 check

FAIL: glsl/tests/optimization-test

==============================================
   Mesa 17.0.7: src/compiler/test-suite.log
==============================================

# TOTAL: 10
# PASS:  9
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: glsl/tests/optimization-test
==================================

======       Generating tests      ======
tests/*/
====== Testing optimization passes ======
Testing ./glsl/tests/lower_jumps/lower_breaks_2.opt_test...FAIL
python2.7: can't open file '/home/vedranm/workspace/mesa/src/compiler/tests/compare_ir': [Errno 2] No such file or directory
Testing ./glsl/tests/lower_jumps/lower_returns_main_false.opt_test...FAIL
python2.7: can't open file '/home/vedranm/workspace/mesa/src/compiler/tests/compare_ir': [Errno 2] No such file or directory
Testing ./glsl/tests/lower_jumps/lower_returns_1.opt_test...FAIL
python2.7: can't open file '/home/vedranm/workspace/mesa/src/compiler/tests/compare_ir': [Errno 2] No such file or directory
Testing ./glsl/tests/lower_jumps/lower_returns_sub_false.opt_test...FAIL
python2.7: can't open file '/home/vedranm/workspace/mesa/src/compiler/tests/compare_ir': [Errno 2] No such file or directory
Testing ./glsl/tests/lower_jumps/lower_returns_main_true.opt_test...FAIL
python2.7: can't open file '/home/vedranm/workspace/mesa/src/compiler/tests/compare_ir': [Errno 2] No such file or directory
Testing ./glsl/tests/lower_jumps/lower_guarded_conditional_break.opt_test...FAIL
python2.7: can't open file '/home/vedranm/workspace/mesa/src/compiler/tests/compare_ir': [Errno 2] No such file or directory
Testing ./glsl/tests/lower_jumps/lower_returns_2.opt_test...FAIL
python2.7: can't open file '/home/vedranm/workspace/mesa/src/compiler/tests/compare_ir': [Errno 2] No such file or directory
Testing ./glsl/tests/lower_jumps/lower_returns_sub_true.opt_test...FAIL
python2.7: can't open file '/home/vedranm/workspace/mesa/src/compiler/tests/compare_ir': [Errno 2] No such file or directory
Testing ./glsl/tests/lower_jumps/lower_breaks_4.opt_test...FAIL
python2.7: can't open file '/home/vedranm/workspace/mesa/src/compiler/tests/compare_ir': [Errno 2] No such file or directory
Testing ./glsl/tests/lower_jumps/lower_breaks_3.opt_test...FAIL
python2.7: can't open file '/home/vedranm/workspace/mesa/src/compiler/tests/compare_ir': [Errno 2] No such file or directory
Testing ./glsl/tests/lower_jumps/lower_breaks_6.opt_test...FAIL
python2.7: can't open file '/home/vedranm/workspace/mesa/src/compiler/tests/compare_ir': [Errno 2] No such file or directory
Testing ./glsl/tests/lower_jumps/return_non_void_at_end_of_loop_lower_nothing.opt_test...FAIL
python2.7: can't open file '/home/vedranm/workspace/mesa/src/compiler/tests/compare_ir': [Errno 2] No such file or directory
Testing ./glsl/tests/lower_jumps/return_non_void_at_end_of_loop_lower_return.opt_test...FAIL
python2.7: can't open file '/home/vedranm/workspace/mesa/src/compiler/tests/compare_ir': [Errno 2] No such file or directory
Testing ./glsl/tests/lower_jumps/lower_returns_3.opt_test...FAIL
python2.7: can't open file '/home/vedranm/workspace/mesa/src/compiler/tests/compare_ir': [Errno 2] No such file or directory
Testing ./glsl/tests/lower_jumps/return_non_void_at_end_of_loop_lower_return_and_break.opt_test...FAIL
python2.7: can't open file '/home/vedranm/workspace/mesa/src/compiler/tests/compare_ir': [Errno 2] No such file or directory
Testing ./glsl/tests/lower_jumps/return_void_at_end_of_loop_lower_return.opt_test...FAIL
python2.7: can't open file '/home/vedranm/workspace/mesa/src/compiler/tests/compare_ir': [Errno 2] No such file or directory
Testing ./glsl/tests/lower_jumps/lower_returns_4.opt_test...FAIL
python2.7: can't open file '/home/vedranm/workspace/mesa/src/compiler/tests/compare_ir': [Errno 2] No such file or directory
Testing ./glsl/tests/lower_jumps/lower_pulled_out_jump.opt_test...FAIL
python2.7: can't open file '/home/vedranm/workspace/mesa/src/compiler/tests/compare_ir': [Errno 2] No such file or directory
Testing ./glsl/tests/lower_jumps/lower_breaks_1.opt_test...FAIL
python2.7: can't open file '/home/vedranm/workspace/mesa/src/compiler/tests/compare_ir': [Errno 2] No such file or directory
Testing ./glsl/tests/lower_jumps/return_void_at_end_of_loop_lower_nothing.opt_test...FAIL
python2.7: can't open file '/home/vedranm/workspace/mesa/src/compiler/tests/compare_ir': [Errno 2] No such file or directory
Testing ./glsl/tests/lower_jumps/return_void_at_end_of_loop_lower_return_and_break.opt_test...FAIL
python2.7: can't open file '/home/vedranm/workspace/mesa/src/compiler/tests/compare_ir': [Errno 2] No such file or directory
Testing ./glsl/tests/lower_jumps/remove_continue_at_end_of_loop.opt_test...FAIL
python2.7: can't open file '/home/vedranm/workspace/mesa/src/compiler/tests/compare_ir': [Errno 2] No such file or directory
Testing ./glsl/tests/lower_jumps/lower_breaks_5.opt_test...FAIL
python2.7: can't open file '/home/vedranm/workspace/mesa/src/compiler/tests/compare_ir': [Errno 2] No such file or directory
Testing ./glsl/tests/lower_jumps/lower_unified_returns.opt_test...FAIL
python2.7: can't open file '/home/vedranm/workspace/mesa/src/compiler/tests/compare_ir': [Errno 2] No such file or directory

0/24 tests returned correct results

FAIL glsl/tests/optimization-test (exit status: 1)
Comment 1 Eric Engestrom 2017-06-05 12:41:19 UTC
I think this was fixed in this commit:

commit 421115a72939b7dbcdc9f714d85f3e7616323a3e
Author: Emil Velikov <emil.velikov@collabora.com>
Date:   Sun Feb 26 20:28:21 2017 +0000

    glsl/tests/optimization-test: pass glsl_test as argument
    
    Rather than hardcoding the binary location (which ends up wrong in a
    number of occasions) in the python script, pass it as argument.
    
    This allows us to remove a couple of dirname/basename workarounds that
    aimed to keep this working, and succeeded in the odd occasion.
    
    Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
    Acked-by: Kenneth Graunke <kenneth@whitecape.org>
    Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>

Can you try upgrading to 17.1?
Comment 2 Emil Velikov 2017-06-05 13:28:38 UTC
I second Eric's comment. The glsl/glcpp tests were broken (sort of speak) for good part of 2 years and fixed with 17.1 onward.

The glsl/glcpp code itself did not regress and since the fixes were quite evasive they did not land in 17.0.

Vedran, please try newer mesa (17.0 is EOL) and where possible do let us know of the regressing commit.
Comment 3 Vedran Miletić 2017-06-06 12:53:36 UTC
Indeed, fixed in 17.1. Thanks.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.