[cfe-commits] [PATCH] Simplifying lit script for remove-cstr-calls

Edwin Vane edwin.vane at intel.com
Wed Oct 31 08:28:28 PDT 2012


Hi chandlerc,

Following the example from loop-convert tests, simplifying the remove-cstr-calls lit script.

http://llvm-reviews.chandlerc.com/D92

Files:
  test/remove-cstr-calls/basic.cpp

Index: test/remove-cstr-calls/basic.cpp
===================================================================
--- test/remove-cstr-calls/basic.cpp
+++ test/remove-cstr-calls/basic.cpp
@@ -1,12 +1,7 @@
-// RUN: rm -rf %t
-// RUN: mkdir %t
-// RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -c %t/test.cpp\",\"file\":\"%t/test.cpp\"}]" | sed -e 's/\\/\//g' > %t/compile_commands.json
-// RUN: cp "%s" "%t/test.cpp"
-// RUN: remove-cstr-calls "%t" "%t/test.cpp"
-// RUN: cat "%t/test.cpp" | FileCheck %s
+// RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp
+// RUN: remove-cstr-calls . %t.cpp --
+// RUN: FileCheck -input-file=%t.cpp %s
 // REQUIRES: shell
-// FIXME: implement a mode for refactoring tools that takes input from stdin
-// and writes output to stdout for easier testing of tools. 
 
 namespace std {
 template<typename T> class allocator {};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92.1.patch
Type: text/x-patch
Size: 853 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121031/a7fbcf85/attachment.bin>


More information about the cfe-commits mailing list