Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Unified Diff: tools/llvm_file_check_wrapper.sh

Issue 1021303003: Enable using the toolchain (llvm) provided FileCheck. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« tests/toolchain/nacl.scons ('K') | « tests/toolchain/nacl.scons ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/llvm_file_check_wrapper.sh
diff --git a/tools/llvm_file_check_wrapper.sh b/tools/llvm_file_check_wrapper.sh
new file mode 100755
index 0000000000000000000000000000000000000000..66b571c962aa642a78e08dadf0a10572eae811c1
--- /dev/null
+++ b/tools/llvm_file_check_wrapper.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+# Copyright (c) 2011 The Native Client Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+if [ "$#" -lt 3 ]; then
+ echo "Usage: llvm_file_checl_wrapper <filecheck> <check_file> <cmd_line>"
+ echo "Where:"
+ echo "<filecheck> is the path to FileCheck"
+ echo "<check_file> is a text file containing 'CHECK' statements"
+ echo "<cmd_line> is the command line to use as input to FileCheck"
+ exit 1
+fi
+
+file_check="$1"
+shift
+check_file="$1"
+shift
+what_to_run=$@
+
+$what_to_run | $file_check $check_file
« tests/toolchain/nacl.scons ('K') | « tests/toolchain/nacl.scons ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698