summaryrefslogtreecommitdiffstats
path: root/clang/utils/C++Tests/stdc++-Syntax
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-16 01:40:13 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-16 01:40:13 +0000
commitbe657e5b28ba27d4bc353021275f363de374d843 (patch)
tree6442d59d32d3f3631b7bc28d8d15e38305229b75 /clang/utils/C++Tests/stdc++-Syntax
parentf47fd584768c7e9b6bb6f2c18b4fc924ac701e8c (diff)
downloadbcm5719-llvm-be657e5b28ba27d4bc353021275f363de374d843.tar.gz
bcm5719-llvm-be657e5b28ba27d4bc353021275f363de374d843.zip
A toy for Doug: Add some 'lit' tests which just run clang++ -fsyntax-only over all the files in a directory.
- 'lit utils/C++Tests' to run, you may need to fix the stdc++ include path, and your mileage may vary. - A handful of the LLVM headers are XFAIL because they don't include the right headers. llvm-svn: 81990
Diffstat (limited to 'clang/utils/C++Tests/stdc++-Syntax')
-rw-r--r--clang/utils/C++Tests/stdc++-Syntax/lit.local.cfg17
1 files changed, 17 insertions, 0 deletions
diff --git a/clang/utils/C++Tests/stdc++-Syntax/lit.local.cfg b/clang/utils/C++Tests/stdc++-Syntax/lit.local.cfg
new file mode 100644
index 00000000000..eb04866e340
--- /dev/null
+++ b/clang/utils/C++Tests/stdc++-Syntax/lit.local.cfg
@@ -0,0 +1,17 @@
+# -*- Python -*-
+
+# Configuration file for the 'lit' test runner.
+
+def getRoot(config):
+ if not config.parent:
+ return config
+ return getRoot(config.parent)
+
+root = getRoot(config)
+
+# testFormat: The test format to use to interpret tests.
+config.test_format = lit.formats.SyntaxCheckTest(compiler=root.clang,
+ dir='/usr/include/c++/4.2.1',
+ recursive=False,
+ pattern='^(.*\\.h|[^.]*)$')
+
OpenPOWER on IntegriCloud