@@ -4728,6 +4728,25 @@ def test_toy_failing_test_step(self):
47284728 raise_error = True , verbose = True )
47294729 self .assertExists (toy_mod_path )
47304730
4731+ def test_system_ec_with_gcccore_build_dep (self ):
4732+ """
4733+ Test building a SYSTEM level software that has a module from GCCcore as build dependency"""
4734+ test_ec_txt = TOY_EC_TXT
4735+ # Using a software with existing (test) module and no dependencies itself for simplicity
4736+ test_ec_txt += "\n builddependencies = [('ncurses', '6.4', '', ('GCCcore', '12.3.0'))]"
4737+ test_ec = os .path .join (self .test_prefix , 'test.eb' )
4738+ write_file (test_ec , test_ec_txt )
4739+ common_args = ["--rebuild" , test_ec ]
4740+ for mns in ['EasyBuildMNS' , 'HierarchicalMNS' ]:
4741+ with self .subTest (mns = mns ):
4742+ args = common_args + [f'--module-naming-scheme={ mns } ' ]
4743+ modulepath = os .path .join (TEST_DIR , 'modules' )
4744+ if mns == 'HierarchicalMNS' :
4745+ modulepath = os .path .join (modulepath , 'HierarchicalMNS' )
4746+ os .environ ['MODULEPATH' ] = modulepath
4747+ outtxt = self .run_eb_main_capture_output (args , do_build = True , verbose = True , raise_error = True )
4748+ self .assertRegex (outtxt , r'\[SUCCESS\] .*toy/0.0' )
4749+
47314750 def test_eb_crash (self ):
47324751 """
47334752 Test behaviour when EasyBuild crashes, for example due to a buggy hook
0 commit comments