-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from firedancer-io/mjain/update-proto
Scripts to simplify exec and debug process
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
# usage: ./debug_it.sh <ctx_file> [a] | ||
# arg 1 is ctx file | ||
# arg 2 is optional, if 'a' then use agave target, otherwise use fd target | ||
# example: ./debug_it.sh <ctx_file> a | ||
|
||
# make sure your python venv is activated: source solana-conformance/test_suite_env/bin/activate | ||
|
||
if [ "$2" = "a" ]; then | ||
echo "DEBUGGING THROUGH AGAVE..." | ||
TARGET=$SOL_TARGET | ||
DEBUGGER="rust-gdb" | ||
else | ||
echo "DEBUGGING THROUGH FD..." | ||
TARGET=$FD_TARGET | ||
DEBUGGER="gdb" | ||
fi | ||
|
||
"$DEBUGGER" --args python3.11 -m test_suite.test_suite exec-instr -t "$TARGET" -i "$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
# usage: ./exec_it.sh <ctx_file> [a] | ||
# arg 1 is ctx file | ||
# arg 2 is optional, if 'a' then use agave target, otherwise use fd target | ||
# example: ./exec_it.sh <ctx_file> a | ||
|
||
# make sure your python venv is activated: source solana-conformance/test_suite_env/bin/activate | ||
|
||
if [ "$2" = "a" ]; then | ||
echo "EXECUTING THROUGH AGAVE..." | ||
TARGET=$SOL_TARGET | ||
else | ||
echo "EXECUTING THROUGH FD..." | ||
TARGET=$FD_TARGET | ||
fi | ||
|
||
solana-test-suite exec-instr -t "$TARGET" -i "$1" |