1 # Check the various features of the GoogleTest format.
3 # RUN: not %{lit} -v --no-gtest-sharding --order=random %{inputs}/googletest-no-sharding > %t.out
4 # FIXME: Temporarily dump test output so we can debug failing tests on
7 # RUN: FileCheck < %t.out %s
12 # CHECK: FAIL: googletest-no-sharding :: [[PATH:[Dd]ummy[Ss]ub[Dd]ir/]][[FILE:OneTest\.py]]
13 # CHECK: *** TEST 'googletest-no-sharding :: [[PATH]][[FILE]]' FAILED ***
14 # CHECK-NEXT: Script(shard):
16 # CHECK-NEXT: GTEST_OUTPUT=json:{{[^[:space:]]*}} GTEST_SHUFFLE=1 GTEST_RANDOM_SEED=123 {{.*}}[[FILE]]
21 # CHECK-NEXT: [[FILE]] --gtest_filter=FirstTest.subTestB
23 # CHECK-NEXT: I am subTest B output
25 # CHECK-NEXT: I am subTest B, I FAIL
26 # CHECK-NEXT: And I have two lines of output
30 # CHECK-NEXT: [[FILE]] --gtest_filter=FirstTest.subTestD
32 # CHECK-NEXT: unresolved test result
35 # CHECK: Unresolved Tests (1):
36 # CHECK-NEXT: googletest-no-sharding :: FirstTest/subTestD
38 # CHECK-NEXT: Failed Tests (1):
39 # CHECK-NEXT: googletest-no-sharding :: FirstTest/subTestB
40 # CHECK: Skipped{{ *}}: 1
41 # CHECK: Passed{{ *}}: 3
42 # CHECK: Unresolved{{ *}}: 1
43 # CHECK: Failed{{ *}}: 1