Skip to content

Commit

Permalink
Revert removal of test_get_flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Micket committed Dec 13, 2024
1 parent 7216ba1 commit 4d83479
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/framework/toolchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -3237,6 +3237,21 @@ def test_env_vars_external_module(self):
expected = {}
self.assertEqual(res, expected)

def test_get_flag(self):
"""Test get_flag function"""
tc = self.get_toolchain('gompi', version='2018a')

checks = {
'-a': '-a',
'-openmp': '-openmp',
'-foo': ['-foo'],
'-foo -bar': ['-foo', '-bar'],
}

for flagstring, flags in checks.items():
tc.options.options_map['openmp'] = flags
self.assertEqual(tc.get_flag('openmp'), flagstring)


def suite():
""" return all the tests"""
Expand Down

0 comments on commit 4d83479

Please sign in to comment.