forked from goccy/go-zetasqlite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
449 additions
and
3 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
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
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,28 @@ | ||
#!/bin/bash | ||
|
||
pkill dlv | ||
|
||
#tmux split-window -h -t main:0 | ||
|
||
# Send the script execution command to the second pane (index 1) | ||
tmux send-keys -t main:0.0 'go test -c && dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec ./go-zetasqlite.test' Enter | ||
|
||
# Attach to the tmux session | ||
#tmux attach-session -t my_session | ||
|
||
PORT=2345 # The port to check | ||
DELAY=1 # Number of seconds to wait between checks | ||
|
||
# Function to check if the port is being used | ||
check_port() { | ||
lsof -iTCP:$PORT -sTCP:LISTEN -t >/dev/null | ||
} | ||
|
||
# Loop until the program is listening on the port | ||
while ! check_port; do | ||
echo "Waiting for the program to start listening on port $PORT..." | ||
sleep $DELAY | ||
done | ||
|
||
# Program is now listening | ||
echo "The program is now listening on port $PORT." |
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,28 @@ | ||
#!/bin/bash | ||
|
||
pkill dlv | ||
|
||
#tmux split-window -h -t main:0 | ||
|
||
# Send the script execution command to the second pane (index 1) | ||
tmux send-keys -t main:0.0 ' go test -c 2>&1 | logsane-cli && ./go-zetasqlite.test | lnav -n' Enter | ||
|
||
# Attach to the tmux session | ||
#tmux attach-session -t my_session | ||
|
||
#PORT=2345 # The port to check | ||
#DELAY=1 # Number of seconds to wait between checks | ||
# | ||
## Function to check if the port is being used | ||
#check_port() { | ||
# lsof -iTCP:$PORT -sTCP:LISTEN -t >/dev/null | ||
#} | ||
# | ||
## Loop until the program is listening on the port | ||
#while ! check_port; do | ||
# echo "Waiting for the program to start listening on port $PORT..." | ||
# sleep $DELAY | ||
#done | ||
# | ||
## Program is now listening | ||
#echo "The program is now listening on port $PORT." |
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
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
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
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
Oops, something went wrong.