]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Misc. testing
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Wed, 24 Sep 2025 18:03:50 +0000 (12:03 -0600)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Wed, 24 Sep 2025 18:03:50 +0000 (12:03 -0600)
commit6d361ea67861d25a67de48ff8a613d71409998fd
tree828d8718c4ffd439d98aa77bfb2833951f301a31
parentc2095c11910e4f022a301fd0e63eed390cdc4250
Misc. testing

Back in May, I tried creating unit tests for the cache's new stateful features.
This scaled poorly, which later led to the creation of the Barry/RPT framework.

I'm throwing away those failed unit tests, but I'm keeping the few bugfixes I
managed to whip up while I was coding them.

The only special mention is "separate cache_setup() into two steps."
This is needed because all involved processes need to work in the cache
directory. Ensuring the directory exists and has been chdir'd into before
subprocesses are spawned is a simple means to achieve that.
12 files changed:
src/cache.c
src/cache.h
src/ext.c
src/main.c
src/object/certificate.c
src/object/tal.c
src/rsync.c
src/task.c
src/types/name.c
test/cache_test.c
test/mock.c
test/task_test.c