llvm/utils/lit/tests/Inputs/googletest-timeout/lit.cfg
raw| 1 | import lit.formats |
| 2 | |
| 3 | config.name = "googletest-timeout" |
| 4 | config.test_format = lit.formats.GoogleTest("DummySubDir", "Test") |
| 5 | |
| 6 | configSetTimeout = lit_config.params.get("set_timeout", "0") |
| 7 | config.environment["GTEST_FILTER"] = lit_config.params.get("gtest_filter") |
| 8 | |
| 9 | if configSetTimeout == "1": |
| 10 | # Try setting the max individual test time in the configuration |
| 11 | lit_config.maxIndividualTestTime = 1 |