Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit c4274c9

Browse files
committed
update unittests
1 parent 6b73509 commit c4274c9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/setprogramoptions/unittests/test_SetProgramOptionsCMake.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,12 @@ def test_SetProgramOptionsCMake_gen_option_list_bash_expandvars_with_unknown_cma
237237
# parse a section
238238
self._execute_parser(parser, section)
239239

240-
with self.assertRaises(ValueError):
241-
parser.gen_option_list(section, generator="bash")
240+
option_list_actual = parser.gen_option_list(section, generator="bash")
241+
option_list_expect = [
242+
'cmake',
243+
'-DCMAKE_CXX_FLAGS:STRING="${LDFLAGS} -foo"',
244+
'-DCMAKE_CXX_FLAGS:STRING="${LDFLAGS} -foo -bar"', '-DCMAKE_F90_FLAGS:STRING=" -baz"'
245+
]
242246

243247
print("-----[ TEST END ]------------------------------------------")
244248

0 commit comments

Comments
 (0)