diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-10-12 00:28:14 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-10-12 00:28:14 +0000 |
commit | e04aebe904aea62e8079db4ac7f38585188ec47c (patch) | |
tree | 47af79eb20e35eea99546a6adc480e3394dea968 /libcxx/test | |
parent | 569bc278439935ffe86dd2564fd363ec70cd4d76 (diff) | |
download | bcm5719-llvm-e04aebe904aea62e8079db4ac7f38585188ec47c.tar.gz bcm5719-llvm-e04aebe904aea62e8079db4ac7f38585188ec47c.zip |
Add mork workarounds for running the test suite against libstdc++
llvm-svn: 283960
Diffstat (limited to 'libcxx/test')
-rw-r--r-- | libcxx/test/libcxx/test/config.py | 10 | ||||
-rw-r--r-- | libcxx/test/lit.cfg | 1 | ||||
-rw-r--r-- | libcxx/test/lit.site.cfg.in | 1 |
3 files changed, 10 insertions, 2 deletions
diff --git a/libcxx/test/libcxx/test/config.py b/libcxx/test/libcxx/test/config.py index f283f25b305..21e54bb7fc3 100644 --- a/libcxx/test/libcxx/test/config.py +++ b/libcxx/test/libcxx/test/config.py @@ -225,6 +225,14 @@ class Configuration(object): self.lit_config.fatal( 'unsupported value for "cxx_stdlib_under_test": %s' % self.cxx_stdlib_under_test) + if self.cxx_stdlib_under_test == 'libstdc++': + # Manually enable the experimental and filesystem tests for libstdc++ + # if the options aren't present. + # FIXME this is a hack. + if self.get_lit_conf('enable_experimental') is None: + self.config.enable_experimental = 'true' + if self.get_lit_conf('enable_filesystem') is None: + self.config.enable_filesystem = 'true' def configure_use_clang_verify(self): '''If set, run clang with -verify on failing tests.''' @@ -467,7 +475,7 @@ class Configuration(object): assert os.path.isdir(static_env) self.cxx.compile_flags += ['-DLIBCXX_FILESYSTEM_STATIC_TEST_ROOT="%s"' % static_env] - dynamic_env = os.path.join(self.libcxx_obj_root, 'test', + dynamic_env = os.path.join(self.config.test_exec_root, 'filesystem', 'Output', 'dynamic_env') dynamic_env = os.path.realpath(dynamic_env) if not os.path.isdir(dynamic_env): diff --git a/libcxx/test/lit.cfg b/libcxx/test/lit.cfg index af41f6cead0..eee17fdaa1c 100644 --- a/libcxx/test/lit.cfg +++ b/libcxx/test/lit.cfg @@ -37,7 +37,6 @@ if obj_root is None: obj_root = tempfile.mkdtemp(prefix='libcxx-testsuite-') lit_config.warning('Creating temporary directory for object root: %s' % obj_root) - config.libcxx_obj_root = obj_root config.test_exec_root = os.path.join(obj_root, 'test') diff --git a/libcxx/test/lit.site.cfg.in b/libcxx/test/lit.site.cfg.in index 943c840fa22..5344992d728 100644 --- a/libcxx/test/lit.site.cfg.in +++ b/libcxx/test/lit.site.cfg.in @@ -29,4 +29,5 @@ config.libcxxabi_shared = "@LIBCXXABI_ENABLE_SHARED@" config.libcxx_external_thread_api = "@LIBCXX_HAS_EXTERNAL_THREAD_API@" # Let the main config do the real work. +config.loaded_site_config = True lit_config.load_config(config, "@LIBCXX_SOURCE_DIR@/test/lit.cfg") |