From 3d9ffbc20920aa73a08face9100a2fd63f7814f5 Mon Sep 17 00:00:00 2001 From: Victoria Cherkas <87643948+victoria-cherkas@users.noreply.github.com> Date: Mon, 30 Oct 2023 16:03:03 +0100 Subject: [PATCH] [fdb] add v5.11.17 (#848) Adds fdb release 5.11.17 (backport of spack/spack#40571) Does not run system test on tsa as a result of error 'UCX WARN transports', which is unrelated to FDB. Co-authored-by: Dominic Hofer --- repos/c2sm/packages/fdb/package.py | 21 +++++++++++++++++++++ test/integration_test.py | 6 ++++++ test/system_test.py | 11 +++++++++++ 3 files changed, 38 insertions(+) create mode 100644 repos/c2sm/packages/fdb/package.py diff --git a/repos/c2sm/packages/fdb/package.py b/repos/c2sm/packages/fdb/package.py new file mode 100644 index 0000000000..bfbeb012dd --- /dev/null +++ b/repos/c2sm/packages/fdb/package.py @@ -0,0 +1,21 @@ +# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack.package import * +from spack.pkg.builtin.fdb import Fdb as SpackFdb + + +class Fdb(SpackFdb): + """FDB (Fields DataBase) is a domain-specific object store developed at + ECMWF for storing, indexing and retrieving GRIB data.""" + + version("5.11.17", + sha256= + "375c6893c7c60f6fdd666d2abaccb2558667bd450100817c0e1072708ad5591e") + + depends_on("ecbuild@3.7:", type="build", when="@5.11.6:") + + def setup_build_environment(self, env): + env.set('CTEST_OUTPUT_ON_FAILURE', 1) diff --git a/test/integration_test.py b/test/integration_test.py index 60b838ff21..0a75a2d3ac 100644 --- a/test/integration_test.py +++ b/test/integration_test.py @@ -70,6 +70,9 @@ def test_eccodes(self): def test_fckit(self): spack_info('fckit') + def test_fdb(self): + spack_info('fdb') + def test_fdb_fortran(self): spack_info('fdb-fortran') @@ -289,6 +292,9 @@ def test_eccodes(self): def test_fckit(self): spack_spec('fckit') + def test_fdb(self): + spack_info('fdb') + def test_fdb_fortran(self): spack_spec('fdb-fortran') diff --git a/test/system_test.py b/test/system_test.py index 28ec2cda6e..50c608fbf1 100644 --- a/test/system_test.py +++ b/test/system_test.py @@ -292,6 +292,17 @@ def test_install_default(self): spack_install_and_test('fckit') +@pytest.mark.no_tsa # FDB tests fail on tsa due to 'ucp_context' +class FdbTest(unittest.TestCase): + + def test_install_5_11_17_gcc(self): + spack_install_and_test('fdb @5.11.17 %gcc') + + def test_install_5_11_17_nvhpc(self): + # tests fail because compiler emitted warnings. + spack_install(f'fdb @5.11.17 %{nvidia_compiler}') + + class FdbFortranTest(unittest.TestCase): def test_install(self):