Skip to content

Commit

Permalink
add env var defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
kbhargava-jump committed Sep 4, 2024
1 parent 3f113cc commit 67b5aec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ $ solana-test-suite create-fixtures [OPTIONS]
**Options**:

* `-i, --input-dir PATH`: Either a file or directory containing InstrContext messages [default: corpus8]
* `-s, --solana-target PATH`: Solana (or ground truth) shared object (.so) target file path [default: impl/lib/libsolfuzz_agave_v2.0.so]
* `-t, --target PATH`: Shared object (.so) target file paths (pairs with --keep-passing). Targets must have sol_compat_instr_execute_v1 defined
* `-s, --solana-target PATH`: Solana (or ground truth) shared object (.so) target file path [default: /home/kbhargava/repos/solfuzz-agave/target/release/libsolfuzz_agave.so]
* `-t, --target PATH`: Shared object (.so) target file paths (pairs with --keep-passing). Targets must have sol_compat_instr_execute_v1 defined [default: /home/kbhargava/repos/firedancer/build/native/gcc/lib/libfd_exec_sol_compat.so]
* `-o, --output-dir PATH`: Output directory for fixtures [default: test_fixtures]
* `-p, --num-processes INTEGER`: Number of processes to use [default: 4]
* `-r, --readable`: Output fixtures in human-readable format
Expand Down Expand Up @@ -166,8 +166,8 @@ $ solana-test-suite run-tests [OPTIONS]
**Options**:

* `-i, --input PATH`: Single input file or input directory containing InstrContext or InstrFixture messages [default: corpus8]
* `-s, --solana-target PATH`: Solana (or ground truth) shared object (.so) target file path [default: impl/lib/libsolfuzz_agave_v2.0.so]
* `-t, --target PATH`: Shared object (.so) target file paths [default: impl/lib/libsolfuzz_firedancer.so]
* `-s, --solana-target PATH`: Solana (or ground truth) shared object (.so) target file path [default: /home/kbhargava/repos/solfuzz-agave/target/release/libsolfuzz_agave.so]
* `-t, --target PATH`: Shared object (.so) target file paths [default: /home/kbhargava/repos/firedancer/build/native/gcc/lib/libfd_exec_sol_compat.so]
* `-o, --output-dir PATH`: Output directory for test results [default: test_results]
* `-p, --num-processes INTEGER`: Number of processes to use [default: 4]
* `-r, --randomize-output-buffer`: Randomizes bytes in output buffer before shared library execution
Expand Down
12 changes: 6 additions & 6 deletions src/test_suite/test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,13 @@ def create_fixtures(
help=f"Either a file or directory containing {globals.harness_ctx.context_type.__name__} messages",
),
solana_shared_library: Path = typer.Option(
Path("impl/lib/libsolfuzz_agave_v2.0.so"),
Path(os.getenv("SOLFUZZ_TARGET", "impl/lib/libsolfuzz_agave_v2.0.so")),
"--solana-target",
"-s",
help="Solana (or ground truth) shared object (.so) target file path",
),
shared_libraries: List[Path] = typer.Option(
[],
[Path(os.getenv("FIREDANCER_TARGET", "impl/lib/libsolfuzz_firedancer.so"))],
"--target",
"-t",
help="Shared object (.so) target file paths (pairs with --keep-passing)."
Expand Down Expand Up @@ -290,13 +290,13 @@ def run_tests(
f" or { globals.harness_ctx.fixture_type.__name__ } messages",
),
solana_shared_library: Path = typer.Option(
Path("impl/lib/libsolfuzz_agave_v2.0.so"),
Path(os.getenv("SOLFUZZ_TARGET", "impl/lib/libsolfuzz_agave_v2.0.so")),
"--solana-target",
"-s",
help="Solana (or ground truth) shared object (.so) target file path",
),
shared_libraries: List[Path] = typer.Option(
[Path("impl/lib/libsolfuzz_firedancer.so")],
[Path(os.getenv("FIREDANCER_TARGET", "impl/lib/libsolfuzz_firedancer.so"))],
"--target",
"-t",
help="Shared object (.so) target file paths",
Expand Down Expand Up @@ -523,13 +523,13 @@ def list_harness_types():
)
def debug_mismatches(
solana_shared_library: Path = typer.Option(
Path(os.getenv("SOLFUZZ_TARGET", "")),
Path(os.getenv("SOLFUZZ_TARGET", "impl/lib/libsolfuzz_agave_v2.0.so")),
"--solana-target",
"-s",
help="Solana (or ground truth) shared object (.so) target file path",
),
shared_libraries: List[Path] = typer.Option(
[Path(os.getenv("FIREDANCER_TARGET", ""))],
[Path(os.getenv("FIREDANCER_TARGET", "impl/lib/libsolfuzz_firedancer.so"))],
"--target",
"-t",
help="Shared object (.so) target file paths (pairs with --keep-passing)."
Expand Down

0 comments on commit 67b5aec

Please sign in to comment.