mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
ea3abf1cd5
Similar to regular output of LIT tests:
c162f086ba/llvm/utils/lit/lit/TestRunner.py (L1569)
Differential Revision: https://reviews.llvm.org/D102899
39 lines
1.6 KiB
Python
39 lines
1.6 KiB
Python
# Check the various features of the GoogleTest format.
|
|
|
|
# FIXME: this test depends on order of tests
|
|
# RUN: rm -f %{inputs}/googletest-upstream-format/.lit_test_times.txt
|
|
|
|
# RUN: not %{lit} -j 1 -v %{inputs}/googletest-upstream-format > %t.out
|
|
# RUN: FileCheck < %t.out %s
|
|
#
|
|
# END.
|
|
|
|
# CHECK: -- Testing:
|
|
# CHECK: PASS: googletest-upstream-format :: [[PATH:[Dd]ummy[Ss]ub[Dd]ir/]][[FILE:OneTest\.py]]/FirstTest.subTestA
|
|
# CHECK: FAIL: googletest-upstream-format :: [[PATH]][[FILE]]/[[TEST:FirstTest\.subTestB]]
|
|
# CHECK-NEXT: *** TEST 'googletest-upstream-format :: [[PATH]][[FILE]]/[[TEST]]' FAILED ***
|
|
# CHECK-NEXT: Script:
|
|
# CHECK-NEXT: --
|
|
# CHECK-NEXT: [[FILE]] --gtest_filter=[[TEST]]
|
|
# CHECK-NEXT: --
|
|
# CHECK-NEXT: Running main() from gtest_main.cc
|
|
# CHECK-NEXT: I am subTest B, I FAIL
|
|
# CHECK-NEXT: And I have two lines of output
|
|
# CHECK: SKIPPED: googletest-upstream-format :: [[PATH]][[FILE]]/FirstTest.subTestC
|
|
# CHECK: UNRESOLVED: googletest-upstream-format :: [[PATH]][[FILE]]/[[TEST:FirstTest\.subTestD]]
|
|
# CHECK-NEXT: *** TEST 'googletest-upstream-format :: [[PATH]][[FILE]]/[[TEST]]' FAILED ***
|
|
# CHECK-NEXT: Script:
|
|
# CHECK-NEXT: --
|
|
# CHECK-NEXT: [[FILE]] --gtest_filter=[[TEST]]
|
|
# CHECK-NEXT: --
|
|
# CHECK-NEXT: Unable to find [ PASSED ] 1 test. in gtest output
|
|
# CHECK: I am subTest D, I am UNRESOLVED
|
|
# CHECK: ***
|
|
# CHECK: PASS: googletest-upstream-format :: [[PATH]][[FILE]]/ParameterizedTest/0.subTest
|
|
# CHECK: PASS: googletest-upstream-format :: [[PATH]][[FILE]]/ParameterizedTest/1.subTest
|
|
# CHECK: Failed Tests (1)
|
|
# CHECK: Skipped{{ *}}: 1
|
|
# CHECK: Passed{{ *}}: 3
|
|
# CHECK: Unresolved{{ *}}: 1
|
|
# CHECK: Failed{{ *}}: 1
|