diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-14 23:27:06 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-14 23:27:06 +0000 |
commit | 024a126303aef754e1099c822428c44ee6e2bcba (patch) | |
tree | f129f12b737d5365a343f5d0fefb7639c93cf40d /docs/TestingGuide.html | |
parent | 5eace78caa1f3ef08ac657836f254dcbff43cae6 (diff) | |
download | external_llvm-024a126303aef754e1099c822428c44ee6e2bcba.zip external_llvm-024a126303aef754e1099c822428c44ee6e2bcba.tar.gz external_llvm-024a126303aef754e1099c822428c44ee6e2bcba.tar.bz2 |
Add some info about the pipelines and redirection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36030 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/TestingGuide.html')
-rw-r--r-- | docs/TestingGuide.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/TestingGuide.html b/docs/TestingGuide.html index 584b632..df8cfef 100644 --- a/docs/TestingGuide.html +++ b/docs/TestingGuide.html @@ -323,6 +323,24 @@ location of these external programs is configured by the llvm-test any process in the pipeline fails, the entire line (and test case) fails too. </p> + <p>As with a Unix shell, the RUN: lines permit pipelines and I/O redirection + to be used. However, the usage is slightly different than for Bash. To check + what's legal, see the documentation for the + <a href="http://www.tcl.tk/man/tcl8.5/TclCmd/exec.htm#M2">Tcl exec</a> + command and the + <a href="http://www.tcl.tk/man/tcl8.5/tutorial/Tcl26.html">tutorial</a>. + The major differences are:</p> + <ul> + <li>You can't do <tt>2>&1</tt>. That will cause Tcl to write to a + file named <tt>&1</tt>. Usually this is done to get stderr to go through + a pipe. You can do that in tcl with <tt>|&</tt> so replace this idiom: + <tt>... 2>&1 | grep</tt> with <tt>... |& grep</tt></li> + <li>You can only redirect to a file, not to another descriptor and not from + a here document.</li> + <li>tcl supports redirecting to open files with the @ syntax but you + shouldn't use that here.</li> + </ul> + <p> Below is an example of legal RUN lines in a <tt>.ll</tt> file:</p> <pre> ; RUN: llvm-as < %s | llvm-dis > %t1 |