Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] SVM: Integration of SolFuzz-Agave #4384

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "svm-fuzz-harness/fixture/protosol"]
path = svm-fuzz-harness/fixture/protosol
url = https://github.com/firedancer-io/protosol.git
191 changes: 177 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ members = [
"streamer",
"svm",
"svm-conformance",
"svm-fuzz-harness/fixture",
"svm-fuzz-harness/fixture-fs",
"svm-fuzz-harness/instr/entrypoint",
"svm-fuzz-harness/instr/harness",
"svm-rent-collector",
"svm-transaction",
"test-validator",
Expand Down Expand Up @@ -593,6 +597,10 @@ solana-storage-bigtable = { path = "storage-bigtable", version = "=2.2.0" }
solana-storage-proto = { path = "storage-proto", version = "=2.2.0" }
solana-streamer = { path = "streamer", version = "=2.2.0" }
solana-svm = { path = "svm", version = "=2.2.0" }
solana-svm-fuzz-harness-fixture = { path = "svm-fuzz-harness/fixture", version = "=2.2.0" }
solana-svm-fuzz-harness-fixture-fs = { path = "svm-fuzz-harness/fixture-fs", version = "=2.2.0" }
solana-svm-fuzz-harness-instr = { path = "svm-fuzz-harness/instr/harness", version = "=2.2.0" }
solana-svm-fuzz-harness-instr-entrypoint = { path = "svm-fuzz-harness/instr/entrypoint", version = "=2.2.0" }
solana-svm-conformance = { path = "svm-conformance", version = "=2.2.0" }
solana-svm-rent-collector = { path = "svm-rent-collector", version = "=2.2.0" }
solana-svm-transaction = { path = "svm-transaction", version = "=2.2.0" }
Expand Down
1 change: 1 addition & 0 deletions svm-fuzz-harness/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dump
10 changes: 10 additions & 0 deletions svm-fuzz-harness/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

CARGO?=cargo

test: | binaries tests/run_test_vectors

binaries:
$(CARGO) build --manifest-path instr/harness/Cargo.toml --bins --release

tests/run_test_vectors:
scripts/run_test_vectors.sh
21 changes: 21 additions & 0 deletions svm-fuzz-harness/fixture-fs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[package]
name = "solana-svm-fuzz-harness-fixture-fs"
description = "Filesystem management for fuzz tooling."
documentation = "https://docs.rs/solana-svm-fuzz-harness-fixture-fs"
version = { workspace = true }
authors = { workspace = true }
repository = { workspace = true }
homepage = { workspace = true }
license = { workspace = true }
edition = { workspace = true }

[dependencies]
bs58 = { workspace = true, features = ["alloc"] }
prost = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
solana-keccak-hasher = { workspace = true }
thiserror = { workspace = true }

[lints]
workspace = true
20 changes: 20 additions & 0 deletions svm-fuzz-harness/fixture-fs/src/error.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//! Filesystem management errors.

use {
prost::{DecodeError, EncodeError},
thiserror::Error,
};

#[derive(Debug, Error)]
pub enum FsError {
#[error("Decode error")]
DecodeError(#[from] DecodeError),
#[error("Encode error")]
EncodeError(#[from] EncodeError),
#[error("JSON serialization error")]
JsonSerializationError(#[from] serde_json::Error),
#[error("File operation error")]
FileOperationError(#[from] std::io::Error),
#[error("Invalid file extension: {0}")]
InvalidFileExtension(String),
}
Loading
Loading