[LNT] r266683 - Collect -mllvm -stats in LNT diagnostics
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 18 14:49:26 PDT 2016
Author: cmatthews
Date: Mon Apr 18 16:49:25 2016
New Revision: 266683
URL: http://llvm.org/viewvc/llvm-project?rev=266683&view=rev
Log:
Collect -mllvm -stats in LNT diagnostics
Modified:
lnt/trunk/lnt/tests/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=266683&r1=266682&r2=266683&view=diff
==============================================================================
--- lnt/trunk/lnt/tests/test_suite.py (original)
+++ lnt/trunk/lnt/tests/test_suite.py Mon Apr 18 16:49:25 2016
@@ -759,6 +759,23 @@ class TestSuiteTest(BuiltinTest):
f.write(std_err)
note("Wrote: " + report_path + "/time-report.txt")
+ # Now lets do -llvm -stats.
+ cmd_stats_report = cmd + ['-DTEST_SUITE_DIAGNOSE=On',
+ '-DTEST_SUITE_DIAGNOSE_FLAGS=-mllvm -stats']
+
+ note(' '.join(cmd_stats_report))
+
+ out = subprocess.check_output(cmd_stats_report)
+ note(out)
+
+ make_stats_report = [self.opts.make, "VERBOSE=1", short_name]
+ p = subprocess.Popen(make_stats_report, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ std_out, std_err = p.communicate()
+
+ with open(report_path + "/stats-report.txt", 'w') as f:
+ f.write(std_err)
+ note("Wrote: " + report_path + "/stats-report.txt")
+
note("Report produced in: " + report_path)
# Run through the rest of LNT, but don't allow this to be submitted
More information about the llvm-commits
mailing list