--- parser3/tests/httpd/run_tests.sh 2024/10/20 23:34:07 1.1 +++ parser3/tests/httpd/run_tests.sh 2024/11/23 15:37:29 1.2 @@ -2,12 +2,18 @@ rm -f tests.log -for f in ???.txt +for f in $(ls ???.txt ???.curl | sort) do echo "running test $f" | tee -a tests.log - cat $f |netcat localhost 8100 >>tests.log + case "$f" in + *.txt) + cat "$f" |netcat localhost 8100 >>tests.log + ;; + *.curl) + curl -s --config "$f" http://localhost:8100/form.html >> tests.log + ;; + esac echo "\n=============" >>tests.log - done diff -u ok.log tests.log