Author: klimek
Date: Mon Apr  9 14:10:04 2012
New Revision: 154335

URL: http://llvm.org/viewvc/llvm-project?rev=154335&view=rev
Log:
Implementing a test for the use of PWD to base finding the
correct compile commands on, based on an idea by Jordan Rose.


Added:
    cfe/trunk/test/Tooling/clang-check-pwd.cpp   (with props)

Added: cfe/trunk/test/Tooling/clang-check-pwd.cpp
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Tooling/clang-check-pwd.cpp?rev=154335&view=auto
==============================================================================
--- cfe/trunk/test/Tooling/clang-check-pwd.cpp (added)
+++ cfe/trunk/test/Tooling/clang-check-pwd.cpp Mon Apr  9 14:10:04 2012
@@ -0,0 +1,12 @@
+// RUN: rm -rf %t
+// RUN: mkdir %t
+// RUN: echo '[{"directory":".","command":"clang++ -c 
%t/test.cpp","file":"%t/test.cpp"}]' > %t/compile_commands.json
+// RUN: cp "%s" "%t/test.cpp"
+// RUN: PWD="%t" clang-check "%t" "test.cpp" 2>&1|FileCheck %s
+// FIXME: Make the above easier.
+
+invalid; // CHECK: C++ requires
+
+// FIXME: JSON doesn't like path separator '\', on Win32 hosts.
+// FIXME: clang-check doesn't like gcc driver on cygming.
+// XFAIL: cygwin,mingw32,win32

Propchange: cfe/trunk/test/Tooling/clang-check-pwd.cpp
------------------------------------------------------------------------------
    svn:eol-style = LF


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to