noir-lang / noir

Noir is a domain specific language for zero knowledge proofs
https://noir-lang.org
Apache License 2.0
893 stars 199 forks source link

Replace test codegen in build.rs with usage of `libtest-mimic` #6524

Open TomAFrench opened 3 hours ago

TomAFrench commented 3 hours ago

We currently do a lot of codegen in build.rs using the contents of test_programs, this results in us poisoning the build cache due to ACIR build artifacts.

One alternative is to use a custom test harness such as https://github.com/LukasKalbertodt/libtest-mimic/blob/master/examples/tidy.rs (this is nextest compatible. We can then have the test harness be responsible for reading all of the test_program files and allow build.rs to just ignore this directory in future.

TomAFrench commented 3 hours ago

Also worth looking at https://github.com/nextest-rs/datatest-stable