Fix out of source launch
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