openzim / zim-testing-suite

This repository contains testing zim files for libzim and other openzim repositories.
3 stars 3 forks source link

Source code recipe to build the test ZIM files should be here #3

Open kelson42 opened 3 years ago

kelson42 commented 3 years ago

Many things are currently hard to do because we don't have these pieces of code.

mgautierfr commented 4 months ago

They are in https://github.com/openzim/zim-testing-suite/blob/main/scripts/create_test_zimfiles And source data are in https://github.com/openzim/zim-testing-suite/tree/main/src

kelson42 commented 4 months ago

@mgautierfr So we can recreate the ZIM files anytime? Or at least we can now how which ZIM file has been created? Anyway all of this should be clearly documented.

mgautierfr commented 4 months ago

So we can recreate the ZIM files anytime? Or at least we can now how which ZIM file has been created? Anyway all of this should be clearly documented.

Yes. We don't patch binary file manually. We always run the script create_zim_files (which create a base small.zim using zimwriterfs, and binary patch this file to generate broken zim files)