Message127064
I would say writing tests for regrtest is going to be a somewhat tricky task. I think you will have to do some code tweaking to even be able to run certain tests. I believe that regrtest currently has some built in assumptions about the test directory (ie: that it is Lib/test), even though the regrtest main program provides a testdir argument. So the first task is probably going to be getting that argument to actually work, and then exposing a way to set it at the regrtest command level (or, alternatively, moving all command functionality out of __main__ and into main). Once you have that, your test suite can programatically generate a test test-directory and populate it with whatever files you need for each test, using the utilities in test.script_helper. |
|
Date |
User |
Action |
Args |
2011-01-25 22:54:34 | r.david.murray | set | recipients:
+ r.david.murray, brett.cannon, rhettinger, eric.araujo, sandro.tosi |
2011-01-25 22:54:34 | r.david.murray | set | messageid: <1295996074.53.0.0953552154006.issue10848@psf.upfronthosting.co.za> |
2011-01-25 22:54:33 | r.david.murray | link | issue10848 messages |
2011-01-25 22:54:33 | r.david.murray | create | |
|