Skip to content
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
11 changes: 11 additions & 0 deletions write-program-buffer/tests/integration/prepare-clamp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@ if [ -z "$PRE_LEN" ]; then
exit 1
fi

DEPLOY_SLOT=$(solana slot -u "$RPC_URL")
for i in $(seq 1 30); do
CURRENT_SLOT=$(solana slot -u "$RPC_URL")
[ "$CURRENT_SLOT" -gt "$DEPLOY_SLOT" ] && break
if [ "$i" -eq 30 ]; then
echo "Validator did not advance past slot $DEPLOY_SLOT" >&2
exit 1
fi
sleep 1
done

cp "$FIXTURES_DIR/program-big.so" target/deploy/fixture-clamp.so

echo "Prepared clamp scenario: deployer=$DEPLOYER program-id=$PROGRAM_ID pre-len=$PRE_LEN"
Expand Down
11 changes: 11 additions & 0 deletions write-program-buffer/tests/integration/prepare-delta.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ if [ -z "$PRE_LEN" ]; then
exit 1
fi

DEPLOY_SLOT=$(solana slot -u "$RPC_URL")
for i in $(seq 1 30); do
CURRENT_SLOT=$(solana slot -u "$RPC_URL")
[ "$CURRENT_SLOT" -gt "$DEPLOY_SLOT" ] && break
if [ "$i" -eq 30 ]; then
echo "Validator did not advance past slot $DEPLOY_SLOT" >&2
exit 1
fi
sleep 1
done

cp "$FIXTURES_DIR/program-medium.so" target/deploy/fixture-delta.so

echo "Prepared delta scenario: deployer=$DEPLOYER program-id=$PROGRAM_ID pre-len=$PRE_LEN delta=$DELTA"
Expand Down
11 changes: 11 additions & 0 deletions write-program-buffer/tests/integration/prepare-nearmax.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,17 @@ if [ "$PRE_LEN" -ne "$TARGET_CURRENT" ]; then
exit 1
fi

EXTEND_SLOT=$(solana slot -u "$RPC_URL")
for i in $(seq 1 30); do
CURRENT_SLOT=$(solana slot -u "$RPC_URL")
[ "$CURRENT_SLOT" -gt "$EXTEND_SLOT" ] && break
if [ "$i" -eq 30 ]; then
echo "Validator did not advance past slot $EXTEND_SLOT" >&2
exit 1
fi
sleep 1
done

echo "Prepared nearmax scenario: deployer=$DEPLOYER program-id=$PROGRAM_ID pre-len=$PRE_LEN headroom=$HEADROOM"
{
echo "keypair=$(cat "$SCENARIO_DIR/deployer.json")"
Expand Down
Loading