[LNT] r261846 - [test-suite] Add support for --benchmarking-only.
James Molloy via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 25 02:04:26 PST 2016
Author: jamesm
Date: Thu Feb 25 04:04:26 2016
New Revision: 261846
URL: http://llvm.org/viewvc/llvm-project?rev=261846&view=rev
Log:
[test-suite] Add support for --benchmarking-only.
Modified:
lnt/trunk/lnt/tests/test_suite.py
lnt/trunk/tests/runtest/test_suite.py
Modified: lnt/trunk/lnt/tests/test_suite.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/tests/test_suite.py?rev=261846&r1=261845&r2=261846&view=diff
==============================================================================
--- lnt/trunk/lnt/tests/test_suite.py (original)
+++ lnt/trunk/lnt/tests/test_suite.py Thu Feb 25 04:04:26 2016
@@ -173,7 +173,7 @@ class TestSuiteTest(BuiltinTest):
parser.error("Expected no positional arguments (got: %r)" % (args,))
for a in ['cross_compiling', 'cross_compiling_system_name', 'llvm_arch',
- 'benchmarking_only', 'use_perf']:
+ 'use_perf']:
if getattr(opts, a):
parser.error('option "%s" is not yet implemented!' % a)
@@ -347,6 +347,8 @@ class TestSuiteTest(BuiltinTest):
}
if self.opts.run_under:
defs['TEST_SUITE_RUN_UNDER'] = self._unix_quote_args(self.opts.run_under)
+ if self.opts.benchmarking_only:
+ defs['TEST_SUITE_BENCHMARKING_ONLY'] = 'ON'
lines = ['Configuring with {']
for k,v in defs.items():
Modified: lnt/trunk/tests/runtest/test_suite.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/tests/runtest/test_suite.py?rev=261846&r1=261845&r2=261846&view=diff
==============================================================================
--- lnt/trunk/tests/runtest/test_suite.py (original)
+++ lnt/trunk/tests/runtest/test_suite.py Thu Feb 25 04:04:26 2016
@@ -215,3 +215,19 @@
# CHECK-ONLYTEST: Execute: {{.*}}/fake-make -j 1
# CHECK-ONLYTEST: (In {{.*}}/subtest)
+# Check --benchmarking-only
+# RUN: lnt runtest test-suite \
+# RUN: --sandbox %t.SANDBOX \
+# RUN: --no-timestamp \
+# RUN: --test-suite %S/Inputs/test-suite-cmake \
+# RUN: --cc %{shared_inputs}/FakeCompilers/clang-r154331 \
+# RUN: --use-cmake %S/Inputs/test-suite-cmake/fake-cmake \
+# RUN: --use-make %S/Inputs/test-suite-cmake/fake-make \
+# RUN: --use-lit %S/Inputs/test-suite-cmake/fake-lit \
+# RUN: --benchmarking-only \
+# RUN: --verbose \
+# RUN: > %t.log 2> %t.err
+# RUN: FileCheck --check-prefix CHECK-BENCHONLY < %t.err %s
+# CHECK-BENCHONLY: Configuring with {
+# CHECK-BENCHONLY: TEST_SUITE_BENCHMARKING_ONLY: 'ON'
+
More information about the llvm-commits
mailing list