mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 20:56:05 +00:00

We were seeing an intermittent local test failure of utils\lit\tests\test-output.py in which the elapsed time output was being given in scientific notation. Python automatically represents small floating-point values in scientific notation so I have altered these tests regex to capture output in that format. Differential Revision: https://reviews.llvm.org/D136469
20 lines
552 B
Python
20 lines
552 B
Python
# RUN: %{lit} -v %{inputs}/test-data --output %t.results.out > %t.out
|
|
# RUN: FileCheck < %t.results.out %s
|
|
|
|
# CHECK: {
|
|
# CHECK: "__version__"
|
|
# CHECK: "elapsed"
|
|
# CHECK-NEXT: "tests": [
|
|
# CHECK-NEXT: {
|
|
# CHECK-NEXT: "code": "PASS",
|
|
# CHECK-NEXT: "elapsed": {{[-+0-9.eE]+}},
|
|
# CHECK-NEXT: "metrics": {
|
|
# CHECK-NEXT: "value0": 1,
|
|
# CHECK-NEXT: "value1": 2.3456
|
|
# CHECK-NEXT: }
|
|
# CHECK-NEXT: "name": "test-data :: metrics.ini",
|
|
# CHECK-NEXT: "output": "Test passed."
|
|
# CHECK-NEXT: }
|
|
# CHECK-NEXT: ]
|
|
# CHECK-NEXT: }
|