Testing: add variables from cmake so tests can exclude/include data files

This commit is contained in:
Shahram Najm 2016-08-05 16:24:14 +01:00
parent 31d1171b69
commit 7db816217e
2 changed files with 9 additions and 0 deletions

View File

@ -22,6 +22,10 @@ files="
regular_latlon_surface_constant.grib2
"
if [ $HAVE_JPG -eq 1 ]; then
files="multi.grib2 v.grib2"$files
fi
# TODO: For the following the PNG packing fails with an assert!
# grib_accessor_class_data_png_packing.c: Assert(p->offset + length <= p->length)
# data/sample.grib2

View File

@ -26,3 +26,8 @@ test_dir=@PROJECT_BINARY_DIR@/tests
samp_dir="@CMAKE_BINARY_DIR@/share/@PROJECT_NAME@/samples"
ECCODES_SAMPLES_PATH=${samp_dir}
export ECCODES_SAMPLES_PATH
# Options
HAVE_JPG=@HAVE_JPG@
HAVE_PNG=@HAVE_PNG@
HAVE_AEC=@HAVE_AEC@