diff options
author | Linus Nordberg <linus@nordberg.se> | 2019-04-08 22:09:01 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2019-04-08 22:09:01 +0200 |
commit | 9f01d23cb0247117cc074645bf18c22794842595 (patch) | |
tree | 6ea3f49c6910c89b8699e781c0c8950cef514a72 | |
parent | Echo current pid, for easier testing with a client (diff) | |
download | wg-dynamic-9f01d23cb0247117cc074645bf18c22794842595.tar.xz wg-dynamic-9f01d23cb0247117cc074645bf18c22794842595.zip |
Help with running the server under gdb
-rwxr-xr-x | tests/netsh.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/netsh.sh b/tests/netsh.sh index 874af05..df97a24 100755 --- a/tests/netsh.sh +++ b/tests/netsh.sh @@ -83,4 +83,8 @@ n1 ping6 -c 10 -f -W 1 fe80::badc:0ffe:e0dd:f00d%wg0 pp echo "PID: $$" -n1 ./wg-dynamic-server wg0 +if [ -z "$NETSH_GDB" ]; then + n1 ./wg-dynamic-server wg0 +else # Try NETSH_GDB="-ex run" tests./netsh.sh + n1 gdb $NETSH_GDB --args ./wg-dynamic-server wg0 +fi |