/usr/share/doc/libgrib-api-dev/examples/include.ctest.sh.in is in libgrib-api-dev 1.19.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | # examples/python include file for CMake
set -ea
# If this environment variable is set, then become verbose
# so one can see why and how a test failed
if test "x$GRIB_API_TEST_VERBOSE_OUTPUT" != "x"; then
set -x
fi
proj_dir=@PROJECT_SOURCE_DIR@
data_dir=@PROJECT_BINARY_DIR@/data
# use definitions from binary dir to test if installation will be correct
def_dir="@CMAKE_BINARY_DIR@/share/@PROJECT_NAME@/definitions"
GRIB_DEFINITION_PATH="${def_dir}"
export GRIB_DEFINITION_PATH
tools_dir=@CMAKE_BINARY_DIR@/bin/
examples_dir=@CMAKE_CURRENT_BINARY_DIR@/
examples_src=@CMAKE_CURRENT_SOURCE_DIR@/
# use samples from binary dir to test if installation will be correct
samp_dir="@CMAKE_BINARY_DIR@/share/@PROJECT_NAME@/samples"
GRIB_SAMPLES_PATH=${samp_dir}
export GRIB_SAMPLES_PATH
PYTHONPATH=$PYTHONPATH:$proj_dir/python:@PROJECT_BINARY_DIR@/python
export PYTHONPATH
|