Menu

Tree [5dc849] master dev v168 / server / regression /
 History

HTTPS access


File Date Author Commit
 README 2013-10-23 Mike Solomon Mike Solomon [eec827] Better README for the server regtests
 guido_utilities.py 2013-11-01 Mike Solomon Mike Solomon [9b094e] Fixes naming of regtest folders in GUIDO server
 guido_utilities.pyc unknown
 score_urls.txt 2014-04-05 Mike Solomon Mike Solomon [553250] Makes guido2img an abstract base class for the ...
 server_urls.txt 2013-11-01 Mike Solomon Mike Solomon [eefaa7] Better processing of server php example.
 test.py 2013-11-09 Mike Solomon Mike Solomon [3fd442] Makes guido server cache AR and GR handlers as ...

Read Me

GUIDO server regtest.

To run the regtests for the first time, type:

python test.py baseline

and

python test.py check

In theory, nothing should differ.

For subsequent runs, make sure to stash the old folder before you create a
new one.  i.e.:

rm -rf check/
python test.py check

Otherwise, the script will complain.

If there is a difference betwen the baseline and check, the script will show
the URL as well as change in the result.  For example:

<snip>
URL sent to the server:
32cd115bcaff3272c4ab8c28d5698b8ace5012c5/staffmap?staff=1
--- baseline/gmn-examples/note/headsReverse/07f3d96f1f7043e3119ce29982325c267ba87961/headsReverse_07f3d96f1f7043e3119ce29982325c267ba87961.code

+++
check/gmn-examples/note/headsReverse/07f3d96f1f7043e3119ce29982325c267ba87961/headsReverse_07f3d96f1f7043e3119ce29982325c267ba87961.code

@@ -1 +1 @@

-500
+200
</snip>

This means that the URL sent to the server was
32cd115bcaff3272c4ab8c28d5698b8ace5012c5/staffmap?staff=1.  In the old
version, the return code was 500, but in the new one, the return code was
200.

This info can be written to a logfile (run the script with -h for more
info).

Internally, the regtest directories are structured as a heirarchy similar
to that of the gmn examples. In terminal directories, there are four files:

*.code = the status code
*.url = the url
*.X = the resulting file, where X is either json, svg, png, gif or jpg
*.type = the MIME type

Questions? mike at mikesolomon dot org
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.