Skip to content

Commit

Permalink
Fix the integration tests for the range check builtin (#691)
Browse files Browse the repository at this point in the history
* Fix the integration tests for the builtins

* Skip cairo1 tests
  • Loading branch information
MaksymMalicki authored Feb 17, 2025
1 parent 77fceb0 commit 0b06ce9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,23 @@ integration:
if [ ! -d rust_vm_bin ]; then \
mkdir -p rust_vm_bin; \
fi; \
if [ ! -d rust_vm_bin/scj/scj ]; then \
mkdir -p rust_vm_bin/scj/scj; \
if [ ! -d rust_vm_bin/ctj/ctj ]; then \
mkdir -p rust_vm_bin/ctj/ctj; \
fi; \
if [ ! -d rust_vm_bin/starkware/starkware ]; then \
mkdir -p rust_vm_bin/starkware/starkware; \
fi; \
if [ ! -d rust_vm_bin/lambdaclass/lambdaclass ]; then \
mkdir -p rust_vm_bin/lambdaclass/lambdaclass; \
fi; \
if [ ! -f ./rust_vm_bin/scj/scj/sierra-compile-json ]; then \
cd rust_vm_bin/scj/scj && \
git clone --single-branch --branch feat/main-casm-json --depth=1 https://github.com/MaksymMalicki/cairo-fork.git && \
cd cairo-fork/crates/bin && cargo build --release --bin sierra-compile-json && \
if [ ! -f ./rust_vm_bin/ctj/ctj/cairo-to-json ]; then \
cd rust_vm_bin/ctj/ctj && \
git clone --single-branch --branch cairo-to-json --depth=1 https://github.com/MaksymMalicki/cairo-json.git && \
cd cairo-json/crates/bin && cargo build --release --bin cairo-to-json && \
cd ../../../ && \
mv cairo-fork/target/release/sierra-compile-json . && \
mv cairo-fork/corelib ../ && \
rm -rf cairo-fork && \
mv cairo-json/target/release/cairo-to-json . && \
mv cairo-json/corelib ../ && \
rm -rf cairo-json && \
cd ../../../; \
fi; \
if [ ! -f ./rust_vm_bin/starkware/starkware/cairo-run ]; then \
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/cairo1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func compileCairoCode(path string) (string, error) {
var cliCommand string
var args []string

cliCommand = "../rust_vm_bin/scj/scj/sierra-compile-json"
cliCommand = "../rust_vm_bin/ctj/ctj/cairo-to-json"
args = []string{
path,
compiledOutput,
Expand Down

0 comments on commit 0b06ce9

Please sign in to comment.