Skip to content

Fix out of source launch

Michael Skorokhodov requested to merge GL/piglit:fix/source_dir_running into main

The essence of the problem

If the project is built out of source and piglit run quick or llvmpipe or all is run in the build directory, then an error occurs. This is because the metafiles are copied from PIGLIT_SOURCE_DIR/tests only when cmake --install is run, not during cmake --build.

Reproducing the issue

$ PIGLIT_BUILD_DIR="${PWD}/build/" ./piglit run all ~/output
Fatal Error: Failed to import "all", there is either something wrong with the module or it doesn't exist. Check your spelling?

How is that fixed

Fixed by copying metafiles to PIGLIT_BUILD_DIR/tests during project build.

Signed-off-by: Mykhailo Skorokhodov mykhailo.skorokhodov@globallogic.com

Merge request reports

Loading