<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">This patch adds better code coverage for the runtest lit tests by calling runtest with an assortment of options.<div><br></div><div><div>Index: tests/runtest/nt.py</div><div>===================================================================</div><div>--- tests/runtest/nt.py<span class="Apple-tab-span" style="white-space:pre">      </span>(revision 188243)</div><div>+++ tests/runtest/nt.py<span class="Apple-tab-span" style="white-space:pre">     </span>(working copy)</div><div>@@ -6,6 +6,34 @@</div><div> # RUN:   --cc %{shared_inputs}/FakeCompilers/clang-r154331 \</div><div> # RUN:   --no-timestamp > %t.log 2> %t.err</div><div> #</div><div>+# Use the same sandbox again with --no-configure</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 --no-configure >> %t.log 2>> %t.err</div><div>+#</div><div>+# Manually set a run order.</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 --no-configure --run-order 123 >> %t.log 2>> %t.err</div><div>+#</div><div>+# Change the machine name. Don't use LLVM.</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:   --without-llvm --no-auto-name foo >> %t.log 2>> %t.err</div><div>+#</div><div>+# Run with sandboxing enabled.</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 --use-isolation >> %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>@@ -26,5 +54,77 @@</div><div> # CHECK-STDERR: capturing machine information</div><div> # CHECK-STDERR: generating report</div><div> # CHECK-STDERR: submitting result to dummy instance</div><div>+# Testing for the 'lnt runtest nt' module.</div><div>+#</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: 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>+# 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>+# 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: 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>+# 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>+# CHECK-STDERR: inferred C++ compiler under test</div><div>+# CHECK-STDERR: checking source versions</div><div>+# CHECK-STDERR: using nickname: 'foo'</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>+# 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: creating sandbox profile</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>+# Testing for the 'lnt runtest nt' module.</div><div><br></div><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"></div></div></div></div></div></div></body></html>