For context, I would like to test a ktx2 image parser against test images, sourced form here:
I added the repository as a dependency so I could get the images via the build system. However, I noticed that zig fetch did not check out the git-lfs images; the .ktx2 files in zig-pkg have a size of ~130 bytes and fail to open in tacentview.
Is this a known issue/limitation?
Separately, how do I refer to files via addEmbedPath?
In my build.zig I added:
const ktx_test_images = b.dependency("kr_ktx", .{})
.path("tests/resources/ktx2/");
exe_tests.root_module.addEmbedPath(ktx_test_images);
The build.zig added this argument:
--embed-dir=$PROJECT_PATH/zig-pkg/N-V-__8AACGgbhMtxWfgz-yclB-Lv2eowiMQ8wEfXVHauHY3/tests/resources/ktx2/
But trying to access an image fails saying the file doesn’t exist:
test {
_ = @embedFile("alpha_complex_premultiplied.ktx2");
}
This happens even when copying the images from a locally cloned version (with the git-lfs images properly checked out) copied into my zig-pkg directory.