Package: eccodes / 2.12.0-1

disable-download-tests.patch Patch series | download
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
Author: Alastair McKinstry <mckinstry@debian.org>
Description: Disable downloading grib files; already present
Last-Updated: 2018-12-07
Forwarded: not-needed

Index: eccodes-2.12.0/tests/CMakeLists.txt
===================================================================
--- eccodes-2.12.0.orig/tests/CMakeLists.txt
+++ eccodes-2.12.0/tests/CMakeLists.txt
@@ -187,8 +187,8 @@ foreach( test ${tests_data_reqd} )
                   CONDITION ENABLE_EXTRA_TESTS
                   COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/${test}.sh
                   RESOURCES asca_139.t1.ref
-                  TEST_DEPENDS eccodes_download_gribs eccodes_download_tigge_gribs
-                               eccodes_download_bufrs eccodes_download_metars eccodes_download_gts
+                  # TEST_DEPENDS eccodes_download_gribs eccodes_download_tigge_gribs
+                  # eccodes_download_bufrs eccodes_download_metars eccodes_download_gts
     )
 endforeach()
 
@@ -207,7 +207,7 @@ if( HAVE_PYTHON AND ENABLE_EXTRA_TESTS )
                           TYPE SCRIPT
                           COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/${test}.sh
                           ENVIRONMENT PYTHON=${PYTHON_EXECUTABLE} PYTHONPATH=${PROJECT_BINARY_DIR}/${ECCODES_PYTHON_DIR}
-                          TEST_DEPENDS eccodes_download_bufrs
+                          # TEST_DEPENDS eccodes_download_bufrs
         )
     endforeach()
 endif()
@@ -219,7 +219,7 @@ ecbuild_add_test( TARGET eccodes_t_lamb_
                   CONDITION ENABLE_EXTRA_TESTS
                   COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/lamb_az_eq_area.sh
                   RESOURCES lamb_az_eq_area.ref
-                  TEST_DEPENDS eccodes_download_gribs
+                  # TEST_DEPENDS eccodes_download_gribs
 )
 
 # These ones are conditional
@@ -240,28 +240,28 @@ ecbuild_add_test( TARGET eccodes_t_grib_
                   TYPE SCRIPT
                   CONDITION HAVE_NETCDF AND ENABLE_EXTRA_TESTS
                   COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/grib_to_netcdf.sh
-                  TEST_DEPENDS eccodes_download_gribs
+                  # TEST_DEPENDS eccodes_download_gribs
 )
 
 ecbuild_add_test( TARGET eccodes_t_grib_jpeg
                   TYPE SCRIPT
                   CONDITION HAVE_JPEG AND ENABLE_EXTRA_TESTS
                   COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/grib_jpeg.sh
-                  TEST_DEPENDS eccodes_download_gribs
+                  # TEST_DEPENDS eccodes_download_gribs
 )
 
 ecbuild_add_test( TARGET eccodes_t_grib_png
                   TYPE SCRIPT
                   CONDITION HAVE_PNG AND ENABLE_EXTRA_TESTS
                   COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/grib_png.sh
-                  TEST_DEPENDS eccodes_download_gribs
+                  # TEST_DEPENDS eccodes_download_gribs
 )
 
 ecbuild_add_test( TARGET eccodes_t_grib_ccsds
                   TYPE SCRIPT
                   CONDITION HAVE_AEC AND ENABLE_EXTRA_TESTS
                   COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/grib_ccsds.sh
-                  TEST_DEPENDS eccodes_download_gribs
+		  # TEST_DEPENDS eccodes_download_gribs
 )
 
 ecbuild_add_test( TARGET eccodes_t_grib_check_param_concepts
@@ -274,7 +274,7 @@ ecbuild_add_test( TARGET eccodes_t_bufr_
                   TYPE SCRIPT
                   CONDITION ENABLE_EXTRA_TESTS AND ECCODES_INSTALL_EXTRA_TOOLS
                   COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/bufr_split_by_rdbSubtype.sh
-                  TEST_DEPENDS eccodes_download_bufrs
+                  # TEST_DEPENDS eccodes_download_bufrs
 )
 
 # Performance test. Must have -DENABLE_GRIB_TIMER=ON
@@ -282,5 +282,5 @@ ecbuild_add_test( TARGET eccodes_t_grib_
                   TYPE SCRIPT
                   CONDITION ENABLE_EXTRA_TESTS AND ENABLE_GRIB_TIMER
                   COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/grib_ecc-386.sh
-                  TEST_DEPENDS eccodes_download_gribs
+                  # TEST_DEPENDS eccodes_download_gribs
 )
Index: eccodes-2.12.0/cmake/ecbuild_get_test_data.cmake
===================================================================
--- eccodes-2.12.0.orig/cmake/ecbuild_get_test_data.cmake
+++ eccodes-2.12.0/cmake/ecbuild_get_test_data.cmake
@@ -178,7 +178,7 @@ function( ecbuild_get_test_data )
 
     # download the data
 
-    _download_test_data( ${_p_NAME} ${_p_DIRNAME} )
+#    _download_test_data( ${_p_NAME} ${_p_DIRNAME} )
 
     # perform the checksum if requested
 
@@ -239,13 +239,13 @@ function( ecbuild_get_test_data )
 
     endif()
 
-    add_custom_target( ${_p_TARGET} DEPENDS ${_deps} )
+#    add_custom_target( ${_p_TARGET} DEPENDS ${_deps} )
 
-    if( _p_EXTRACT )
-      ecbuild_debug("ecbuild_get_test_data: extracting ${_p_NAME} (post-build for target ${_p_TARGET}")
-      add_custom_command( TARGET ${_p_TARGET} POST_BUILD
-                          COMMAND ${CMAKE_COMMAND} -E tar xv ${_p_NAME} )
-    endif()
+#    if( _p_EXTRACT )
+#      ecbuild_debug("ecbuild_get_test_data: extracting ${_p_NAME} (post-build for target ${_p_TARGET}")
+#      add_custom_command( TARGET ${_p_TARGET} POST_BUILD
+ #                         COMMAND ${CMAKE_COMMAND} -E tar xv ${_p_NAME} )
+ #   endif()
 
 endfunction(ecbuild_get_test_data)