mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-25 14:56:10 +01:00
Fix possible FP in catch_discover_tests tests
This commit is contained in:
parent
c8363143e7
commit
a0c6a28460
@ -104,14 +104,16 @@ if __name__ == '__main__':
|
||||
catch_test_names = get_test_names(build_path)
|
||||
ctest_test_names = list_ctest_tests(build_path)
|
||||
|
||||
if len(catch_test_names) != len(ctest_test_names):
|
||||
print("Mismatch between catch test names and ctest test names!")
|
||||
mismatched = 0
|
||||
for catch_test in catch_test_names:
|
||||
if catch_test not in ctest_test_names:
|
||||
print(f"Catch2 test '{catch_test}' not found in CTest")
|
||||
mismatched += 1
|
||||
for ctest_test in ctest_test_names:
|
||||
if ctest_test not in catch_test_names:
|
||||
print(f"CTest test '{ctest_test}' not found in Catch2")
|
||||
mismatched += 1
|
||||
|
||||
if mismatched:
|
||||
print(f"Found {mismatched} mismatched tests catch test names and ctest test commands!")
|
||||
exit(1)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user