Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit 84e8a3f

Browse files
SC llvm teamSC llvm team
authored andcommitted
Merged main:0b7ae41b23fc into amd-gfx:950d1a35d4f5
Local branch amd-gfx 950d1a3 Merged main:00c8da615923 into amd-gfx:1a36b82bb390 Remote branch main 0b7ae41 [LIT] Print discovered tests and percentages (llvm#66057) (llvm#69831)
2 parents 950d1a3 + 0b7ae41 commit 84e8a3f

File tree

59 files changed

+79
-66
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+79
-66
lines changed

llvm/include/llvm/Config/llvm-config.h.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
/* Indicate that this is LLVM compiled from the amd-gfx branch. */
1818
#define LLVM_HAVE_BRANCH_AMD_GFX
19-
#define LLVM_MAIN_REVISION 478275
19+
#define LLVM_MAIN_REVISION 478276
2020

2121
/* Define if LLVM_ENABLE_DUMP is enabled */
2222
#cmakedefine LLVM_ENABLE_DUMP

llvm/utils/lit/lit/main.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ def print_histogram(tests):
311311

312312
def print_results(tests, elapsed, opts):
313313
tests_by_code = {code: [] for code in lit.Test.ResultCode.all_codes()}
314+
total_tests = len(tests)
314315
for test in tests:
315316
tests_by_code[test.result.code].append(test)
316317

@@ -321,7 +322,7 @@ def print_results(tests, elapsed, opts):
321322
opts.shown_codes,
322323
)
323324

324-
print_summary(tests_by_code, opts.quiet, elapsed)
325+
print_summary(total_tests, tests_by_code, opts.quiet, elapsed)
325326

326327

327328
def print_group(tests, code, shown_codes):
@@ -336,10 +337,11 @@ def print_group(tests, code, shown_codes):
336337
sys.stdout.write("\n")
337338

338339

339-
def print_summary(tests_by_code, quiet, elapsed):
340+
def print_summary(total_tests, tests_by_code, quiet, elapsed):
340341
if not quiet:
341342
print("\nTesting Time: %.2fs" % elapsed)
342343

344+
print("\nTotal Discovered Tests: %s" % (total_tests))
343345
codes = [c for c in lit.Test.ResultCode.all_codes() if not quiet or c.isFailure]
344346
groups = [(c.label, len(tests_by_code[c])) for c in codes]
345347
groups = [(label, count) for label, count in groups if count]
@@ -352,4 +354,4 @@ def print_summary(tests_by_code, quiet, elapsed):
352354
for (label, count) in groups:
353355
label = label.ljust(max_label_len)
354356
count = str(count).rjust(max_count_len)
355-
print(" %s: %s" % (label, count))
357+
print(" %s: %s (%.2f%%)" % (label, count, float(count) / total_tests * 100))

llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/before-name.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# CHECK: Substitution name 'foo %{name}' is malformed {{.*}}
55
# CHECK-NEXT: in {{DEFINE}}: directive on test line [[#@LINE-4]]
66

7-
# CHECK: Unresolved: 1
7+
# CHECK: Unresolved: 1 {{\([0-9]*.[0-9]*%\)}}

llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/between-name-equals.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# CHECK: Substitution name '%{name}:' is malformed {{.*}}
77
# CHECK-NEXT: in {{DEFINE}}: directive on test line [[#@LINE-4]]
88

9-
# CHECK: Unresolved: 1
9+
# CHECK: Unresolved: 1 {{\([0-9]*.[0-9]*%\)}}

llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/braces-empty.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# CHECK: Substitution name '%{}' is malformed {{.*}}
55
# CHECK-NEXT: in {{DEFINE}}: directive on test line [[#@LINE-4]]
66

7-
# CHECK: Unresolved: 1
7+
# CHECK: Unresolved: 1 {{\([0-9]*.[0-9]*%\)}}

llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/braces-with-dot.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
# CHECK: Substitution name '%{foo.bar}' is malformed {{.*}}
1010
# CHECK-NEXT: in {{DEFINE}}: directive on test line [[#@LINE-4]]
1111

12-
# CHECK: Unresolved: 1
12+
# CHECK: Unresolved: 1 {{\([0-9]*.[0-9]*%\)}}

llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/braces-with-equals.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# CHECK: Substitution name '%{foo' is malformed {{.*}}
77
# CHECK-NEXT: in {{DEFINE}}: directive on test line [[#@LINE-4]]
88

9-
# CHECK: Unresolved: 1
9+
# CHECK: Unresolved: 1 {{\([0-9]*.[0-9]*%\)}}

llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/braces-with-newline.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# CHECK: Substitution name '%{foo bar}' is malformed {{.*}}
66
# CHECK-NEXT: in {{DEFINE}}: directive on test line [[#@LINE-4]]
77

8-
# CHECK: Unresolved: 1
8+
# CHECK: Unresolved: 1 {{\([0-9]*.[0-9]*%\)}}

llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/braces-with-number.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
# CHECK: Substitution name '%{3}' is malformed {{.*}}
1010
# CHECK-NEXT: in {{DEFINE}}: directive on test line [[#@LINE-4]]
1111

12-
# CHECK: Unresolved: 1
12+
# CHECK: Unresolved: 1 {{\([0-9]*.[0-9]*%\)}}

llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/braces-with-ws.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# CHECK: Substitution name '%{foo bar}' is malformed {{.*}}
55
# CHECK-NEXT: in {{DEFINE}}: directive on test line [[#@LINE-4]]
66

7-
# CHECK: Unresolved: 1
7+
# CHECK: Unresolved: 1 {{\([0-9]*.[0-9]*%\)}}

0 commit comments

Comments
 (0)