[NFC][lit] Add missing UNRESOLVED test

D102899 will change it behavour.
This commit is contained in:
Vitaly Buka 2021-05-21 11:27:44 -07:00
parent 3294001304
commit bbdabb044d
4 changed files with 12 additions and 0 deletions

View File

@ -11,6 +11,7 @@ FirstTest.
subTestA subTestA
subTestB subTestB
subTestC subTestC
subTestD
ParameterizedTest/0. ParameterizedTest/0.
subTest subTest
ParameterizedTest/1. ParameterizedTest/1.
@ -34,6 +35,9 @@ elif test_name == 'FirstTest.subTestC':
print('[ SKIPPED ] 1 test, listed below:') print('[ SKIPPED ] 1 test, listed below:')
print('[ SKIPPED ] FirstTest.subTestC') print('[ SKIPPED ] FirstTest.subTestC')
sys.exit(0) sys.exit(0)
elif test_name == 'FirstTest.subTestD':
print('I am subTest D, I am UNRESOLVED')
sys.exit(0)
elif test_name in ('ParameterizedTest/0.subTest', elif test_name in ('ParameterizedTest/0.subTest',
'ParameterizedTest/1.subTest'): 'ParameterizedTest/1.subTest'):
print('I am a parameterized test, I also PASS') print('I am a parameterized test, I also PASS')

View File

@ -12,6 +12,7 @@ FirstTest.
subTestA subTestA
subTestB subTestB
subTestC subTestC
subTestD
ParameterizedTest/0. ParameterizedTest/0.
subTest subTest
ParameterizedTest/1. ParameterizedTest/1.
@ -36,6 +37,9 @@ elif test_name == 'FirstTest.subTestC':
print('[ SKIPPED ] 1 test, listed below:') print('[ SKIPPED ] 1 test, listed below:')
print('[ SKIPPED ] FirstTest.subTestC') print('[ SKIPPED ] FirstTest.subTestC')
sys.exit(0) sys.exit(0)
elif test_name == 'FirstTest.subTestD':
print('I am subTest D, I am UNRESOLVED')
sys.exit(0)
elif test_name in ('ParameterizedTest/0.subTest', elif test_name in ('ParameterizedTest/0.subTest',
'ParameterizedTest/1.subTest'): 'ParameterizedTest/1.subTest'):
print('I am a parameterized test, I also PASS') print('I am a parameterized test, I also PASS')

View File

@ -19,9 +19,11 @@
# CHECK-NEXT: And I have two lines of output # CHECK-NEXT: And I have two lines of output
# CHECK: *** # CHECK: ***
# CHECK: SKIPPED: googletest-format :: {{[Dd]ummy[Ss]ub[Dd]ir}}/OneTest.py/FirstTest.subTestC # CHECK: SKIPPED: googletest-format :: {{[Dd]ummy[Ss]ub[Dd]ir}}/OneTest.py/FirstTest.subTestC
# CHECK: UNRESOLVED: googletest-format :: {{[Dd]ummy[Ss]ub[Dd]ir}}/OneTest.py/FirstTest.subTestD
# CHECK: PASS: googletest-format :: {{[Dd]ummy[Ss]ub[Dd]ir}}/OneTest.py/ParameterizedTest/0.subTest # CHECK: PASS: googletest-format :: {{[Dd]ummy[Ss]ub[Dd]ir}}/OneTest.py/ParameterizedTest/0.subTest
# CHECK: PASS: googletest-format :: {{[Dd]ummy[Ss]ub[Dd]ir}}/OneTest.py/ParameterizedTest/1.subTest # CHECK: PASS: googletest-format :: {{[Dd]ummy[Ss]ub[Dd]ir}}/OneTest.py/ParameterizedTest/1.subTest
# CHECK: Failed Tests (1) # CHECK: Failed Tests (1)
# CHECK: Skipped{{ *}}: 1 # CHECK: Skipped{{ *}}: 1
# CHECK: Passed{{ *}}: 3 # CHECK: Passed{{ *}}: 3
# CHECK: Unresolved{{ *}}: 1
# CHECK: Failed{{ *}}: 1 # CHECK: Failed{{ *}}: 1

View File

@ -17,9 +17,11 @@
# CHECK-NEXT: And I have two lines of output # CHECK-NEXT: And I have two lines of output
# CHECK: *** # CHECK: ***
# CHECK: SKIPPED: googletest-upstream-format :: {{[Dd]ummy[Ss]ub[Dd]ir}}/OneTest.py/FirstTest.subTestC # CHECK: SKIPPED: googletest-upstream-format :: {{[Dd]ummy[Ss]ub[Dd]ir}}/OneTest.py/FirstTest.subTestC
# CHECK: UNRESOLVED: googletest-upstream-format :: {{[Dd]ummy[Ss]ub[Dd]ir}}/OneTest.py/FirstTest.subTestD
# CHECK: PASS: googletest-upstream-format :: {{[Dd]ummy[Ss]ub[Dd]ir}}/OneTest.py/ParameterizedTest/0.subTest # CHECK: PASS: googletest-upstream-format :: {{[Dd]ummy[Ss]ub[Dd]ir}}/OneTest.py/ParameterizedTest/0.subTest
# CHECK: PASS: googletest-upstream-format :: {{[Dd]ummy[Ss]ub[Dd]ir}}/OneTest.py/ParameterizedTest/1.subTest # CHECK: PASS: googletest-upstream-format :: {{[Dd]ummy[Ss]ub[Dd]ir}}/OneTest.py/ParameterizedTest/1.subTest
# CHECK: Failed Tests (1) # CHECK: Failed Tests (1)
# CHECK: Skipped{{ *}}: 1 # CHECK: Skipped{{ *}}: 1
# CHECK: Passed{{ *}}: 3 # CHECK: Passed{{ *}}: 3
# CHECK: Unresolved{{ *}}: 1
# CHECK: Failed{{ *}}: 1 # CHECK: Failed{{ *}}: 1