Moonsong-Labs / madara-prover-api

RPC server and client to run the Stone Prover on the Madara sequencer.
10 stars 5 forks source link

Internal: script to generate a full test case #16

Closed odesenfans closed 11 months ago

odesenfans commented 11 months ago

Problem: we wish to create different test cases for unit and integration tests. Doing this manually is not trivial.

Solution: introduce a Python script that generates all test case files based on the Cairo program file.

The new generate_test_case.py script takes a Cairo v0 program as input, compiles it, runs it and proves it. It also generates the prover config and parameters based on the number of steps of the program.