[LNT] r188026 - Update the runtest lit test cases to cover two extra code paths, --multisample and --only-test.
Chris Matthews
cmatthews5 at apple.com
Thu Aug 8 16:42:59 PDT 2013
Author: cmatthews
Date: Thu Aug 8 18:42:58 2013
New Revision: 188026
URL: http://llvm.org/viewvc/llvm-project?rev=188026&view=rev
Log:
Update the runtest lit test cases to cover two extra code paths, --multisample and --only-test.
Added:
lnt/trunk/tests/runtest/Inputs/test-suite/subtest/
lnt/trunk/tests/runtest/Inputs/test-suite/subtest/Makefile
lnt/trunk/tests/runtest/multisample.py
lnt/trunk/tests/runtest/only_test.py
Modified:
lnt/trunk/tests/runtest/Inputs/test-suite/configure
Modified: lnt/trunk/tests/runtest/Inputs/test-suite/configure
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/tests/runtest/Inputs/test-suite/configure?rev=188026&r1=188025&r2=188026&view=diff
==============================================================================
--- lnt/trunk/tests/runtest/Inputs/test-suite/configure (original)
+++ lnt/trunk/tests/runtest/Inputs/test-suite/configure Thu Aug 8 18:42:58 2013
@@ -6,6 +6,7 @@ echo "This is a fake configure script."
echo "Copying in Makefile..."
cp $SRC_PATH/Makefile .
+cp $SRC_PATH/subtest/Makefile ./subtest/
echo "Creating Makefile.config..."
echo "PROJ_SRC_ROOT = \"${SRC_PATH}\"" > Makefile.config
Added: lnt/trunk/tests/runtest/Inputs/test-suite/subtest/Makefile
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/tests/runtest/Inputs/test-suite/subtest/Makefile?rev=188026&view=auto
==============================================================================
--- lnt/trunk/tests/runtest/Inputs/test-suite/subtest/Makefile (added)
+++ lnt/trunk/tests/runtest/Inputs/test-suite/subtest/Makefile Thu Aug 8 18:42:58 2013
@@ -0,0 +1,13 @@
+# Fake makefile
+
+include ../Makefile.config
+
+tools:
+ echo "This is a fake tools build."
+
+report:
+ echo "This is a fake report build."
+.PHONY: report
+
+report.simple.csv: report
+ cp ${PROJ_SRC_ROOT}/fake-report.simple.csv $@
Added: lnt/trunk/tests/runtest/multisample.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/tests/runtest/multisample.py?rev=188026&view=auto
==============================================================================
--- lnt/trunk/tests/runtest/multisample.py (added)
+++ lnt/trunk/tests/runtest/multisample.py Thu Aug 8 18:42:58 2013
@@ -0,0 +1,32 @@
+# Testing for the 'lnt runtest nt' module.
+#
+# RUN: lnt runtest nt \
+# RUN: --sandbox %t.SANDBOX \
+# RUN: --test-suite %S/Inputs/test-suite \
+# RUN: --cc %{shared_inputs}/FakeCompilers/clang-r154331 \
+# RUN: --no-timestamp --multisample 2 > %t.log 2> %t.err
+#
+# RUN: FileCheck --check-prefix CHECK-STDOUT < %t.log %s
+# RUN: FileCheck --check-prefix CHECK-STDERR < %t.err %s
+#
+# CHECK-STDOUT: Import succeeded.
+# CHECK-STDOUT: Added Machines: 1
+# CHECK-STDOUT: Added Runs : 1
+# CHECK-STDOUT: Added Tests : 130
+# CHECK-STDOUT: --- Tested: 260 tests --
+
+# CHECK-STDERR: inferred C++ compiler under test
+# CHECK-STDERR: (multisample) running iteration 0
+# CHECK-STDERR: checking source versions
+# CHECK-STDERR: using nickname
+# CHECK-STDERR: starting test
+# CHECK-STDERR: configuring
+# CHECK-STDERR: building test-suite tools
+# CHECK-STDERR: executing "nightly tests" with -j1
+# CHECK-STDERR: loading nightly test data
+# CHECK-STDERR: capturing machine information
+# CHECK-STDERR: generating report
+# CHECK-STDERR: (multisample) running iteration 1
+# CHECK-STDERR: submitting result to dummy instance
+
+
Added: lnt/trunk/tests/runtest/only_test.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/tests/runtest/only_test.py?rev=188026&view=auto
==============================================================================
--- lnt/trunk/tests/runtest/only_test.py (added)
+++ lnt/trunk/tests/runtest/only_test.py Thu Aug 8 18:42:58 2013
@@ -0,0 +1,31 @@
+# Testing for the 'lnt runtest nt' module.
+#
+# RUN: lnt runtest nt \
+# RUN: --sandbox %t.SANDBOX \
+# RUN: --test-suite %S/Inputs/test-suite \
+# RUN: --cc %{shared_inputs}/FakeCompilers/clang-r154331 \
+# RUN: --only-test subtest \
+# RUN: --no-timestamp > %t.log 2> %t.err
+#
+# RUN: FileCheck --check-prefix CHECK-STDOUT < %t.log %s
+# RUN: FileCheck --check-prefix CHECK-STDERR < %t.err %s
+#
+# CHECK-STDOUT: Import succeeded.
+# CHECK-STDOUT: Added Machines: 1
+# CHECK-STDOUT: Added Runs : 1
+# CHECK-STDOUT: Added Tests : 130
+# CHECK-STDOUT: --- Tested: 260 tests --
+
+# CHECK-STDERR: inferred C++ compiler under test
+# CHECK-STDERR: checking source versions
+# CHECK-STDERR: using nickname
+# CHECK-STDERR: starting test
+# CHECK-STDERR: configuring
+# CHECK-STDERR: building test-suite tools
+# CHECK-STDERR: executing "nightly tests" with -j1
+# CHECK-STDERR: loading nightly test data
+# CHECK-STDERR: capturing machine information
+# CHECK-STDERR: generating report
+# CHECK-STDERR: submitting result to dummy instance
+
+
More information about the llvm-commits
mailing list