summaryrefslogtreecommitdiffstats
path: root/libcxx/test/lit.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/lit.cfg')
-rw-r--r--libcxx/test/lit.cfg12
1 files changed, 12 insertions, 0 deletions
diff --git a/libcxx/test/lit.cfg b/libcxx/test/lit.cfg
index 80e15a87760..6f1303a1963 100644
--- a/libcxx/test/lit.cfg
+++ b/libcxx/test/lit.cfg
@@ -406,6 +406,18 @@ class Configuration(object):
self.config.available_features.add(name)
self.config.available_features.add('%s-%s' % (name, ver))
+ # Simulator testing can take a really long time for some of these tests
+ # so add a feature check so we can REQUIRES: long_tests in them
+ self.long_tests = self.get_lit_bool('long_tests')
+ if self.long_tests is None:
+ # Default to running long tests.
+ self.long_tests = True
+ self.lit_config.note(
+ "inferred long_tests as: %r" % self.long_tests)
+
+ if self.long_tests:
+ self.config.available_features.add('long_tests')
+
def configure_compile_flags(self):
# Configure extra compiler flags.
self.compile_flags += ['-I' + self.src_root + '/include',
OpenPOWER on IntegriCloud