Some checks are pending
docker-build-cometbft / vars (push) Waiting to run
docker-build-cometbft / build-images (amd64, ubuntu-24.04) (push) Blocked by required conditions
docker-build-cometbft / build-images (arm64, ubuntu-24.04-arm) (push) Blocked by required conditions
docker-build-cometbft / merge-images (push) Blocked by required conditions
docker-build-e2e-node / vars (push) Waiting to run
docker-build-e2e-node / build-images (amd64, ubuntu-24.04) (push) Blocked by required conditions
docker-build-e2e-node / build-images (arm64, ubuntu-24.04-arm) (push) Blocked by required conditions
docker-build-e2e-node / merge-images (push) Blocked by required conditions
58 lines
1.2 KiB
Bash
Executable file
58 lines
1.2 KiB
Bash
Executable file
#! /bin/bash
|
|
set -ex
|
|
|
|
#- kvstore over socket, curl
|
|
|
|
# TODO: install everything
|
|
|
|
export PATH="$GOBIN:$PATH"
|
|
export CMTHOME=$HOME/.cometbft_app
|
|
|
|
function kvstore_over_socket(){
|
|
rm -rf $CMTHOME
|
|
cometbft init
|
|
echo "Starting kvstore_over_socket"
|
|
abci-cli kvstore > /dev/null &
|
|
pid_kvstore=$!
|
|
cometbft node > cometbft.log &
|
|
pid_cometbft=$!
|
|
sleep 5
|
|
|
|
echo "running test"
|
|
bash test/app/kvstore_test.sh "KVStore over Socket"
|
|
|
|
kill -9 $pid_kvstore $pid_cometbft
|
|
}
|
|
|
|
# start cometbft first
|
|
function kvstore_over_socket_reorder(){
|
|
rm -rf $CMTHOME
|
|
cometbft init
|
|
echo "Starting kvstore_over_socket_reorder (ie. start cometbft first)"
|
|
cometbft node > cometbft.log &
|
|
pid_cometbft=$!
|
|
sleep 2
|
|
abci-cli kvstore > /dev/null &
|
|
pid_kvstore=$!
|
|
sleep 5
|
|
|
|
echo "running test"
|
|
bash test/app/kvstore_test.sh "KVStore over Socket"
|
|
|
|
kill -9 $pid_kvstore $pid_cometbft
|
|
}
|
|
|
|
case "$1" in
|
|
"kvstore_over_socket")
|
|
kvstore_over_socket
|
|
;;
|
|
"kvstore_over_socket_reorder")
|
|
kvstore_over_socket_reorder
|
|
;;
|
|
*)
|
|
echo "Running all"
|
|
kvstore_over_socket
|
|
echo ""
|
|
kvstore_over_socket_reorder
|
|
echo ""
|
|
esac
|