diff options
author | dim <dim@FreeBSD.org> | 2011-05-02 19:39:53 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2011-05-02 19:39:53 +0000 |
commit | 110eaaceddcec790f7e6a5e3bf1261c9aa1e73ab (patch) | |
tree | 64a10f4c4154739d4a8191d7e1b52ce497f4ebd6 /test/lit.cfg | |
parent | a0fb00f9837bd0d2e5948f16f6a6b82a7a628f51 (diff) | |
download | FreeBSD-src-110eaaceddcec790f7e6a5e3bf1261c9aa1e73ab.zip FreeBSD-src-110eaaceddcec790f7e6a5e3bf1261c9aa1e73ab.tar.gz |
Vendor import of clang trunk r130700:
http://llvm.org/svn/llvm-project/cfe/trunk@130700
Diffstat (limited to 'test/lit.cfg')
-rw-r--r-- | test/lit.cfg | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/lit.cfg b/test/lit.cfg index 6567c6d2..4b9d529 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -24,7 +24,8 @@ if platform.system() == 'Windows': # # For now we require '&&' between commands, until they get globally killed and # the test runner updated. -execute_external = platform.system() != 'Windows' +execute_external = (platform.system() != 'Windows' + or lit.getBashPath() not in [None, ""]) config.test_format = lit.formats.ShTest(execute_external) # suffixes: A list of file extensions to treat as test files. @@ -137,7 +138,7 @@ def inferClang(PATH): if lit.useValgrind: config.target_triple += '-vg' -config.clang = inferClang(config.environment['PATH']) +config.clang = inferClang(config.environment['PATH']).replace('\\', '/') if not lit.quiet: lit.note('using clang: %r' % config.clang) config.substitutions.append( ('%clang_cc1', config.clang + ' -cc1') ) @@ -166,3 +167,7 @@ config.substitutions.append( # Set available features we allow tests to conditionalize on. if platform.system() != 'Windows': config.available_features.add('crash-recovery') + +# Shell execution +if platform.system() not in ['Windows'] or lit.getBashPath() != '': + config.available_features.add('shell') |