record request path and TLS and chroot settings - 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 c2bb65fa30853261dd56108ffdd8e216c4f2982b DIR parent 77772ad44967239799ef0fa93ab220d8d133b15e HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 21 Jul 2023 14:20:21 +0200 record request path and TLS and chroot settings Diffstat: M run.sh | 25 +++++++++++++++++++++++++ M tests | 2 -- 2 files changed, 25 insertions(+), 2 deletions(-) --- DIR diff --git a/run.sh b/run.sh @@ -6,9 +6,20 @@ base="$(pwd)" user="hiltjo" group="hiltjo" +tls=0 +chroot=0 +counter=0 run_tests() { while read -r line; do printf '%s\r\n' "$line" | nc "$host" "$port" + + f="results/${counter}.txt" + if test -f "$f"; then + echo "" >> "$f" + echo "request path was: $line, tls=$tls, chroot=$chroot" >> "$f" + counter=$((counter + 1)) + fi + done < tests } @@ -28,8 +39,22 @@ rm -f test_counter.txt run_tests pkill geomyidae +chroot=1 "$bin" -4 -c -d -b "$base" -p "$port" -o "$port" -h "$host" -u "$user" -g "$group" & run_tests pkill geomyidae # TOOD: test TLS +#tls=1 +#chroot=0 +# TODO +#run_tests +#pkill geomyidae + +#tls=1 +#chroot=1 +# TODO +#run_tests +#pkill geomyidae + +echo "done" DIR diff --git a/tests b/tests @@ -1,7 +1,5 @@ -test.cgi /test.cgi //test.cgi -/?query /test.cgi?query /test.cgi?query=test /test.cgi?query=/test