Skip to content

Commit

Permalink
change test paths + remove new files
Browse files Browse the repository at this point in the history
  • Loading branch information
PatStiles committed Oct 25, 2024
1 parent f5f4bfa commit 11308c0
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions operator/sp1/lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ pub extern "C" fn verify_sp1_proof_ffi(
mod tests {
use super::*;

const PROOF: &[u8] = include_bytes!("../../../../scripts/test_files/sp1/sp1_fibonacci_new.proof");
const ELF: &[u8] = include_bytes!("../../../../scripts/test_files/sp1/sp1_fibonacci_new.elf");
const PROOF: &[u8] = include_bytes!("../../../../scripts/test_files/sp1/sp1_fibonacci.proof");
const ELF: &[u8] = include_bytes!("../../../../scripts/test_files/sp1/sp1_fibonacci.elf");

#[test]
fn verify_sp1_proof_with_elf_works() {
Expand Down
4 changes: 2 additions & 2 deletions operator/sp1/sp1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"github.com/yetanotherco/aligned_layer/operator/sp1"
)

const ProofFilePath = "../../scripts/test_files/sp1/sp1_fibonacci_new.proof"
const ProofFilePath = "../../scripts/test_files/sp1/sp1_fibonacci.proof"

const ElfFilePath = "../../scripts/test_files/sp1/sp1_fibonacci_new.elf"
const ElfFilePath = "../../scripts/test_files/sp1/sp1_fibonacci.elf"

func TestFibonacciSp1ProofVerifies(t *testing.T) {
proofBytes, err := os.ReadFile(ProofFilePath)
Expand Down
4 changes: 2 additions & 2 deletions operator/sp1_old/lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ pub extern "C" fn verify_sp1_proof_old_ffi(
mod tests {
use super::*;

const PROOF: &[u8] = include_bytes!("../../../../scripts/test_files/sp1/sp1_fibonacci.proof");
const ELF: &[u8] = include_bytes!("../../../../scripts/test_files/sp1/sp1_fibonacci.elf");
const PROOF: &[u8] = include_bytes!("../../../../scripts/test_files/sp1/sp1_fibonacci_old.proof");
const ELF: &[u8] = include_bytes!("../../../../scripts/test_files/sp1/sp1_fibonacci_old.elf");

#[test]
fn verify_sp1_proof_with_elf_works() {
Expand Down
4 changes: 2 additions & 2 deletions operator/sp1_old/sp1_old_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"github.com/yetanotherco/aligned_layer/operator/sp1_old"
)

const ProofFilePath = "../../scripts/test_files/sp1/sp1_fibonacci.proof"
const ProofFilePath = "../../scripts/test_files/sp1/sp1_fibonacci_old.proof"

const ElfFilePath = "../../scripts/test_files/sp1/sp1_fibonacci.elf"
const ElfFilePath = "../../scripts/test_files/sp1/sp1_fibonacci_old.elf"

func TestFibonacciSp1ProofVerifies(t *testing.T) {
proofBytes, err := os.ReadFile(ProofFilePath)
Expand Down
Binary file removed scripts/test_files/sp1/sp1_fibonacci_new.elf
Binary file not shown.
Binary file removed scripts/test_files/sp1/sp1_fibonacci_new.proof
Binary file not shown.

0 comments on commit 11308c0

Please sign in to comment.