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

Unified Diff: testing/iossim/RedirectStdout.sh

Issue 10805004: Add iossim testing tool for running iOS unit tests. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Set correct revision for class-dump in DEPS Created 8 years, 5 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
« no previous file with comments | « DEPS ('k') | testing/iossim/iossim.gyp » ('j') | testing/iossim/iossim.gyp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/iossim/RedirectStdout.sh
diff --git a/testing/iossim/RedirectStdout.sh b/testing/iossim/RedirectStdout.sh
new file mode 100755
index 0000000000000000000000000000000000000000..384f0e7cf078e14d71e7d1c4b108a73dcbe8dc5b
--- /dev/null
+++ b/testing/iossim/RedirectStdout.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+# Copyright (c) 2011 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+#
+# This script executes the command given as the first argument and redirects
+# the command's stdout to the file given as the second argument.
stuartmorgan 2012/07/20 07:45:44 Can you expand this comment to explain why having
lliabraa 2012/07/26 19:14:11 Done.
+#
+# Usage: RedirectStdout.sh <command> <output file>
stuartmorgan 2012/07/20 07:45:44 Can you change this from a comment to a real usage
lliabraa 2012/07/26 19:14:11 Done.
+#
+# Example: Write the text 'foo' to a file called out.txt:
+# RedirectStdout.sh "echo foo" out.txt
+
+exec $1 > $2
stuartmorgan 2012/07/20 07:45:44 We should quote $1 and $2
lliabraa 2012/07/26 19:14:11 Done.
« no previous file with comments | « DEPS ('k') | testing/iossim/iossim.gyp » ('j') | testing/iossim/iossim.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698