Skip to content

Commit

Permalink
Improve tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dominichofer committed Nov 12, 2024
1 parent 3c01785 commit 76bfb04
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions test/system_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@ def test_install_cosmo_eccodes_definitions():


def test_install_ecbuild():
spack_install('ecbuild @3.7.2')
# Tests are disabled because they fail:
# The following tests FAILED:
# 1 - ECBUILD-359 (Failed)
# 2 - ECBUILD-401 (Failed)
# 8 - ECBUILD-511 (Failed)
# 11 - bundle-subdir-std (Failed)
# 12 - bundle-subdir-ecbfind (Failed)
# 17 - test_ecbuild_find_package (Failed)
spack_install('ecbuild @3.7.2', test_root=False)


def test_install_flexpart_cosmo():
Expand All @@ -22,14 +30,17 @@ def test_install_flexpart_ifs():
spack_install('flexpart-ifs')


#TODO: Add test for icon-c2sm
@pytest.mark.parametrize("compiler", ['gcc', 'nvhpc'])
def test_install_icon_c2sm(compiler):
spack_install(f'icon-c2sm %{compiler} ^cray-mpich%{compiler} ^netcdf-fortran%{compiler} ^eccodes%{compiler} ^serialbox%{compiler}')


#TODO: Add test for icon-ham


def test_install_icon_mch_2_6_6_mch2b_nvhpc():
spack_install(
'icon-mch @icon-2.6.6-mch2b %nvhpc ^cray-mpich%nvhpc ^netcdf-fortran%nvhpc'
)
@pytest.mark.parametrize("compiler", ['gcc', 'nvhpc'])
def test_install_icon_mch(compiler):
spack_install(f'icon-mch %{compiler}')


def test_install_icon_mch_conditional_dependencies():
Expand All @@ -41,7 +52,7 @@ def test_install_icon_mch_conditional_dependencies():
# gpu=nvidia-80 triggers cuda

spack_install(
'icon-mch @icon-2.6.6-mch2b %nvhpc +coupling serialization=create +emvorado +mpi gpu=nvidia-80 ^cray-mpich%nvhpc ^netcdf-fortran%nvhpc ^eccodes%nvhpc ^serialbox%nvhpc'
'icon-mch %nvhpc +coupling serialization=create +emvorado +mpi gpu=nvidia-80'
)


Expand All @@ -62,7 +73,7 @@ def test_install_libgrib1_22_01_2020_nvhpc():


def test_install_libtorch():
spack_install('libtorch', test_root=False)
spack_install('libtorch')


def test_install_makedepf90():
Expand Down

0 comments on commit 76bfb04

Please sign in to comment.