<div dir="ltr">Cool, LGTM.<div><br></div><div> - Daniel</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 8, 2013 at 1:09 PM, Chris Matthews <span dir="ltr"><<a href="mailto:chris.matthews@apple.com" target="_blank">chris.matthews@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">This patch updates the runtest lit test cases to cover two extra code paths, —multisample and —only-test.<div>
<br></div><div><br></div><div><div>Index: tests/runtest/Inputs/test-suite/configure</div><div>===================================================================</div><div>--- tests/runtest/Inputs/test-suite/configure<span style="white-space:pre-wrap">  </span>(revision 187526)</div>
<div>+++ tests/runtest/Inputs/test-suite/configure<span style="white-space:pre-wrap">     </span>(working copy)</div><div>@@ -6,6 +6,7 @@</div><div> </div><div> echo "Copying in Makefile..."</div><div> cp $SRC_PATH/Makefile .</div>
<div>+cp $SRC_PATH/subtest/Makefile ./subtest/</div><div> </div><div> echo "Creating Makefile.config..."</div><div> echo "PROJ_SRC_ROOT = \"${SRC_PATH}\"" > Makefile.config</div><div>Index: tests/runtest/Inputs/test-suite/subtest/Makefile</div>
<div>===================================================================</div><div>--- tests/runtest/Inputs/test-suite/subtest/Makefile<span style="white-space:pre-wrap">    </span>(revision 0)</div><div>+++ tests/runtest/Inputs/test-suite/subtest/Makefile<span style="white-space:pre-wrap"> </span>(working copy)</div>
<div>@@ -0,0 +1,13 @@</div><div>+# Fake makefile</div><div>+</div><div>+include ../Makefile.config</div><div>+</div><div>+tools:</div><div>+<span style="white-space:pre-wrap">   </span>echo "This is a fake tools build."</div>
<div>+</div><div>+report:</div><div>+<span style="white-space:pre-wrap">  </span>echo "This is a fake report build."</div><div>+.PHONY: report</div><div>+</div><div>+report.simple.csv: report</div><div>+<span style="white-space:pre-wrap">    </span>cp ${PROJ_SRC_ROOT}/fake-report.simple.csv $@</div>
<div>Index: tests/runtest/multisample.py</div><div>===================================================================</div><div>--- tests/runtest/multisample.py<span style="white-space:pre-wrap">      </span>(revision 0)</div>
<div>+++ tests/runtest/multisample.py<span style="white-space:pre-wrap">  </span>(working copy)</div><div>@@ -0,0 +1,32 @@</div><div>+# Testing for the 'lnt runtest nt' module.</div><div>+#</div><div>+# RUN: lnt runtest nt \</div>
<div>+# RUN:   --sandbox %t.SANDBOX \</div><div>+# RUN:   --test-suite %S/Inputs/test-suite \</div><div>+# RUN:   --cc %{shared_inputs}/FakeCompilers/clang-r154331 \</div><div>+# RUN:   --no-timestamp --multisample 2 > %t.log 2> %t.err</div>
<div>+#</div><div>+# RUN: FileCheck --check-prefix CHECK-STDOUT < %t.log %s</div><div>+# RUN: FileCheck --check-prefix CHECK-STDERR < %t.err %s</div><div>+#</div><div>+# CHECK-STDOUT: Import succeeded.</div><div>+# CHECK-STDOUT: Added Machines: 1</div>
<div>+# CHECK-STDOUT: Added Runs    : 1</div><div>+# CHECK-STDOUT: Added Tests   : 130</div><div>+# CHECK-STDOUT: --- Tested: 260 tests --</div><div>+</div><div>+# CHECK-STDERR: inferred C++ compiler under test</div><div>
+# CHECK-STDERR: (multisample) running iteration 0</div><div>+# CHECK-STDERR: checking source versions</div><div>+# CHECK-STDERR: using nickname</div><div>+# CHECK-STDERR: starting test</div><div>+# CHECK-STDERR: configuring</div>
<div>+# CHECK-STDERR: building test-suite tools</div><div>+# CHECK-STDERR: executing "nightly tests" with -j1</div><div>+# CHECK-STDERR: loading nightly test data</div><div>+# CHECK-STDERR: capturing machine information</div>
<div>+# CHECK-STDERR: generating report</div><div>+# CHECK-STDERR: (multisample) running iteration 1</div><div>+# CHECK-STDERR: submitting result to dummy instance</div><div>+</div><div>+</div><div>Index: tests/runtest/only_test.py</div>
<div>===================================================================</div><div>--- tests/runtest/only_test.py<span style="white-space:pre-wrap">  </span>(revision 0)</div><div>+++ tests/runtest/only_test.py<span style="white-space:pre-wrap">       </span>(working copy)</div>
<div>@@ -0,0 +1,31 @@</div><div>+# Testing for the 'lnt runtest nt' module.</div><div>+#</div><div>+# RUN: lnt runtest nt \</div><div>+# RUN:   --sandbox %t.SANDBOX \</div><div>+# RUN:   --test-suite %S/Inputs/test-suite \</div>
<div>+# RUN:   --cc %{shared_inputs}/FakeCompilers/clang-r154331 \</div><div>+# RUN:   --only-test subtest \</div><div>+# RUN:   --no-timestamp > %t.log 2> %t.err</div><div>+#</div><div>+# RUN: FileCheck --check-prefix CHECK-STDOUT < %t.log %s</div>
<div>+# RUN: FileCheck --check-prefix CHECK-STDERR < %t.err %s</div><div>+#</div><div>+# CHECK-STDOUT: Import succeeded.</div><div>+# CHECK-STDOUT: Added Machines: 1</div><div>+# CHECK-STDOUT: Added Runs    : 1</div><div>
+# CHECK-STDOUT: Added Tests   : 130</div><div>+# CHECK-STDOUT: --- Tested: 260 tests --</div><div>+</div><div>+# CHECK-STDERR: inferred C++ compiler under test</div><div>+# CHECK-STDERR: checking source versions</div><div>
+# CHECK-STDERR: using nickname</div><div>+# CHECK-STDERR: starting test</div><div>+# CHECK-STDERR: configuring</div><div>+# CHECK-STDERR: building test-suite tools</div><div>+# CHECK-STDERR: executing "nightly tests" with -j1</div>
<div>+# CHECK-STDERR: loading nightly test data</div><div>+# CHECK-STDERR: capturing machine information</div><div>+# CHECK-STDERR: generating report</div><div>+# CHECK-STDERR: submitting result to dummy instance</div><div>
+</div><div>+</div></div><div><br></div><div></div></div><br><div style="word-wrap:break-word"><div><br><div>
<div style="text-indent:0px;letter-spacing:normal;text-align:start;text-transform:none;white-space:normal;word-wrap:break-word;word-spacing:0px"><div style="text-indent:0px;letter-spacing:normal;text-align:start;text-transform:none;white-space:normal;word-wrap:break-word;word-spacing:0px">
<div style="text-indent:0px;letter-spacing:normal;text-align:start;text-transform:none;white-space:normal;word-wrap:break-word;word-spacing:0px"><br><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:normal;text-transform:none;white-space:normal;font-family:Helvetica;word-spacing:0px">Chris Matthews</span><br style="line-height:normal;text-indent:0px;letter-spacing:normal;text-align:start;font-variant:normal;text-transform:none;font-style:normal;white-space:normal;font-family:Helvetica;font-weight:normal;word-spacing:0px">
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:normal;text-transform:none;white-space:normal;font-family:Helvetica;word-spacing:0px"><a href="mailto:chris.matthews@apple.com" target="_blank">chris.matthews@apple.com</a></span><br style="line-height:normal;text-indent:0px;letter-spacing:normal;text-align:start;font-variant:normal;text-transform:none;font-style:normal;white-space:normal;font-family:Helvetica;font-weight:normal;word-spacing:0px">
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:normal;text-transform:none;white-space:normal;font-family:Helvetica;word-spacing:0px"><a href="tel:%28408%29%20783-6335" value="+14087836335" target="_blank">(408) 783-6335</a></span><br>
</div></div></div>
</div>

<br></div></div><br>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div><br></div>