Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
Stavbe committed Dec 16, 2024
1 parent e4bb8a3 commit df21630
Show file tree
Hide file tree
Showing 13 changed files with 5,397 additions and 34 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cairo-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
- uses: actions/checkout@v3
with:
lfs: false
- run: ./scripts/run_large_test.sh
- uses: dtolnay/rust-toolchain@master
with:
components: rustfmt
Expand Down
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# stwo-cairo-air

This repo is using Git LFS
```
https://packagecloud.io/github/git-lfs/install
sudo apt-get update
sudo apt-get install git-lfs
git lfs install
git lfs fetch --all
git lfs pull
This repo utilizes Google Cloud Storage for test artifacts. The test artifacts can be found and modified at the following URL:
https://console.cloud.google.com/storage/browser/stwo-cairo-testing-artifacts?project=starkware-thirdparties
To run the test: "test_read_from_large_files", use the run_large_test.sh script.
This script will:
Download the required input files from Google Cloud Storage.
Execute the test.
Delete the downloaded files after the test is complete.
This test is configured to run automatically in the CI pipeline and will be ignored unless the --features "ci-test" flag is specified in the cargo test command."
```
10 changes: 5 additions & 5 deletions stwo_cairo_prover/crates/prover/src/input/vm_import/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ pub mod tests {

pub fn large_cairo_input() -> CairoInput {
let mut d = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
d.push("test_data/large_cairo_input");
d.push("test_data/test_read_from_large_files");

import_from_vm_output(d.join("pub.json").as_path(), d.join("priv.json").as_path()).expect(
"
Expand Down Expand Up @@ -207,10 +207,10 @@ pub mod tests {
.len(),
0
);
assert_eq!(components.mul_opcode_is_small_t_is_imm_t.len(), 8996);
assert_eq!(components.mul_opcode_is_small_t_is_imm_f.len(), 6563);
assert_eq!(components.mul_opcode_is_small_f_is_imm_f.len(), 4583);
assert_eq!(components.mul_opcode_is_small_f_is_imm_t.len(), 9047);
assert_eq!(components.mul_opcode_is_small_t_is_imm_t.len(), 0);
assert_eq!(components.mul_opcode_is_small_t_is_imm_f.len(), 0);
assert_eq!(components.mul_opcode_is_small_f_is_imm_f.len(), 11146);
assert_eq!(components.mul_opcode_is_small_f_is_imm_t.len(), 18043);
assert_eq!(components.ret_opcode.len(), 49472);
}

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file modified stwo_cairo_prover/crates/prover/test_data/small_cairo_input/mem
Binary file not shown.
Loading

0 comments on commit df21630

Please sign in to comment.