Commit Graph

3 Commits

Author SHA1 Message Date
Henrik G. Olsson 6de8505906 [utils] extract split file support into helper file
Both update_verify_tests and update_generated_tests use the same utility
class for dealing with split-file tests. Extract it into a shared
helper.
2026-02-25 20:37:52 -08:00
Henrik G. Olsson 9419726656 [UVT] fix type error when mulitple split files are updated
When only one file is updated, SplitFile is automatically coerced into a
string as part of the string interpolation. When joining multiple
strings however, this requires an explicit cast.
2026-02-11 15:35:56 -08:00
Henrik G. Olsson 38620d49b1 [utils] integrate update-verify-tests with lit's --update-tests
This adds a lit plugin wrapping the core of update-verify-tests. When
lit is invoked with --update-tests it will call the plugin, which checks
if the failure is due to a -verify mismatch. If it is, it tries to
repair the test. If the source file was originally created by
split-file, the changes are propagated to the parent file.

No tests are added, because I don't want to run nested llvm-lit tests
in Swift's test suite, but the core functionality is tested through
update-verify-tests.py.
2025-11-11 16:33:43 -08:00