Skip to content
  • Daniel Stone's avatar
    tests: Don't rely on build directory layout · e03c111e
    Daniel Stone authored and Pekka Paalanen's avatar Pekka Paalanen committed
    
    
    Rather than having a hardcoded dependency on the build-directory layout,
    use an explicit module-map environment variable, which rewrites requests
    for modules and helper/libexec binaries to specific paths.
    
    Pekka: This will help with migration to Meson where setting up the paths
    according to autotools would be painful and unnecessary.
    
    Emre: This should also help setting up the test suite after a
    cross-compile.
    
    Pekka: A caveat here is that this patch makes it slightly easier to load
    external backends by abusing the module map. External backends are
    specifically not supported in libweston.
    
    Signed-off-by: default avatarDaniel Stone <daniels@collabora.com>
    
    v2:
    
    Fixed ivi_layout-test-plugin.c:wet_module_init().
    Do not change the lookup name of ivi-layout.ivi.
    
    Improved documentation of weston_module_path_from_env() and made it cope
    with map strings that a) do not end with a semicolon, and b) have
    multiple consecutive semicolons.
    
    Let WESTON_MODULE_MAP be printed into the test l...
    e03c111e