arocc icon indicating copy to clipboard operation
arocc copied to clipboard

Convert test runners into build steps

Open Vexu opened this issue 2 years ago • 4 comments

For reference look at Cases.zig.

Vexu avatar Nov 08 '23 14:11 Vexu

would like to try to tackle this, if this is not being worked on already

spiral-ladder avatar Nov 26 '23 11:11 spiral-ladder

Not that I know. I'd recommend starting with the integration tests and converting a few different types of tests first and then making a PR.

Vexu avatar Nov 26 '23 11:11 Vexu

@Vexu sorry, was away for a while and didn't have time to look at this - finally got a good look just now.

Have a quick question to understand how I can approach this: What is the end goal of this change? Is this to be able to eventually move towards being able to classify tests in categories (eg. errors, expected types, etc.)? Right now from my (very amateur) understanding the advantage of the approach in the zig repo is being able to have test manifests and to be able to test according to category (error, compile, translate-c). This contrasts with arocc, which can only do the integration tests wholesale now. I'm imagining the goal here is to move towards a more modular test runner?

spiral-ladder avatar Jan 15 '24 14:01 spiral-ladder

No need to apologize, you're volunteering and any help is appreciated!

Being able to more explicitly classify tests is one goal. The tests are already classified but it's based on different flags and macros being set. Other benefits from the change will be the build systems built-in parallelism and caching in some cases.

Vexu avatar Jan 16 '24 16:01 Vexu