2014-03-31 12:57:06 +00:00
|
|
|
# tests/CMakeLists.txt
|
|
|
|
#
|
|
|
|
# Configure the file which all CMake tests will include
|
|
|
|
configure_file( include.ctest.sh.in include.ctest.sh @ONLY )
|
|
|
|
|
2015-07-02 12:02:54 +00:00
|
|
|
execute_process( COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/utils.sh ${CMAKE_CURRENT_BINARY_DIR} )
|
|
|
|
execute_process( COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/number_compare.pl ${CMAKE_CURRENT_BINARY_DIR} )
|
|
|
|
|
2014-03-31 12:57:06 +00:00
|
|
|
# Build the executables used by test scripts
|
|
|
|
################################################
|
2022-07-29 08:37:20 +00:00
|
|
|
list(APPEND test_c_bins
|
2021-02-04 18:12:17 +00:00
|
|
|
list_codetable_flagtable_keys
|
2024-01-19 11:24:22 +00:00
|
|
|
wmo_read_bufr_from_file
|
2024-01-19 13:25:00 +00:00
|
|
|
wmo_read_gts_from_file
|
2024-01-19 13:53:25 +00:00
|
|
|
wmo_read_any_from_file
|
2024-01-29 16:21:44 +00:00
|
|
|
wmo_read_any_from_stream
|
2020-07-31 14:07:35 +00:00
|
|
|
grib_bpv_limit
|
|
|
|
grib_double_cmp
|
|
|
|
read_any
|
|
|
|
julian
|
2024-03-06 16:03:07 +00:00
|
|
|
grib_update_sections_lengths
|
2020-07-31 14:07:35 +00:00
|
|
|
grib_indexing
|
2022-02-25 18:15:44 +00:00
|
|
|
grib_fieldset
|
2020-07-31 14:07:35 +00:00
|
|
|
grib_multi_from_message
|
2023-12-19 15:16:37 +00:00
|
|
|
grib_clone_headers_only
|
2020-07-31 14:07:35 +00:00
|
|
|
grib_read_index
|
2024-01-08 18:20:27 +00:00
|
|
|
grib_set_large_message_fail
|
2020-07-31 14:07:35 +00:00
|
|
|
unit_tests
|
|
|
|
bufr_keys_iter
|
2022-06-17 17:58:21 +00:00
|
|
|
grib_keys_iter
|
2023-08-24 20:16:53 +00:00
|
|
|
grib_keys_iter_skip
|
2022-06-26 15:56:25 +00:00
|
|
|
grib_geo_iter
|
2020-07-31 14:07:35 +00:00
|
|
|
grib_nearest_test
|
|
|
|
grib_util_set_spec
|
2024-02-17 19:30:26 +00:00
|
|
|
grib_util_set_spec2
|
2021-02-10 16:03:11 +00:00
|
|
|
grib_check_param_concepts
|
2020-07-31 14:07:35 +00:00
|
|
|
grib_local_MeteoFrance
|
|
|
|
grib_2nd_order_numValues
|
|
|
|
grib_optimize_scaling
|
|
|
|
grib_optimize_scaling_sh
|
2021-11-23 16:51:36 +00:00
|
|
|
grib_set_force
|
2023-08-30 11:02:52 +00:00
|
|
|
grib_run_length_packing
|
2023-06-28 16:30:32 +00:00
|
|
|
grib_partial_message
|
2020-07-31 14:07:35 +00:00
|
|
|
grib_ecc-386
|
2022-12-30 15:53:10 +00:00
|
|
|
grib_ecc-1467
|
2023-01-30 10:53:14 +00:00
|
|
|
grib_ecc-1431
|
2023-06-12 10:35:32 +00:00
|
|
|
grib_ecc-1433
|
2024-02-27 12:19:01 +00:00
|
|
|
grib_ecc-1764
|
2020-07-31 14:07:35 +00:00
|
|
|
bufr_ecc-517
|
2021-10-05 22:02:36 +00:00
|
|
|
bufr_ecc-1288
|
2020-07-31 14:07:35 +00:00
|
|
|
bufr_get_element
|
|
|
|
bufr_extract_headers
|
|
|
|
bufr_check_descriptors
|
2023-06-14 18:49:23 +00:00
|
|
|
bufr_coordinate_descriptors
|
2022-06-16 10:07:06 +00:00
|
|
|
codes_new_from_samples
|
2023-08-12 12:39:44 +00:00
|
|
|
codes_dump_action_tree
|
2022-07-12 15:03:19 +00:00
|
|
|
codes_set_samples_path
|
2023-07-24 12:14:40 +00:00
|
|
|
codes_compare_keys
|
2023-08-13 12:52:07 +00:00
|
|
|
codes_dump_content
|
2023-12-02 16:34:56 +00:00
|
|
|
codes_codetable
|
2024-01-30 15:57:40 +00:00
|
|
|
codes_get_string
|
2020-07-31 14:07:35 +00:00
|
|
|
grib_sh_ieee64
|
2020-11-19 23:04:08 +00:00
|
|
|
grib_set_bytes
|
2023-02-20 16:51:21 +00:00
|
|
|
grib_copy_message
|
2021-01-21 20:07:02 +00:00
|
|
|
grib_packing_order
|
2023-08-21 11:29:19 +00:00
|
|
|
grib_unpack_subarray
|
2020-07-31 14:07:35 +00:00
|
|
|
grib_sh_imag
|
2023-06-16 21:33:14 +00:00
|
|
|
grib_spectral
|
2020-07-31 14:07:35 +00:00
|
|
|
grib_lam_bf
|
|
|
|
grib_lam_gp)
|
2014-06-18 16:14:01 +00:00
|
|
|
|
2023-01-06 12:27:07 +00:00
|
|
|
|
2022-07-29 08:37:20 +00:00
|
|
|
foreach( tool ${test_c_bins} )
|
2014-03-31 12:57:06 +00:00
|
|
|
# here we use the fact that each tool has only one C file that matches its name
|
|
|
|
ecbuild_add_executable( TARGET ${tool}
|
|
|
|
NOINSTALL
|
2023-01-30 12:01:31 +00:00
|
|
|
SOURCES ${tool}.cc
|
2020-03-30 13:07:31 +00:00
|
|
|
LIBS eccodes )
|
2014-03-31 12:57:06 +00:00
|
|
|
endforeach()
|
|
|
|
|
2022-07-29 08:37:20 +00:00
|
|
|
|
2015-01-24 19:00:15 +00:00
|
|
|
# Now add each test (shell scripts)
|
2014-03-31 12:57:06 +00:00
|
|
|
#################################################
|
2020-08-07 21:36:59 +00:00
|
|
|
if( HAVE_BUILD_TOOLS )
|
2016-07-19 16:05:25 +00:00
|
|
|
|
2020-08-07 21:36:59 +00:00
|
|
|
# These tests do not require any data downloads
|
2022-07-23 16:17:27 +00:00
|
|
|
# and are generally quick
|
|
|
|
list(APPEND tests_basic
|
2023-06-24 21:03:50 +00:00
|
|
|
codes_info
|
2023-08-06 14:29:07 +00:00
|
|
|
codes_deprecated
|
2020-08-07 21:36:59 +00:00
|
|
|
unit_tests
|
|
|
|
julian
|
|
|
|
grib_dump_samples
|
|
|
|
bufr_dump_samples
|
|
|
|
bufr_check_descriptors
|
|
|
|
definitions
|
2020-12-21 12:13:48 +00:00
|
|
|
grib2_version
|
2023-09-04 12:01:01 +00:00
|
|
|
grib_accessors
|
2020-08-07 21:36:59 +00:00
|
|
|
grib_calendar
|
|
|
|
grib_md5
|
2020-11-17 18:07:45 +00:00
|
|
|
grib_cfNames
|
2021-01-21 21:18:59 +00:00
|
|
|
grib_packing_order
|
2020-08-07 21:36:59 +00:00
|
|
|
filter_substr
|
2024-08-01 14:05:07 +00:00
|
|
|
filter_contains
|
2024-04-17 12:12:28 +00:00
|
|
|
filter_size
|
2024-04-21 15:21:35 +00:00
|
|
|
filter_is_one_of
|
2024-01-10 14:43:23 +00:00
|
|
|
filter_is_in_list
|
2023-12-27 15:09:34 +00:00
|
|
|
filter_transient_darray
|
2023-10-09 10:12:44 +00:00
|
|
|
grib_ecpoint
|
2022-07-17 10:42:16 +00:00
|
|
|
grib_s2s
|
2022-04-06 10:37:26 +00:00
|
|
|
grib_fire
|
2023-03-02 14:28:47 +00:00
|
|
|
grib_generalised_tiles
|
2023-03-06 16:34:59 +00:00
|
|
|
# grib_true_imagery
|
2023-05-11 12:45:05 +00:00
|
|
|
grib2_wave_spectra
|
2021-12-16 12:21:53 +00:00
|
|
|
grib_suppressed
|
2024-10-31 13:46:36 +00:00
|
|
|
grib_destine_mars_keys
|
2020-08-07 21:36:59 +00:00
|
|
|
grib_2nd_order_numValues
|
|
|
|
grib_ecc-136
|
2023-07-25 10:43:50 +00:00
|
|
|
grib_ecc-530
|
2021-05-17 16:07:08 +00:00
|
|
|
grib_ecc-922
|
2020-09-29 13:36:43 +00:00
|
|
|
grib_ecc-966
|
2020-08-07 21:36:59 +00:00
|
|
|
grib_ecc-967
|
2020-09-29 13:36:43 +00:00
|
|
|
grib_ecc-1150
|
2020-08-07 21:36:59 +00:00
|
|
|
grib_ecc-1053
|
2020-09-29 13:36:43 +00:00
|
|
|
grib_ecc-1065
|
2020-11-23 16:51:19 +00:00
|
|
|
grib_ecc-1167
|
2020-11-26 16:13:53 +00:00
|
|
|
grib_ecc-1170
|
2021-01-30 00:15:24 +00:00
|
|
|
grib_ecc-1195
|
2021-03-10 12:03:20 +00:00
|
|
|
grib_ecc-1212
|
2021-04-08 15:40:35 +00:00
|
|
|
grib_ecc-1230
|
2021-06-22 14:14:07 +00:00
|
|
|
grib_ecc-1258
|
2021-06-27 12:30:24 +00:00
|
|
|
grib_ecc-1260
|
2021-07-09 16:14:32 +00:00
|
|
|
grib_ecc-1261
|
2021-08-05 20:05:17 +00:00
|
|
|
grib_ecc-1271
|
2021-12-01 14:56:51 +00:00
|
|
|
grib_ecc-1315
|
2021-12-17 17:17:08 +00:00
|
|
|
grib_ecc-1322
|
2021-12-15 17:41:09 +00:00
|
|
|
grib_ecc-1319
|
2022-06-16 19:16:00 +00:00
|
|
|
grib_ecc-1406
|
2024-01-16 15:38:34 +00:00
|
|
|
grib_ecc-1440
|
2023-04-02 13:53:33 +00:00
|
|
|
grib_ecc-1560
|
2023-04-21 10:26:35 +00:00
|
|
|
grib_ecc-1571
|
2023-08-02 13:58:23 +00:00
|
|
|
grib_ecc-1654
|
2023-10-26 14:42:51 +00:00
|
|
|
grib_ecc-1671
|
2023-10-27 11:07:50 +00:00
|
|
|
grib_ecc-1708
|
2024-03-11 15:29:48 +00:00
|
|
|
grib_ecc-1766
|
2024-05-15 10:56:08 +00:00
|
|
|
grib_ecc-1829
|
2021-06-08 11:50:09 +00:00
|
|
|
bufr_ecc-1028
|
2021-01-30 00:15:24 +00:00
|
|
|
bufr_ecc-1195
|
2021-06-24 12:59:29 +00:00
|
|
|
bufr_ecc-1259
|
2021-10-12 20:03:38 +00:00
|
|
|
bufr_ecc-1290
|
2021-11-16 15:18:46 +00:00
|
|
|
bufr_ecc-1304
|
2022-02-10 17:18:23 +00:00
|
|
|
bufr_ecc-1347
|
2022-06-01 15:02:34 +00:00
|
|
|
bufr_ecc-1395
|
2024-06-06 14:22:06 +00:00
|
|
|
bufr_ecc-1840
|
2020-08-07 21:36:59 +00:00
|
|
|
bufr_json_samples
|
|
|
|
bufr_ecc-359
|
|
|
|
bufr_ecc-517
|
|
|
|
grib_efas
|
|
|
|
grib_sh_imag
|
2023-06-16 21:33:14 +00:00
|
|
|
grib_spectral
|
2020-12-18 15:35:48 +00:00
|
|
|
grib_levtype
|
2022-01-28 16:40:35 +00:00
|
|
|
grib_typeOfLevel
|
2024-08-13 19:03:08 +00:00
|
|
|
grib2_product_templates
|
2020-08-07 21:36:59 +00:00
|
|
|
grib_grid_unstructured
|
|
|
|
grib_grid_lambert_conformal
|
|
|
|
grib_grid_polar_stereographic
|
2023-08-31 10:28:47 +00:00
|
|
|
grib_grid_healpix
|
2021-08-14 17:14:13 +00:00
|
|
|
grib_g1day_of_the_year_date
|
2024-06-14 10:53:35 +00:00
|
|
|
grib2_paramid_chemid_split
|
2024-01-01 21:14:56 +00:00
|
|
|
)
|
2015-09-25 16:09:27 +00:00
|
|
|
|
2022-07-23 16:17:27 +00:00
|
|
|
# These tests require data downloads
|
|
|
|
# and/or take much longer
|
|
|
|
list(APPEND tests_extra
|
2020-08-07 21:36:59 +00:00
|
|
|
grib_data_quality_checks
|
2024-12-13 18:21:02 +00:00
|
|
|
grib_check_message_validity
|
2024-03-06 16:03:07 +00:00
|
|
|
grib_update_sections_lengths
|
2024-03-01 14:57:25 +00:00
|
|
|
grib_units_bias_factor
|
2024-01-08 18:20:27 +00:00
|
|
|
grib_set_large_message_fail
|
2024-01-01 21:14:56 +00:00
|
|
|
grib_g1monthlydate
|
|
|
|
grib_g1fcperiod
|
2020-08-07 21:36:59 +00:00
|
|
|
grib_bpv_limit
|
|
|
|
grib_complex
|
|
|
|
grib_double_cmp
|
2024-11-26 13:17:30 +00:00
|
|
|
grib_element
|
2020-08-07 21:36:59 +00:00
|
|
|
grib_change_packing
|
2023-08-05 11:38:06 +00:00
|
|
|
grib_run_length_packing
|
2021-06-25 15:01:56 +00:00
|
|
|
grib_grid_space_view
|
2023-06-28 16:30:32 +00:00
|
|
|
grib_partial_message
|
2023-12-01 12:52:05 +00:00
|
|
|
grib_true_imagery
|
2023-06-29 11:55:33 +00:00
|
|
|
grib_headers_only
|
2024-08-30 14:26:40 +00:00
|
|
|
grib_uerra
|
2023-08-21 11:29:19 +00:00
|
|
|
grib_unpack_subarray
|
2023-06-19 16:50:19 +00:00
|
|
|
grib_count
|
2023-12-19 15:16:37 +00:00
|
|
|
grib_clone_headers_only
|
2024-06-14 13:10:29 +00:00
|
|
|
grib2_paramType
|
2024-07-31 16:27:13 +00:00
|
|
|
grib2_datasetForLocal
|
2024-08-30 14:26:40 +00:00
|
|
|
grib_ifsParam
|
2024-01-19 11:24:22 +00:00
|
|
|
wmo_read_bufr_from_file
|
2024-01-19 13:25:00 +00:00
|
|
|
wmo_read_gts_from_file
|
2024-01-19 13:53:25 +00:00
|
|
|
wmo_read_any_from_file
|
2024-01-29 16:21:44 +00:00
|
|
|
wmo_read_any_from_stream
|
2022-07-23 16:17:27 +00:00
|
|
|
bufr_templates
|
2024-01-01 21:14:56 +00:00
|
|
|
bufr_rdbSubTypes
|
2020-08-07 21:36:59 +00:00
|
|
|
bufr_dump_data
|
|
|
|
bufr_dump_descriptors
|
2023-06-14 20:23:10 +00:00
|
|
|
bufr_coordinate_descriptors
|
2020-08-07 21:36:59 +00:00
|
|
|
bufr_dump_subset
|
|
|
|
bufr_dump_decode_filter
|
|
|
|
bufr_dump_encode_filter
|
|
|
|
bufrdc_desc_ref
|
|
|
|
bufrdc_ref
|
|
|
|
bufr_compare
|
|
|
|
bufr_copy
|
|
|
|
bufr_count
|
|
|
|
bufr_get
|
2023-07-21 16:15:22 +00:00
|
|
|
bufr_operators
|
2021-03-13 15:45:11 +00:00
|
|
|
bufr_filter_misc
|
2023-12-25 14:46:39 +00:00
|
|
|
bufr_filter_fail
|
2021-03-12 12:56:28 +00:00
|
|
|
bufr_filter_extract_subsets
|
2020-08-07 21:36:59 +00:00
|
|
|
bufr_filter_extract_datetime
|
|
|
|
bufr_filter_extract_area
|
2021-03-12 20:18:05 +00:00
|
|
|
bufr_filter_unpack_pack
|
2022-01-25 16:51:37 +00:00
|
|
|
bufr_filter_skipExtraKeyAttributes
|
2021-10-12 11:18:37 +00:00
|
|
|
bufr_indexing
|
2020-08-07 21:36:59 +00:00
|
|
|
bufr_json_data
|
|
|
|
bufr_ls
|
|
|
|
bufr_ls_json
|
|
|
|
bufr_change_edition
|
|
|
|
bufr_keys_iter
|
2022-06-17 17:58:21 +00:00
|
|
|
grib_keys_iter
|
2023-08-24 20:16:53 +00:00
|
|
|
grib_keys_iter_skip
|
2022-06-26 15:56:25 +00:00
|
|
|
grib_geo_iter
|
2024-05-01 13:20:26 +00:00
|
|
|
grib_to_json
|
|
|
|
grib_to_ppm
|
2024-05-01 14:50:18 +00:00
|
|
|
grib_list_keys
|
2024-05-01 13:20:26 +00:00
|
|
|
grib_histogram
|
2020-08-07 21:36:59 +00:00
|
|
|
bufr_get_element
|
|
|
|
bufr_wmo_tables
|
|
|
|
bufr_extract_headers
|
2020-11-30 21:08:16 +00:00
|
|
|
extract_offsets
|
2023-07-21 14:56:25 +00:00
|
|
|
bufr_ecc-147
|
|
|
|
bufr_ecc-389
|
2020-08-07 21:36:59 +00:00
|
|
|
bufr_ecc-673
|
|
|
|
bufr_ecc-428
|
|
|
|
bufr_ecc-286
|
|
|
|
bufr_ecc-288
|
|
|
|
bufr_ecc-313
|
|
|
|
bufr_ecc-616
|
2022-04-25 15:45:17 +00:00
|
|
|
bufr_ecc-680
|
2020-08-07 21:36:59 +00:00
|
|
|
bufr_ecc-686
|
|
|
|
bufr_ecc-690
|
|
|
|
bufr_ecc-379
|
|
|
|
bufr_ecc-393
|
|
|
|
bufr_ecc-433
|
|
|
|
bufr_ecc-750
|
|
|
|
bufr_ecc-765
|
|
|
|
bufr_ecc-875
|
|
|
|
bufr_ecc-887
|
2020-12-24 21:09:00 +00:00
|
|
|
bufr_ecc-1187
|
2021-11-16 16:46:41 +00:00
|
|
|
bufr_ecc-1305
|
2022-11-16 16:13:30 +00:00
|
|
|
bufr_ecc-1476
|
2023-07-03 20:28:34 +00:00
|
|
|
bufr_ecc-1623
|
2024-03-13 17:21:00 +00:00
|
|
|
bufr_ecc-1785
|
2024-11-13 18:41:43 +00:00
|
|
|
bufr_ecc-1958
|
2024-11-09 11:36:01 +00:00
|
|
|
bufr_ecc-1938
|
2024-11-26 16:38:47 +00:00
|
|
|
grib_488
|
2020-08-07 21:36:59 +00:00
|
|
|
grib_ecc-490
|
|
|
|
grib_ecc-756
|
2020-10-05 14:32:01 +00:00
|
|
|
grib_ecc-806
|
2020-08-07 21:36:59 +00:00
|
|
|
grib_ecc-873
|
|
|
|
grib_ecc-600
|
|
|
|
grib_ecc-923
|
|
|
|
grib_ecc-979
|
|
|
|
grib_ecc-984
|
|
|
|
grib_ecc-1000
|
|
|
|
grib_ecc-1001
|
|
|
|
grib_ecc-1030
|
2024-02-14 12:27:27 +00:00
|
|
|
grib_ecc-1364
|
2022-06-06 15:48:51 +00:00
|
|
|
grib_ecc-1397
|
2022-08-11 12:57:25 +00:00
|
|
|
grib_ecc-1425
|
2022-12-30 15:53:10 +00:00
|
|
|
grib_ecc-1467
|
2024-02-27 12:19:01 +00:00
|
|
|
grib_ecc-1764
|
2024-04-03 15:43:50 +00:00
|
|
|
grib_ecc-1792
|
2024-09-27 11:32:04 +00:00
|
|
|
grib_ecc-1806
|
2024-10-30 12:51:36 +00:00
|
|
|
#grib_ecc-1898
|
2024-08-19 17:06:49 +00:00
|
|
|
grib_ecc-1907
|
2024-10-15 16:54:45 +00:00
|
|
|
grib_ecc-1941
|
2024-10-16 14:59:24 +00:00
|
|
|
grib_ecc-1942
|
2024-07-16 10:54:39 +00:00
|
|
|
grib_modelName
|
2023-12-03 12:28:41 +00:00
|
|
|
grib_sub_hourly
|
2020-11-19 23:04:08 +00:00
|
|
|
grib_set_bytes
|
2021-11-23 16:51:36 +00:00
|
|
|
grib_set_force
|
2020-08-07 21:36:59 +00:00
|
|
|
bufr_ecc-556
|
2024-10-05 19:18:01 +00:00
|
|
|
codes_assert
|
2023-10-03 15:20:52 +00:00
|
|
|
codes_ecc-1698
|
2024-10-04 17:01:16 +00:00
|
|
|
codes_ecc-1929
|
2024-01-30 15:57:40 +00:00
|
|
|
codes_get_string
|
2023-12-02 16:34:56 +00:00
|
|
|
codes_codetable
|
2020-08-07 21:36:59 +00:00
|
|
|
gts_get
|
|
|
|
gts_ls
|
|
|
|
gts_count
|
|
|
|
gts_compare
|
2024-01-03 16:59:58 +00:00
|
|
|
gts_dump
|
2022-07-23 16:17:27 +00:00
|
|
|
wrap
|
2024-01-07 13:22:05 +00:00
|
|
|
hdf5
|
2023-08-26 14:17:33 +00:00
|
|
|
taf
|
2022-07-23 16:17:27 +00:00
|
|
|
pseudo_diag
|
2020-08-07 21:36:59 +00:00
|
|
|
metar_ls
|
2023-12-23 18:23:42 +00:00
|
|
|
metar_filter
|
2020-08-07 21:36:59 +00:00
|
|
|
metar_get
|
|
|
|
metar_dump
|
|
|
|
metar_compare
|
|
|
|
bufr_set
|
2022-02-05 22:11:26 +00:00
|
|
|
grib_ieee
|
2023-08-04 13:23:39 +00:00
|
|
|
grib1_gds_not_present
|
2020-08-07 21:36:59 +00:00
|
|
|
grib_sh_ieee64
|
|
|
|
grib_optimize_scaling
|
|
|
|
grib_optimize_scaling_sh
|
|
|
|
grib_lam_bf
|
|
|
|
grib_lam_gp
|
|
|
|
grib1to2
|
|
|
|
grib2to1
|
|
|
|
grib1to3
|
|
|
|
grib2to3
|
2020-11-21 13:01:54 +00:00
|
|
|
grib2_templates
|
2021-03-17 21:23:41 +00:00
|
|
|
grib2_chemicals_aerosols
|
2020-08-07 21:36:59 +00:00
|
|
|
grib3_templates
|
2020-12-18 16:51:47 +00:00
|
|
|
grib_bad
|
2020-08-07 21:36:59 +00:00
|
|
|
grib_ls
|
|
|
|
grib_ls_json
|
|
|
|
grib_filter
|
2024-03-01 14:07:30 +00:00
|
|
|
grib_filter_fail
|
2020-08-07 21:36:59 +00:00
|
|
|
grib_multi
|
|
|
|
grib_nearest_test
|
|
|
|
pseudo_budg
|
|
|
|
grib_gridType
|
2022-02-25 18:15:44 +00:00
|
|
|
grib_fieldset
|
2020-08-07 21:36:59 +00:00
|
|
|
grib_octahedral
|
|
|
|
grib_grid_mercator
|
|
|
|
grib_global
|
|
|
|
grib_concept
|
2023-02-20 16:51:21 +00:00
|
|
|
grib_copy_message
|
2020-08-07 21:36:59 +00:00
|
|
|
grib_decimalPrecision
|
|
|
|
grib_bitsPerValue
|
|
|
|
grib_get_fail
|
|
|
|
grib_missing
|
2024-07-25 15:12:19 +00:00
|
|
|
grib_local_ECMWF
|
2020-08-07 21:36:59 +00:00
|
|
|
grib_step
|
|
|
|
grib_set
|
2023-12-20 12:34:55 +00:00
|
|
|
grib_set_fail
|
2020-08-07 21:36:59 +00:00
|
|
|
grib_iterator
|
|
|
|
grib_proj_string
|
|
|
|
grib_compare
|
|
|
|
grib_copy
|
|
|
|
grib_level
|
|
|
|
grib_indexing
|
|
|
|
grib_bitmap
|
2023-12-27 16:07:01 +00:00
|
|
|
grib_secondary_bitmap
|
2020-08-07 21:36:59 +00:00
|
|
|
grib_list
|
|
|
|
grib_second_order
|
|
|
|
grib_multi_from_message
|
|
|
|
grib_change_scanning
|
|
|
|
grib_statistics
|
|
|
|
read_any
|
2022-06-16 10:07:06 +00:00
|
|
|
codes_new_from_samples
|
2023-08-12 12:39:44 +00:00
|
|
|
codes_dump_action_tree
|
2022-07-12 15:03:19 +00:00
|
|
|
codes_set_samples_path
|
2023-07-24 13:26:04 +00:00
|
|
|
codes_compare_keys
|
2023-08-13 12:52:07 +00:00
|
|
|
codes_dump_content
|
2023-08-14 10:52:17 +00:00
|
|
|
codes_to_double
|
2020-08-07 21:36:59 +00:00
|
|
|
grib_dump
|
|
|
|
grib_dump_debug
|
|
|
|
grib_dump_json
|
|
|
|
grib_local_MeteoFrance
|
2021-10-28 17:16:15 +00:00
|
|
|
grib_local_NCEP
|
2020-08-07 21:36:59 +00:00
|
|
|
grib_neg_fctime
|
|
|
|
codes_split_file
|
2023-07-22 20:58:35 +00:00
|
|
|
grib_mars_keys1
|
|
|
|
grib_mars_keys2)
|
2015-03-12 18:21:52 +00:00
|
|
|
|
2023-01-30 10:53:14 +00:00
|
|
|
if( HAVE_AEC AND ENABLE_EXTRA_TESTS )
|
|
|
|
list(APPEND tests_extra grib_ecc-1431)
|
2023-06-12 10:35:32 +00:00
|
|
|
list(APPEND tests_extra grib_ecc-1433)
|
2023-01-30 10:53:14 +00:00
|
|
|
endif()
|
2020-08-07 21:36:59 +00:00
|
|
|
if( HAVE_FORTRAN AND ENABLE_EXTRA_TESTS )
|
2022-07-23 16:17:27 +00:00
|
|
|
list(APPEND tests_extra bufr_dump_encode_fortran)
|
|
|
|
list(APPEND tests_extra bufr_dump_decode_fortran)
|
2020-08-07 21:36:59 +00:00
|
|
|
endif()
|
|
|
|
if( ENABLE_EXTRA_TESTS )
|
2022-07-23 16:17:27 +00:00
|
|
|
list(APPEND tests_extra grib_util_set_spec)
|
2024-02-17 19:30:26 +00:00
|
|
|
list(APPEND tests_extra grib_util_set_spec2)
|
2022-07-23 16:17:27 +00:00
|
|
|
list(APPEND tests_extra grib_padding)
|
|
|
|
list(APPEND tests_extra grib_tigge_conversions1)
|
|
|
|
list(APPEND tests_extra grib_tigge_conversions2)
|
|
|
|
list(APPEND tests_extra bufr_dump_encode_C)
|
|
|
|
list(APPEND tests_extra bufr_dump_decode_C)
|
2023-08-14 11:45:52 +00:00
|
|
|
list(APPEND tests_extra bufr_dump_encode_python)
|
|
|
|
list(APPEND tests_extra bufr_dump_decode_python)
|
2022-07-23 16:17:27 +00:00
|
|
|
list(APPEND tests_extra list_codetable_flagtable_keys)
|
2020-08-07 21:36:59 +00:00
|
|
|
endif()
|
2014-03-31 12:57:06 +00:00
|
|
|
|
2020-08-07 21:36:59 +00:00
|
|
|
# These tests do not require any data downloads
|
2022-07-23 16:17:27 +00:00
|
|
|
foreach( test ${tests_basic} )
|
2020-08-07 21:36:59 +00:00
|
|
|
ecbuild_add_test( TARGET eccodes_t_${test}
|
|
|
|
TYPE SCRIPT
|
|
|
|
LABELS "sanity"
|
|
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/${test}.sh )
|
|
|
|
endforeach()
|
|
|
|
ecbuild_add_test( TARGET eccodes_t_grib_check_gaussian_grids
|
|
|
|
TYPE SCRIPT
|
|
|
|
CONDITION ECCODES_INSTALL_EXTRA_TOOLS
|
|
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/grib_check_gaussian_grids.sh )
|
2024-01-07 16:52:57 +00:00
|
|
|
ecbuild_add_test( TARGET eccodes_t_grib_repair
|
|
|
|
TYPE SCRIPT
|
|
|
|
CONDITION ECCODES_INSTALL_EXTRA_TOOLS AND ENABLE_EXTRA_TESTS
|
2024-04-10 12:18:48 +00:00
|
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/grib_repair.sh
|
|
|
|
TEST_DEPENDS eccodes_download_gribs )
|
2016-07-29 16:30:07 +00:00
|
|
|
|
|
|
|
|
2020-08-07 21:36:59 +00:00
|
|
|
# Note: making the test dependent on the grib files (with DEPENDS)
|
|
|
|
# means they will be downloaded at "make" time
|
|
|
|
# rather than when you do "ctest". Use TEST_DEPENDS instead
|
2022-07-23 16:17:27 +00:00
|
|
|
foreach( test ${tests_extra} )
|
2016-09-14 10:54:57 +00:00
|
|
|
ecbuild_add_test( TARGET eccodes_t_${test}
|
2020-08-07 21:36:59 +00:00
|
|
|
TYPE SCRIPT
|
|
|
|
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
|
2023-02-26 15:07:26 +00:00
|
|
|
eccodes_download_bufrs eccodes_download_bufr_refs
|
|
|
|
eccodes_download_metars eccodes_download_gts )
|
2016-09-14 10:54:57 +00:00
|
|
|
endforeach()
|
2016-08-02 10:43:42 +00:00
|
|
|
|
2020-08-07 21:36:59 +00:00
|
|
|
if( HAVE_FORTRAN AND ENABLE_EXTRA_TESTS )
|
|
|
|
set_tests_properties( eccodes_t_bufr_dump_encode_fortran PROPERTIES TIMEOUT 2500 )
|
|
|
|
endif()
|
|
|
|
if( ENABLE_EXTRA_TESTS )
|
|
|
|
set_tests_properties( eccodes_t_bufr_dump_encode_C PROPERTIES TIMEOUT 2500 )
|
|
|
|
endif()
|
2014-03-31 12:57:06 +00:00
|
|
|
|
2019-12-11 12:55:32 +00:00
|
|
|
|
2020-08-07 21:36:59 +00:00
|
|
|
###########################################
|
|
|
|
# Note: the reference file is in the tests dir not data dir!
|
|
|
|
ecbuild_add_test( TARGET eccodes_t_grib_grid_lamb_az_eq_area
|
2017-09-01 14:47:21 +00:00
|
|
|
TYPE SCRIPT
|
2020-08-07 21:36:59 +00:00
|
|
|
CONDITION ENABLE_EXTRA_TESTS
|
|
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/grib_grid_lamb_az_eq_area.sh
|
|
|
|
RESOURCES grib_lamb_az_eq_area.ref
|
|
|
|
TEST_DEPENDS eccodes_download_gribs )
|
2018-05-08 13:11:01 +00:00
|
|
|
|
2020-08-07 21:36:59 +00:00
|
|
|
# These ones are conditional
|
|
|
|
###########################################
|
|
|
|
ecbuild_add_test( TARGET eccodes_t_tools_data_from_stdin
|
|
|
|
TYPE SCRIPT
|
|
|
|
CONDITION NOT ECCODES_ON_WINDOWS AND ENABLE_EXTRA_TESTS
|
|
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/tools_data_from_stdin.sh
|
|
|
|
TEST_DEPENDS eccodes_download_bufrs )
|
|
|
|
|
|
|
|
ecbuild_add_test( TARGET eccodes_t_bufr_ecc-197
|
|
|
|
TYPE SCRIPT
|
|
|
|
CONDITION NOT ECCODES_ON_WINDOWS AND ENABLE_EXTRA_TESTS
|
|
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/bufr_ecc-197.sh
|
|
|
|
TEST_DEPENDS eccodes_download_bufrs )
|
2021-10-05 22:02:36 +00:00
|
|
|
ecbuild_add_test( TARGET eccodes_t_bufr_ecc-1288
|
|
|
|
TYPE SCRIPT
|
|
|
|
CONDITION NOT ECCODES_ON_WINDOWS AND ENABLE_EXTRA_TESTS
|
|
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/bufr_ecc-1288.sh
|
2023-02-26 15:07:26 +00:00
|
|
|
TEST_DEPENDS eccodes_download_bufrs eccodes_download_bufr_refs )
|
2021-10-05 22:02:36 +00:00
|
|
|
|
2020-08-07 21:36:59 +00:00
|
|
|
|
|
|
|
if( ENABLE_EXTRA_TESTS AND HAVE_ECCODES_THREADS )
|
|
|
|
ecbuild_add_executable( TARGET grib_encode_pthreads
|
2018-05-08 16:11:45 +00:00
|
|
|
NOINSTALL
|
2023-01-30 12:01:31 +00:00
|
|
|
SOURCES grib_encode_pthreads.cc
|
2020-08-19 16:06:56 +00:00
|
|
|
LIBS eccodes ${CMAKE_THREAD_LIBS_INIT} )
|
2020-08-07 21:36:59 +00:00
|
|
|
ecbuild_add_test( TARGET eccodes_t_grib_encode_pthreads
|
|
|
|
TYPE SCRIPT
|
|
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/grib_encode_pthreads.sh )
|
|
|
|
|
2024-02-19 12:30:36 +00:00
|
|
|
foreach( test grib_encode_pthreads2 grib_threads_ecc-604-encode bufr_encode_pthreads )
|
2020-08-07 21:36:59 +00:00
|
|
|
ecbuild_add_executable( TARGET ${test}
|
|
|
|
NOINSTALL
|
2023-01-30 12:01:31 +00:00
|
|
|
SOURCES ${test}.cc
|
2020-08-19 16:06:56 +00:00
|
|
|
LIBS eccodes ${CMAKE_THREAD_LIBS_INIT} )
|
2020-08-07 21:36:59 +00:00
|
|
|
endforeach()
|
2024-02-19 12:30:36 +00:00
|
|
|
ecbuild_add_test( TARGET eccodes_t_grib_encode_pthreads2
|
2020-08-07 21:36:59 +00:00
|
|
|
TYPE SCRIPT
|
|
|
|
TEST_DEPENDS eccodes_download_gribs
|
2024-02-19 12:30:36 +00:00
|
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/grib_encode_pthreads2.sh )
|
2024-02-19 11:41:47 +00:00
|
|
|
ecbuild_add_test( TARGET eccodes_t_bufr_encode_pthreads
|
2020-08-07 21:36:59 +00:00
|
|
|
TYPE SCRIPT
|
|
|
|
TEST_DEPENDS eccodes_download_bufrs
|
2024-02-19 11:41:47 +00:00
|
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/bufr_encode_pthreads.sh )
|
2020-08-07 21:36:59 +00:00
|
|
|
endif()
|
|
|
|
|
2024-02-02 19:01:42 +00:00
|
|
|
if( NOT ECCODES_ON_WINDOWS )
|
|
|
|
ecbuild_add_executable( TARGET extract_offsets
|
|
|
|
NOINSTALL
|
|
|
|
SOURCES extract_offsets.cc
|
|
|
|
LIBS eccodes )
|
|
|
|
endif()
|
|
|
|
|
2020-08-07 21:36:59 +00:00
|
|
|
ecbuild_add_test( TARGET eccodes_t_grib_to_netcdf
|
2018-04-25 12:58:19 +00:00
|
|
|
TYPE SCRIPT
|
2023-10-10 20:46:57 +00:00
|
|
|
CONDITION HAVE_NETCDF AND ENABLE_EXTRA_TESTS AND NOT ECCODES_ON_WINDOWS
|
2020-08-07 21:36:59 +00:00
|
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/grib_to_netcdf.sh
|
|
|
|
TEST_DEPENDS eccodes_download_gribs )
|
|
|
|
|
|
|
|
ecbuild_add_test( TARGET eccodes_t_grib_jpeg
|
2018-07-27 16:40:13 +00:00
|
|
|
TYPE SCRIPT
|
2020-08-07 21:36:59 +00:00
|
|
|
CONDITION HAVE_JPEG AND ENABLE_EXTRA_TESTS
|
|
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/grib_jpeg.sh
|
|
|
|
TEST_DEPENDS eccodes_download_gribs )
|
2017-09-01 14:47:21 +00:00
|
|
|
|
2020-08-07 21:36:59 +00:00
|
|
|
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 )
|
2014-03-31 12:57:06 +00:00
|
|
|
|
2020-08-07 21:36:59 +00:00
|
|
|
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 )
|
2014-08-28 09:11:51 +00:00
|
|
|
|
2020-08-07 21:36:59 +00:00
|
|
|
ecbuild_add_test( TARGET eccodes_t_grib_check_param_concepts
|
|
|
|
TYPE SCRIPT
|
|
|
|
CONDITION ENABLE_EXTRA_TESTS
|
|
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/grib_check_param_concepts.sh )
|
2016-04-29 14:12:24 +00:00
|
|
|
|
2020-08-07 21:36:59 +00:00
|
|
|
ecbuild_add_test( TARGET eccodes_t_bufr_split_by_rdbSubtype
|
|
|
|
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 )
|
2016-05-04 15:04:21 +00:00
|
|
|
|
2022-03-12 17:24:38 +00:00
|
|
|
ecbuild_add_test( TARGET eccodes_t_codes_export_resource
|
|
|
|
TYPE SCRIPT
|
|
|
|
CONDITION ECCODES_INSTALL_EXTRA_TOOLS
|
|
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/codes_export_resource.sh )
|
|
|
|
|
|
|
|
|
2021-01-06 19:19:21 +00:00
|
|
|
# Performance test. Must have -DENABLE_TIMER=ON
|
2020-08-07 21:36:59 +00:00
|
|
|
ecbuild_add_test( TARGET eccodes_t_grib_ecc-386
|
|
|
|
TYPE SCRIPT
|
2023-08-20 18:02:13 +00:00
|
|
|
CONDITION ENABLE_EXTRA_TESTS
|
2020-08-07 21:36:59 +00:00
|
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/grib_ecc-386.sh
|
|
|
|
TEST_DEPENDS eccodes_download_gribs )
|
|
|
|
else()
|
2020-08-08 12:07:16 +00:00
|
|
|
# No command line tools
|
2020-08-07 21:36:59 +00:00
|
|
|
list(APPEND tests_no_tools
|
|
|
|
unit_tests
|
|
|
|
julian
|
|
|
|
bufr_check_descriptors
|
|
|
|
grib_sh_imag
|
|
|
|
grib_2nd_order_numValues
|
2020-08-08 12:07:16 +00:00
|
|
|
grib_sh_ieee64)
|
2018-08-23 16:18:34 +00:00
|
|
|
|
2020-08-07 21:36:59 +00:00
|
|
|
foreach( test ${tests_no_tools} )
|
|
|
|
ecbuild_add_test( TARGET eccodes_t_${test}
|
|
|
|
TYPE SCRIPT
|
|
|
|
LABELS "sanity"
|
|
|
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/${test}.sh )
|
|
|
|
endforeach()
|
2018-08-23 16:18:34 +00:00
|
|
|
|
2020-08-07 21:36:59 +00:00
|
|
|
endif()
|