(self)
| 276 | ) |
| 277 | |
| 278 | def test_interface(self): |
| 279 | wrong_arch = "ppc64" if self.arch != "ppc64" else "x86" |
| 280 | wrong_cc = "clang" if self.cc != "clang" else "icc" |
| 281 | opt = self.opt() |
| 282 | assert_(getattr(opt, "cc_on_" + self.arch)) |
| 283 | assert_(not getattr(opt, "cc_on_" + wrong_arch)) |
| 284 | assert_(getattr(opt, "cc_is_" + self.cc)) |
| 285 | assert_(not getattr(opt, "cc_is_" + wrong_cc)) |
| 286 | |
| 287 | def test_args_empty(self): |
| 288 | for baseline, dispatch in ( |