kaitai_struct
kaitai_struct copied to clipboard
Move test data from `kaitai_struct_tests` to a separate repository
I developing an alternative kaitai struct compiler and I want to test it against existing test files. For that I plan to add a repository with tests as a git submodule so I can quickly get the necessary tests. I already did that for the kaitai_struct_formats
repository.
However, kaitai_struct_tests contains not only test data but also some code that I don't need. Is it possible to move test data from it to the dedicated repository and attach them to the kaitai_struct_tests
itself as a submodule? Then I could just include it as a submodule to my project.
I could try to do a sparse checkout, but sparse checkouts is still experimental and moreover sparse checkouts of git submodules not working out of the box without manual settings in each working directory, if I understand correctly (at least I do not see any sparce-related settings in the committed files, so I need to configure each working directory manually)
Can you provide a more specific breakdown of the contents of tests repo you need and don't need? For example, do you need /formats? /formats_err? /aggregator? /spec? etc
I need all source files that acts as real source for tests, not accompanying scripts and data. I suppose it is:
-
/formats
-- files that should be parsed without errors -
/formats_err
-- files that contains some kind of errors? -
/src
-- if I understand correctly, contains binary files for files in/formats
and probably in/formats_err
folders
Maybe something else, I didn't study the repository in detail.