1 # Check the various features of the GoogleTest format.
3 # RUN: not %{lit} -v --order=random %{inputs}/googletest-format > %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-format :: [[PATH:[Dd]ummy[Ss]ub[Dd]ir/]][[FILE:OneTest\.py]]/0
13 # CHECK: *** TEST 'googletest-format :: [[PATH]][[FILE]]/0{{.*}} FAILED ***
14 # CHECK-NEXT: Script(shard):
16 # CHECK-NEXT: GTEST_OUTPUT=json:{{[^[:space:]]*}} GTEST_SHUFFLE=1 GTEST_TOTAL_SHARDS={{[1-6]}} GTEST_SHARD_INDEX=0 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
34 # CHECK: Unresolved Tests (1):
35 # CHECK-NEXT: googletest-format :: [[PATH]][[FILE]]/FirstTest/subTestD
37 # CHECK-NEXT: Failed Tests (1):
38 # CHECK-NEXT: googletest-format :: [[PATH]][[FILE]]/FirstTest/subTestB
39 # CHECK: Skipped{{ *}}: 1
40 # CHECK: Passed{{ *}}: 3
41 # CHECK: Unresolved{{ *}}: 1
42 # CHECK: Failed{{ *}}: 1