On 16 Oct 2022, at 1:58, Russell Sim wrote:

Mirko Vukovic <mirko.vukovic@gmail.com> writes:

somewhat off-topic to the original question:

Can :static-file be used for files part of unit tests? Such as unit tests
for log-parsers.

My understanding is that :static-file components are used to specify any
non-lisp file dependencies of the system. The lisp parts of the unit
tests should use :file declarations.

I have used them for things like, css, graphics, test fixtures,
templates etc, pretty much any file that I know the system depends on,
that aren't common lisp files.

That is correct. I would expect test definitions, and even fixture code, would go in normal :file components (but only for a test system, not for the system under test). Test data, though (e.g., XML documents for XMLS) would be static files.