/usr/lib/kannel/test/run-http2-tests.sh is in kannel-extras 1.4.3-2fakesync2build1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #!/bin/sh
#
# Compare lynx -source output and test_http output on a number of URLs.
#
# Lars Wirzenius
for url in `cat test/http-test-urls`
do
echo "Testing $url..."
lynx -source "$url" > lynx.tmp
test/test_http -s "$url" > http.tmp
test/test_http -s "$url" > http2.tmp
if diff -u lynx.tmp http.tmp >/dev/null &&
diff -u lynx.tmp http2.tmp > /dev/null
then
:
else
echo "Lynx and test_http disagree. Oops."
echo "URL is <$url>."
echo "See lynx.tmp and http2.tmp."
exit 1
fi
done
echo "All tests passed. Very good."
rm -f lynx.tmp http.tmp http2.tmp
|