diff --git a/examples/C/bufr_copy_data.sh b/examples/C/bufr_copy_data.sh index 959a71411..31dd3b5c2 100755 --- a/examples/C/bufr_copy_data.sh +++ b/examples/C/bufr_copy_data.sh @@ -12,6 +12,11 @@ #Define a common label for all the tmp files label="bufr_copy_data_c" +if [ $ECCODES_ON_WINDOWS -eq 1 ]; then + echo "$0: This test is currently disabled on Windows" + exit 0 +fi + TEMP_BUFR=$label.out.bufr TEMP_TEXT=$label.out.txt REF=$label.compare.log.ref diff --git a/examples/C/include.ctest.sh.in b/examples/C/include.ctest.sh.in index a8550e75d..5dabcb29d 100644 --- a/examples/C/include.ctest.sh.in +++ b/examples/C/include.ctest.sh.in @@ -24,3 +24,5 @@ fi samp_dir="@CMAKE_BINARY_DIR@/@ECCODES_SAMPLES_SUFF@" ECCODES_SAMPLES_PATH=${samp_dir} export ECCODES_SAMPLES_PATH + +ECCODES_ON_WINDOWS=@ECCODES_ON_WINDOWS@ diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index ba6a908ee..0ef8b47f0 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -298,7 +298,7 @@ endif() ecbuild_add_test( TARGET eccodes_t_grib_to_netcdf TYPE SCRIPT - CONDITION HAVE_NETCDF AND ENABLE_EXTRA_TESTS + CONDITION HAVE_NETCDF AND ENABLE_EXTRA_TESTS AND NOT ECCODES_ON_WINDOWS COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/grib_to_netcdf.sh TEST_DEPENDS eccodes_download_gribs ) diff --git a/tests/bufr_compare.sh b/tests/bufr_compare.sh index e77367961..52859fc89 100755 --- a/tests/bufr_compare.sh +++ b/tests/bufr_compare.sh @@ -153,6 +153,11 @@ status=$? set -e [ $status -eq 1 ] +if [ $ECCODES_ON_WINDOWS -eq 1 ]; then + echo "$0: The rest of this test is currently disabled on Windows" + exit 0 +fi + #---------------------------------------------------- # ECC-656: using relative comparison (-R) with 'all' #----------------------------------------------------