Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion easybuild/framework/easyconfig/easyconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@ def toolchain(self):
else:
self.log.debug("Found easyconfig for toolchain %s version %s: %s", tcname, tcversion, tc_ecfile)
tc_ec = process_easyconfig(tc_ecfile)[0]
tcdeps = tc_ec['ec'].dependencies()
tcdeps = tc_ec['ec'].dependencies(runtime_only=True)
self.log.debug("Toolchain dependencies based on easyconfig: %s", tcdeps)

self._toolchain = get_toolchain(self['toolchain'], self['toolchainopts'],
Expand Down
20 changes: 20 additions & 0 deletions test/framework/easyblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -3809,6 +3809,26 @@ def test_exts_deps_build_env(self):
self.fail(f"Unknown type of environment variable: ${env_var}")
self.assertTrue(regex.search(log_txt), f"Pattern '{regex.pattern}' not found in log output")

# verify fix made in https://github.com/easybuilders/easybuild-framework/pull/5048
test_ec_txt = read_file(toy_ec)
test_ec_txt += textwrap.dedent("""
toolchain = {'name': 'GCCcore', 'version': '12.3.0'}
""")
write_file(test_ec, test_ec_txt)
args = [
test_ec,
'--rebuild',
'--debug',
]
with self.mocked_stdout_stderr():
with self.log_to_testlogfile():
self.eb_main(args, raise_error=True, do_build=True, verbose=True)

log_txt = read_file(self.logfile)

regex = re.compile(r"\[SUCCESS\] toy/0.0-GCCcore-12.3.0", re.M)
self.assertTrue(regex.search(log_txt), f"Pattern '{regex.pattern}' not found in log output")


def suite(loader=None):
""" return all the tests in this file """
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ source_urls = [
'http://ftpmirror.gnu.org/%(namelower)s/%(namelower)s-%(version)s', # GCC auto-resolving HTTP mirror
]

#gcc_name = 'GCC'
# only here to verify the fix made in https://github.com/easybuilders/easybuild-framework/pull/5048,
# see also test_exts_deps_build_env
builddependencies = [
('gzip', '1.4'),
]

sources = [
SOURCELOWER_TAR_BZ2,
Expand Down