Skip to content

Commit c568c9c

Browse files
committed
WIP: Try modifying more tests
1 parent ce80206 commit c568c9c

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

lnt/tests/nt.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ def execute_nt_tests(test_log, make_variables, basedir, config):
729729
# Keep a mapping of mangled test names, to the original names in the
730730
# test-suite.
731731
TEST_TO_NAME = {}
732-
KNOWN_SAMPLE_KEYS = ('compile', 'exec', 'hash',
732+
KNOWN_SAMPLE_KEYS = ('compile_time', 'execution_time', 'hash',
733733
'gcc.compile', 'bc.compile', 'llc.compile',
734734
'llc-beta.compile', 'jit.compile', 'gcc.exec', 'llc.exec',
735735
'llc-beta.exec', 'jit.exec')
@@ -750,10 +750,10 @@ def append_to_sample_keys(tup):
750750
# for now, user time is the unqualified Time stat
751751
if config.test_time_stat == "real":
752752
time_stat = 'Real_'
753-
append_to_sample_keys((True, 'compile', 'CC_' + time_stat + 'Time',
753+
append_to_sample_keys((True, 'compile_time', 'CC_' + time_stat + 'Time',
754754
None, 'CC', float))
755755
append_to_sample_keys((False, 'hash', 'CC_Hash', None, 'CC', str))
756-
append_to_sample_keys((True, 'exec', 'Exec_' + time_stat + 'Time',
756+
append_to_sample_keys((True, 'execution_time', 'Exec_' + time_stat + 'Time',
757757
None, 'Exec', float))
758758
else:
759759
test_namespace = 'nightlytest'

lnt/tests/test_suite.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -720,8 +720,8 @@ def _get_cc_info(self, cmake_vars):
720720

721721
def _parse_lit_output(self, path, data, cmake_vars, only_test=False):
722722
LIT_METRIC_TO_LNT = {
723-
'compile_time': 'compile',
724-
'exec_time': 'exec',
723+
'compile_time': 'compile_time',
724+
'exec_time': 'execution_time',
725725
'score': 'score',
726726
'hash': 'hash',
727727
'link_time': 'compile',

tests/runtest/exclude_stat.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010
# RUN: filecheck --check-prefix CHECK-STDOUT < %t.log %s
1111
# RUN: filecheck --check-prefix CHECK-REPORT < %t.SANDBOX/build/report.json %s
1212
# CHECK-STDOUT: Import succeeded.
13-
# CHECK-REPORT: "Name": "nts.{{[^.]+}}.exec"
14-
# CHECK-REPORT-NOT: "Name": "nts.{{[^.]+}}.compile"
13+
# CHECK-REPORT: "execution_time":
14+
# CHECK-REPORT-NOT: "compile_time":
15+
# CHECK-REPORT-NOT: "compile":

tests/runtest/test_suite-metrics.shtest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
# RUN: filecheck --check-prefix CHECK-METRICS < %t.SANDBOX/build/report.json %s
1515
# RUN: filecheck --check-prefix CHECK-METRICS2 < %t.SANDBOX/build/report.json %s
1616
# CHECK-METRICS-DAG: "name": "nts.foo"
17-
# CHECK-METRICS-DAG: "exec":
18-
# CHECK-METRICS-DAG: "compile":
17+
# CHECK-METRICS-DAG: "execution_time":
18+
# CHECK-METRICS-DAG: "compile_time":
1919
# CHECK-METRICS-DAG: "score":
2020
# CHECK-METRICS-DAG: "hash":
2121
# CHECK-METRICS2-NOT: "unknown":

tests/runtest/test_suite.shtest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
# CHECK-REPORT: "no_errors": "True",
2121
# CHECK-REPORT: "run_order": "154331"
22-
# CHECK-REPORT: "compile": 1.3
23-
# CHECK-REPORT: "exec": 1.4
22+
# CHECK-REPORT: "compile_time": 1.3
23+
# CHECK-REPORT: "execution_time": 1.4
2424
# CHECK-REPORT: "hash": "xyz"
2525
# CHECK-REPORT: "name": "nts.foo"
2626
# CHECK-REPORT: "score": 1.5

0 commit comments

Comments
 (0)