• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Check the various features of the GoogleTest format.
2#
3# RUN: not %{lit} -j 1 -v %{inputs}/googletest-format > %t.out
4# FIXME: Temporarily dump test output so we can debug failing tests on
5# buildbots.
6# RUN: cat %t.out
7# RUN: FileCheck < %t.out %s
8#
9# END.
10
11# CHECK: -- Testing:
12# CHECK: PASS: googletest-format :: {{[Dd]ummy[Ss]ub[Dd]ir}}/OneTest.py/FirstTest.subTestA
13# CHECK: FAIL: googletest-format :: {{[Dd]ummy[Ss]ub[Dd]ir}}/OneTest.py/FirstTest.subTestB
14# CHECK-NEXT: *** TEST 'googletest-format :: {{[Dd]ummy[Ss]ub[Dd]ir}}/OneTest.py/FirstTest.subTestB' FAILED ***
15# CHECK-NEXT: I am subTest B, I FAIL
16# CHECK-NEXT: And I have two lines of output
17# CHECK: ***
18# CHECK: PASS: googletest-format :: {{[Dd]ummy[Ss]ub[Dd]ir}}/OneTest.py/ParameterizedTest/0.subTest
19# CHECK: PASS: googletest-format :: {{[Dd]ummy[Ss]ub[Dd]ir}}/OneTest.py/ParameterizedTest/1.subTest
20# CHECK: Failed Tests (1)
21# CHECK: Passed: 3
22# CHECK: Failed: 1
23
24