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

rename Harness types for consistency #90

Merged
merged 2 commits into from
Oct 11, 2024
Merged
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
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,12 @@ The harness type should be specified by an environment variable `HARNESS_TYPE` a
- `InstrHarness`
- `TxnHarness`
- `SyscallHarness`
- `ValidateVM`
- `ElfHarness`
- `CpiHarness`
- `VmInterpHarness`
- `VmValidateHarness`
- `ElfLoaderHarness`

`solana-test-suite list-harness-types` will provide the most updated list.


### Data Preparation
Expand Down
8 changes: 4 additions & 4 deletions src/test_suite/fuzz_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import test_suite.syscall.codec_utils as syscall_codec


ElfHarness = HarnessCtx(
ElfLoaderHarness = HarnessCtx(
fuzz_fn_name="sol_compat_elf_loader_v1",
fixture_desc=elf_pb.ELFLoaderFixture.DESCRIPTOR,
)
Expand All @@ -34,19 +34,19 @@
effects_human_encode_fn=syscall_codec.encode_output,
)

CPIHarness = HarnessCtx(
CpiHarness = HarnessCtx(
fuzz_fn_name="sol_compat_vm_cpi_syscall_v1",
fixture_desc=vm_pb.SyscallFixture.DESCRIPTOR,
effects_human_encode_fn=syscall_codec.encode_output,
)

InterpHarness = HarnessCtx(
VmInterpHarness = HarnessCtx(
fuzz_fn_name="sol_compat_vm_interp_v1",
fixture_desc=vm_pb.SyscallFixture.DESCRIPTOR,
effects_human_encode_fn=syscall_codec.encode_output,
)

ValidateVM = HarnessCtx(
VmValidateHarness = HarnessCtx(
fuzz_fn_name="sol_compat_vm_validate_v1",
fixture_desc=vm_pb.ValidateVmFixture.DESCRIPTOR,
)
Expand Down
Loading