--- parser3/tests/httpd/run_tests.sh 2024/10/20 23:34:07 1.1 +++ parser3/tests/httpd/run_tests.sh 2024/12/28 17:11:30 1.3 @@ -2,12 +2,19 @@ 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 - echo "\n=============" >>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 "" >>tests.log + echo "=============" >>tests.log done diff -u ok.log tests.log