Skip to content

Commit 1a69808

Browse files
authored
Merge pull request #291 from Crivella/fix-LLVM-21.1.8_tests
Add hook for LLVM 21.1.8 tests
2 parents a04d1a7 + 40f2ceb commit 1a69808

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

eb_hooks.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,6 +1462,18 @@ def recursive_set_deps(item, softwares):
14621462
item.deps.append(sftw)
14631463

14641464
recursive_set_deps(self, softwares=('zlib', 'ncurses'))
1465+
1466+
# More ignorable tests and patch to avoid treating `__unused` as a non-reserved name
1467+
# https://github.com/EESSI/software-layer/pull/1583
1468+
if self.version == '21.1.8':
1469+
self.cfg.update('test_suite_ignore_patterns', 'Clang :: Driver/aarch64-toolchain-extra.c')
1470+
self.cfg.update('test_suite_ignore_patterns', 'Clang :: Driver/arm-toolchain-extra.c')
1471+
self.cfg.update('test_suite_ignore_patterns', 'libFuzzer-x86_64-default-Linux :: stack-overflow-with-asan.test')
1472+
self.cfg.update('test_suite_ignore_patterns', 'libFuzzer-x86_64-libcxx-Linux :: stack-overflow-with-asan.test')
1473+
self.cfg.update('test_suite_ignore_patterns', 'libFuzzer-x86_64-static-libcxx-Linux :: stack-overflow-with-asan.test')
1474+
1475+
sys_res_names_file = os.path.join(self.start_dir, 'libcxx', 'test', 'libcxx', 'system_reserved_names.gen.py')
1476+
apply_regex_substitutions(sys_res_names_file, [(r'^#define __unused SYSTEM_RESERVED_NAME', '')])
14651477
else:
14661478
raise EasyBuildError("LLVM-specific hook triggered for non-LLVM easyconfig?!")
14671479

0 commit comments

Comments
 (0)