• Chad Versace's avatar
    self-tests: Test that installed piglit script sets sys.path correctly · f804732d
    Chad Versace authored
    The piglit script today requires that CMAKE_INSTALL_LIBDIR be "lib".  If
    CMAKE_INSTALL_LIBDIR is anything else, such as "lib64" or "lib32", the
    installed script dies on an import exception because it fails to find
    Piglit's framework module.
    
    On 64-bit Chrome OS, Gentoo, and Fedora systems, "lib64" is the default
    value of CMAKE_INSTALL_LIBDIR.
    
    This patch adds the test
        self-tests/test-installed-piglit-script-imports-correct-framework-module
    which detects this problem. It tests the following combinations of CMake
    configuration options:
    
        CMAKE_INSTALL_LIBDIR in ["lib64", "lib32", "lib"]
        PIGLIT_INSTALL_VERSION in [None, "1234"]
    Signed-off-by: 's avatarChad Versace <chad.versace@linux.intel.com>
    f804732d
test-installed-piglit-script-imports-correct-framework-module 5.25 KB