add basic compile test case for ere-sp1

This commit is contained in:
Kevaundray Wedderburn
2025-05-11 22:55:22 +01:00
parent 762d20abdb
commit 0e6327f9f2
3 changed files with 21 additions and 0 deletions

2
tests/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
**/target
**/Cargo.lock

View File

@@ -0,0 +1,9 @@
[package]
name = "pacto-test-succinct-guest"
version = "0.1.0"
edition = "2021"
[workspace]
[dependencies]
sp1-zkvm = { git = "https://github.com/succinctlabs/sp1.git" }

View File

@@ -0,0 +1,10 @@
#![no_main]
sp1_zkvm::entrypoint!(main);
pub fn main() {
// Read an input
let n = sp1_zkvm::io::read::<u32>();
// Write n*2 to output
sp1_zkvm::io::commit(&(n * 2));
}