This repository contains solana-conformance test vectors. Each file is one Protobuf serialized test input.
| Path | Type |
|---|---|
instr/inputs/**/*.bin |
org.solana.sealevel.v1.InstrContext |
instr/fixtures/**/*.bin |
org.solana.sealevel.v1.InstrFixture |
- Any new mismatches are added to
instr/inputs/fuzz-mismatches - Once mismatches are debugged, create a fixture out of them (see solana-conformance to see how its done)
- Add the fixture to
instr/fixtures/<program>depending on which native program the mismatch came from
CI will regress against any fixtures in this directory and produce a coverage report on every PR.
.fix files are binary protobufs. To render them as text in git diff, git show and git log -p, run this once per clone (needs protoc, e.g. apt install protobuf-compiler):
scripts/setup-fix-diff.shPull requests that change fixtures get the same decoded diff as a comment. Decoding uses the protosol release pinned in scripts/PROTOSOL_VERSION; bump it when regenerating fixtures for a new protosol version.