File:  [parser3project] / parser3 / tests / httpd / run_tests.sh
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Sat Dec 28 17:11:30 2024 UTC (17 months ago) by moko
Branches: MAIN
CVS tags: release_3_5_1, release_3_5_0, HEAD
for FreeBSD compatibility

#!/bin/sh

rm -f tests.log

for f in $(ls ???.txt ???.curl | sort)
do
    echo "running test $f" | tee -a 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

E-mail: