Skip to content

Commit

Permalink
extend test for --filter-rpath-sanity-libs with an extra test case
Browse files Browse the repository at this point in the history
  • Loading branch information
boegel committed Dec 21, 2022
1 parent 05073de commit 0ce1f3a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/framework/toy_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -2713,8 +2713,8 @@ def grab_gcc_rpath_wrapper_args():
write_file(toy_ec, toy_ec_txt)
self.test_toy_build(ec_file=toy_ec, extra_args=['--rpath'], raise_error=True)

def test_toy_rpath_filter(self):
"""Test toy build using --rpath --rpath-filter and --rpath --rpath-filter --filter-rpath-sanity-libs."""
def test_toy_filter_rpath_sanity_libs(self):
"""Test use of --filter-rpath-sanity-libs."""

test_ecs = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'easyconfigs', 'test_ecs')
toy_ec = os.path.join(test_ecs, 't', 'toy-app', 'toy-app-0.0.eb')
Expand All @@ -2737,6 +2737,10 @@ def test_toy_rpath_filter(self):
args = ['--rpath', '--rpath-filter=.*libtoy.*', '--filter-rpath-sanity-libs=libtoy.so']
self.test_toy_build(ec_file=toy_ec, name='toy-app', extra_args=args, raise_error=True)

# test again with list of library names passed to --filter-rpath-sanity-libs
args = ['--rpath', '--rpath-filter=.*libtoy.*', '--filter-rpath-sanity-libs=libfoo.so,libtoy.so,libbar.so']
self.test_toy_build(ec_file=toy_ec, name='toy-app', extra_args=args, raise_error=True)

def test_toy_modaltsoftname(self):
"""Build two dependent toys as in test_toy_toy but using modaltsoftname"""
topdir = os.path.dirname(os.path.abspath(__file__))
Expand Down

0 comments on commit 0ce1f3a

Please sign in to comment.