regress.py has been added to the Chandler tools directory. This is a
very basic script to help run tests against a series of Chandler
revisions. It currently has been tested only on winXP. I would
welcome comments on this script.
Usage information which can also be seen by running it with no arguments
is below.
python regress.py --startRev=xxxx --endRev=xxxx --repeat=x
--test=testscript.py [-dh]
or
python regress.py -sxxxx -exxxx -rx -ttestscript.py [-dh]
Changes svn tree to each revision between startRev, endRev and runs
supplied test(s)
-s --startRev is lowest svn revision number to test
-e --endRev is highest svn revision number to test
-r --repeat is number of times to repeat test at each revision
-t --test is path and file name of test script to run
-h --help prints this
-d --directory if present 'test' argument is interpreted as a path to
a directory of tests
rather than a single file, all .py files in the
directory will be run as tests
Test output is collected in a file named regress_result.txt
Output file contains svn rev, test name, test status (pass, fail), and
elapsed time for test in a comma delimited format
This script needs to be run in a svn directory with read only access,
script does not deal with ssh passwords
Requires CHANDLERHOME environment variable to be set
Paths to test files should be relative paths starting from CHANDLERHOME
Dan
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Open Source Applications Foundation "Dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/dev