mbligh | 0526936 | 2007-10-16 16:58:11 +0000 | [diff] [blame] | 1 | # Copyright Martin J. Bligh, Andy Whitcroft, 2007 |
| 2 | # |
mbligh | ea397bb | 2008-02-02 19:17:51 +0000 | [diff] [blame^] | 3 | # Define the server-side test class |
mbligh | 0526936 | 2007-10-16 16:58:11 +0000 | [diff] [blame] | 4 | # |
mbligh | 0526936 | 2007-10-16 16:58:11 +0000 | [diff] [blame] | 5 | |
mbligh | ea397bb | 2008-02-02 19:17:51 +0000 | [diff] [blame^] | 6 | import os |
| 7 | |
mbligh | 0526936 | 2007-10-16 16:58:11 +0000 | [diff] [blame] | 8 | from subcommand import * |
mbligh | f31b0c0 | 2007-11-29 18:19:22 +0000 | [diff] [blame] | 9 | from common.error import * |
mbligh | 0526936 | 2007-10-16 16:58:11 +0000 | [diff] [blame] | 10 | from utils import * |
| 11 | |
mbligh | ea397bb | 2008-02-02 19:17:51 +0000 | [diff] [blame^] | 12 | import common.test |
mbligh | 0526936 | 2007-10-16 16:58:11 +0000 | [diff] [blame] | 13 | |
| 14 | |
mbligh | ea397bb | 2008-02-02 19:17:51 +0000 | [diff] [blame^] | 15 | class test(common.test.base_test): |
| 16 | pass |
mbligh | dccabe3 | 2008-02-01 17:39:32 +0000 | [diff] [blame] | 17 | |
| 18 | |
mbligh | ea397bb | 2008-02-02 19:17:51 +0000 | [diff] [blame^] | 19 | testname = common.test.testname |
mbligh | 0526936 | 2007-10-16 16:58:11 +0000 | [diff] [blame] | 20 | |
| 21 | |
| 22 | def runtest(job, url, tag, args, dargs): |
mbligh | ea397bb | 2008-02-02 19:17:51 +0000 | [diff] [blame^] | 23 | t = subcommand(common.test.runtest, |
| 24 | [job, url, tag, args, dargs, locals(), globals()]) |
mbligh | 0526936 | 2007-10-16 16:58:11 +0000 | [diff] [blame] | 25 | t.fork_start() |
| 26 | t.fork_waitfor() |