Skip to content

Commit

Permalink
fdb package
Browse files Browse the repository at this point in the history
  • Loading branch information
victoria-cherkas committed Oct 26, 2023
1 parent 39f9b28 commit e9b1e56
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
15 changes: 15 additions & 0 deletions repos/c2sm/packages/fdb/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# 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 *


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")
6 changes: 6 additions & 0 deletions test/integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down Expand Up @@ -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')

Expand Down
10 changes: 10 additions & 0 deletions test/system_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,16 @@ def test_install_default(self):
spack_install_and_test('fckit')


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):
Expand Down

0 comments on commit e9b1e56

Please sign in to comment.