Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ReFrame test that runs pip check and modify the ld.gold check #210

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
16 changes: 15 additions & 1 deletion test/compat_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,13 @@ def __init__(self):

@rfm.simple_test
class ToolsAvailableTest(RunInGentooPrefixTest):
tool = parameter(['archspec', 'emerge', 'equery', 'ld.gold', 'make', 'patch', 'patchelf'])
tool = parameter(['archspec', 'emerge', 'equery', 'ld.bfd', 'ld.gold', 'make', 'patch', 'patchelf'])

def __init__(self):
# patchelf is only installed since 2021.06 compat layer
self.skip_if(self.tool == 'patchelf' and self.eessi_version == '2021.03')
# 2023.06 still had both ld.bfd and ld.gold, but the latter will not be included in future versions
self.skip_if(self.tool == 'ld.gold' and self.eessi_version != '2023.06')
super().__init__()
self.descr = 'Verify that some required tools are available'
self.command = f'which {self.tool}'
Expand Down Expand Up @@ -231,3 +233,15 @@ def __init__(self):
f'user-defined-trusted-dirs={trusted_dir}',
self.stdout
)


@rfm.simple_test
class PipCheckTest(RunInGentooPrefixTest):
def __init__(self):
super().__init__()
self.descr = 'Verify that "pip check" does not return any errors.'
self.command = 'pip check'
self.sanity_patterns = sn.all([
sn.assert_eq(self.exit_code, 0),
sn.assert_found('\nNo broken requirements found.\n', self.stdout),
])
Loading