@@ -1494,6 +1494,25 @@ def pre_test_hook_ignore_failing_tests_FFTWMPI(self, *args, **kwargs):
14941494 self .cfg ['testopts' ] = "|| echo ignoring failing tests"
14951495
14961496
1497+ def pre_test_hook_lammps_ignore_failure_arm_generic (self , * args , ** kwargs ):
1498+ """
1499+ Ignore failing tests on ARM generic target for LAMMPS version 22Jul2025
1500+ """
1501+ # Ignore failing ctest for LAMMPS/22Jul2025 on aarch64/generic
1502+ cpu_target = get_eessi_envvar ('EESSI_SOFTWARE_SUBDIR' )
1503+ if cpu_target == CPU_TARGET_AARCH64_GENERIC :
1504+ if self .name == 'LAMMPS' and self .version == '22Jul2025' :
1505+ # This command matches what is in
1506+ # https://github.com/easybuilders/easybuild-easyblocks/blob/71b010288084e1777fbdd0e3db319f0104134b1d/easybuild/easyblocks/l/lammps.py#L682
1507+ # If a test_cmd is already defined, the easyblock linked above should not overwrite it anymore
1508+ test_cmd = 'ctest '
1509+ test_cmd += '--no-tests=error '
1510+ test_cmd += '-LE unstable -E "TestMliapPyUnified|AtomicPairStyle:meam_spline|KSpaceStyle:scafacos.*" '
1511+ test_cmd += f' || echo "Ignoring failing tests when installing for { cpu_target } "'
1512+ self .log .debug (f"Running tests using test_cmd = '{ test_cmd } ' as test_cmd" )
1513+ self .cfg ['test_cmd' ] = test_cmd
1514+
1515+
14971516def pre_test_hook_ignore_failing_tests_SciPybundle (self , * args , ** kwargs ):
14981517 """
14991518 Pre-test hook for SciPy-bundle: skip failing tests for selected SciPy-bundle versions
@@ -1975,18 +1994,6 @@ def post_easyblock_hook(self, *args, **kwargs):
19751994 print_warning (f"Not enabling the post_easybuild_hook, as it requires EasyBuild 5.1.1 or newer (you are using { EASYBUILD_VERSION } )." )
19761995
19771996
1978- def pre_run_shell_cmd_hook (cmd , work_dir = None , ** kwargs ):
1979- """Main pre_shell_cmd_hook: trigger custom funtions based on software name."""
1980-
1981- # Ignore failing ctest for LAMMPS/22Jul2025 on aarch64/generic
1982- cpu_target = get_eessi_envvar ('EESSI_SOFTWARE_SUBDIR' )
1983- if cpu_target == CPU_TARGET_AARCH64_GENERIC :
1984- if bool (re .search ('LAMMPS' , work_dir )) and bool (re .search ('22Jul2025' , work_dir )):
1985- if isinstance (cmd , str ) and cmd .startswith ('ctest' ) and '-LE unstable' in cmd :
1986- cmd = cmd + f' || echo "Ignoring failing tests when installing for { cpu_target } "'
1987- return cmd
1988-
1989-
19901997PARSE_HOOKS = {
19911998 'casacore' : parse_hook_casacore_disable_vectorize ,
19921999 'CGAL' : parse_hook_cgal_toolchainopts_precise ,
@@ -2044,6 +2051,7 @@ def pre_run_shell_cmd_hook(cmd, work_dir=None, **kwargs):
20442051 'ESPResSo' : pre_test_hook_ignore_failing_tests_ESPResSo ,
20452052 'FFTW.MPI' : pre_test_hook_ignore_failing_tests_FFTWMPI ,
20462053 'Highway' : pre_test_hook_exclude_failing_test_Highway ,
2054+ 'LAMMPS' : pre_test_hook_lammps_ignore_failure_arm_generic ,
20472055 'SciPy-bundle' : pre_test_hook_ignore_failing_tests_SciPybundle ,
20482056 'netCDF' : pre_test_hook_ignore_failing_tests_netCDF ,
20492057 'OpenBabel' : pre_test_hook_ignore_failing_tests_OpenBabel_a64fx ,
0 commit comments