[WIP] Make it possible to pass multiple old datamodel definitions to the generator script #828
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
BEGINRELEASENOTES
exactly as it appears between the two bold lines
ENDRELEASENOTES
Fixes #796
This PR adds the possibility to pass multiple old datamodel versions to the datmodel generator and adds tests using two old versions. With these changes it should now be possible to pass an arbitrary number of old schemas to the code generator and validate that each evolution from the old version to the current version is possible (otherwise there will be no code generation).
To achieve this the grammar for the evolution files had to be changed to accommodate for the possibility of describing all possible schema jumps in one evolution file.
Compared to #817 the cmake functionality was slightly adapted to accept multiple old datamodel versions and to allow to write to multiple (i.e. exactly two) old versions and reading those files back from one source file.