#SHS
# Run the trimmed css3test suite against the collector on the host.
#
# Serve it first, on the host:
#
#     python tools/testsrv.py 12163
#
# The page POSTs one line per test back to tests/_results/netsurf3.txt, which
# is the only way to see WHICH tests failed -- the score on screen is one
# number. 10.0.2.2 is the host as seen from inside QEMU.
#
# The URL is deliberately unquoted. Shell hands an external program the raw
# remainder of the line (module_command.c: strcpy(args, CMD+arg)), quotes
# included, so a quoted URL would arrive at NetSurf with the quote marks still
# on it. There are no spaces here to protect, so there is nothing to quote.
#
# This shell has no variables and passes no arguments to a script, so the run
# name is a literal: edit the line below to change it. Re-running with the
# same name overwrites the previous result, which is what you want -- a stale
# file read as a fresh one is worse than no file.

echo Running css3test against 10.0.2.2:12163 ...
/hd0/1/netsurf --enable_javascript=1 http://10.0.2.2:12163/css3test/?name=netsurf3
