Skip to content

Commit

Permalink
Merge pull request #62 from firedancer-io/mjain/update-proto
Browse files Browse the repository at this point in the history
Scripts to simplify exec and debug process
  • Loading branch information
mjain-jump authored Jul 16, 2024
2 parents 632a03b + 827de6b commit 440c775
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
20 changes: 20 additions & 0 deletions debug_it.sh
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"
18 changes: 18 additions & 0 deletions exec_it.sh
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"

0 comments on commit 440c775

Please sign in to comment.