Skip to content

Conversation

@Parzival-3141
Copy link
Collaborator

@Parzival-3141 Parzival-3141 commented Sep 1, 2025

Fixes #9, supersedes #8

The test fixtures/resources are now copied to avoid modifying the global cache, requiring a standalone build step to modify the file permissions.

Same goes for the clar source. The previous hackimplementation worked since the libgit dependency path, and by extension the test/resources subpath, was known at configure-time. It was also an obvious misuse of the build API.
Now that it depends on the final fixtures path it's not possible to pass the flag at configure-time. So instead a standalone build step replaces reads of the CLAR_FIXTURE_PATH macro in the source with the final path. Two bugs, one stone.

Stdio polling was removed from ClarTestStep for simplicity. It's probably more efficient too since it's not spinning on a syscall.

Merge checklist

Fixes #9, supercedes #8

The test fixtures/resources are now copied to avoid modifying the global cache,
requiring a standalone build step to modify the file permissions.

Same goes for the `clar` source.
The previous ~hack~implementation worked since the libgit dependency path,
and by extension the `test/resources` subpath, was known at configure-time.
It was also an obvious misuse of the build API.

Now that it depends on the final fixtures path it's not possible to pass the
flag at configure-time. So instead a standalone build step replaces *reads* of the
`CLAR_FIXTURE_PATH` macro in the source with the final path. Two bugs, one stone.

Stdio polling was removed from `ClarTestStep` for simplicity.
It's probably more efficient too since it's not spinning on a syscall.

We'll have to wait until the MbedTLS dependency is updated to zig 0.15.1 before merging.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

please don't write to the packages dir

3 participants