diff options
Diffstat (limited to 'tests/runtest.sh')
-rwxr-xr-x | tests/runtest.sh | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/tests/runtest.sh b/tests/runtest.sh deleted file mode 100755 index d3e8887..0000000 --- a/tests/runtest.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -# -# This test requires surf from http://surf.suckless.org, -# patched with surfuri_js.patch - -test $# -ne 2 && echo usage $0 testhtml expectedoutput && exit 1 - -testjs=tests/showsimple.js -htmlloadtime=2 -scriptloadtime=2 - -surf -x "file://./$1" > testxid 2>testoutput & -pid=$! -sleep $htmlloadtime -xid=`cat testxid` -xprop -id $xid -f _SURF_GO 8t -set _SURF_GO "javascript:`cat $testjs`" -sleep $scriptloadtime -kill $pid - -sed 's/^\*\* Message:[^<]*//g' < testoutput > testoutputbody - -diff "$2" testoutputbody -result=$? - -rm -f testxid testoutput testoutputbody -exit $result |