kaitai_struct icon indicating copy to clipboard operation
kaitai_struct copied to clipboard

Move test data from `kaitai_struct_tests` to a separate repository

Open Mingun opened this issue 2 years ago • 2 comments

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)

Mingun avatar Nov 28 '21 12:11 Mingun

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

GreyCat avatar Nov 28 '21 13:11 GreyCat

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.

Mingun avatar Nov 28 '21 14:11 Mingun