Пример #1
0
 def test_multiple_flags(self):
     self.assertTrue(dsl.hasCompileFlag(self.config, '-O1 -Dhello'))
Пример #2
0
 def test_flag_exists(self):
     self.assertTrue(dsl.hasCompileFlag(self.config, '-O1'))
Пример #3
0
 def test_nonexistent_flag(self):
     self.assertFalse(
         dsl.hasCompileFlag(self.config,
                            '-this_is_not_a_flag_any_compiler_has'))
Пример #4
0
 def test_no_flag_should_work(self):
     self.assertTrue(dsl.hasCompileFlag(self.config, ''))