lambdaclass / cairo_native

A compiler to convert Cairo's intermediate representation "Sierra" code to MLIR.
https://lambdaclass.github.io/cairo_native/cairo_native
Apache License 2.0
116 stars 43 forks source link

Better support for scarb #599

Open igaray opened 5 months ago

igaray commented 5 months ago

We can currently run Cairo tests through native with out cairo-native-test command in this repo. It would be even better to one day be able to run tests driven scarb through native, so anyone managing their Cairo project with it could for example do scarb test --with-native.

A plan to integrate with scarb and see what changes it would require here would be the first step. A plan on modifications to scarb would be the second.

greged93 commented 5 months ago

Here is the output of the research, first step would be to add a scarb-native-test binary which would be the same as running scarb test but with native execution. Here is the current implementation flow of scarb test:

From the above we can: