do not pkill geomyidae, kill the last background process - geomyidae-tests - geomyidae tests
HTML git clone git://bitreich.org/geomyidae-tests/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae-tests/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 4b6dfb4a3198d8b40b4e75a377f49656cb699c07
DIR parent 0432b0f21312c4a26d4933a863293725e853a95a
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 21 Jul 2023 16:18:10 +0200
do not pkill geomyidae, kill the last background process
allows running multiple geomyidae instances
Diffstat:
M run.sh | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
---
DIR diff --git a/run.sh b/run.sh
@@ -45,25 +45,29 @@ test -e test_counter.txt || ln -sf ../test_counter.txt test_counter.txt
cd ../ || exit 1
"$bin" -4 -d -b "$base" -p "$port" -o "$port" -h "$host" -u "$user" -g "$group" &
+pid=$!
+#echo "PID is: $pid" >&2
run_tests
-pkill geomyidae
+kill "$pid"
chroot=1
"$bin" -4 -c -d -b "$base" -p "$port" -o "$port" -h "$host" -u "$user" -g "$group" &
+pid=$!
+#echo "PID is: $pid" >&2
run_tests
-pkill geomyidae
+kill "$pid"
-# TOOD: test TLS
+# TOOD: test TLS in chroot and non-chroot also.
#tls=1
#chroot=0
-# TODO
+#start geomyidae
#run_tests
-#pkill geomyidae
+#kill geomyidae
#tls=1
#chroot=1
-# TODO
+#start geomyidae
#run_tests
-#pkill geomyidae
+#kill geomyidae
echo "done"