mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
e56242dfcc
Improve consistency when printing test results: Previously we were using different labels for group names (the header for the list of, e.g., failing tests) and summary count lines. For example, "Failing Tests"/"Unexpected Failures". This commit changes lit to label things consistently. Improve wording of labels: When talking about individual test results, the first word in "Unexpected Failures", "Expected Passes", and "Individual Timeouts" is superfluous. Some labels contain the word "Tests" and some don't. Let's simplify the names. Before: ``` Failing Tests (1): ... Expected Passes : 3 Unexpected Failures: 1 ``` After: ``` Failed Tests (1): ... Passed: 3 Failed: 1 ``` Reviewed By: ldionne Differential Revision: https://reviews.llvm.org/D77708
49 lines
1.2 KiB
Python
49 lines
1.2 KiB
Python
# Check that we can inject commands at the beginning of a ShTest.
|
|
|
|
# RUN: %{lit} -j 1 %{inputs}/shtest-inject/test-empty.txt --show-all | FileCheck --check-prefix=CHECK-TEST1 %s
|
|
#
|
|
# CHECK-TEST1: Script:
|
|
# CHECK-TEST1: --
|
|
# CHECK-TEST1: echo "THIS WAS"
|
|
# CHECK-TEST1: echo "INJECTED"
|
|
# CHECK-TEST1: --
|
|
#
|
|
# CHECK-TEST1: THIS WAS
|
|
# CHECK-TEST1: INJECTED
|
|
#
|
|
# CHECK-TEST1: Passed: 1
|
|
|
|
# RUN: %{lit} -j 1 %{inputs}/shtest-inject/test-one.txt --show-all | FileCheck --check-prefix=CHECK-TEST2 %s
|
|
#
|
|
# CHECK-TEST2: Script:
|
|
# CHECK-TEST2: --
|
|
# CHECK-TEST2: echo "THIS WAS"
|
|
# CHECK-TEST2: echo "INJECTED"
|
|
# CHECK-TEST2: echo "IN THE FILE"
|
|
# CHECK-TEST2: --
|
|
#
|
|
# CHECK-TEST2: THIS WAS
|
|
# CHECK-TEST2: INJECTED
|
|
# CHECK-TEST2: IN THE FILE
|
|
#
|
|
# CHECK-TEST2: Passed: 1
|
|
|
|
# RUN: %{lit} -j 1 %{inputs}/shtest-inject/test-many.txt --show-all | FileCheck --check-prefix=CHECK-TEST3 %s
|
|
#
|
|
# CHECK-TEST3: Script:
|
|
# CHECK-TEST3: --
|
|
# CHECK-TEST3: echo "THIS WAS"
|
|
# CHECK-TEST3: echo "INJECTED"
|
|
# CHECK-TEST3: echo "IN THE FILE"
|
|
# CHECK-TEST3: echo "IF IT WORKS"
|
|
# CHECK-TEST3: echo "AS EXPECTED"
|
|
# CHECK-TEST3: --
|
|
#
|
|
# CHECK-TEST3: THIS WAS
|
|
# CHECK-TEST3: INJECTED
|
|
# CHECK-TEST3: IN THE FILE
|
|
# CHECK-TEST3: IF IT WORKS
|
|
# CHECK-TEST3: AS EXPECTED
|
|
#
|
|
# CHECK-TEST3: Passed: 1
|