maemkit-chunked.py
author Clint Talbert <ctalbert@mozilla.com>
Thu, 26 Mar 2009 12:26:40 -0700
changeset 1 527dc910d556e3649553f3fb0f3beb094bf1eb89
parent 0 a0103806b64dc7ab99e4ffe6cb6ff1389d8d91b9
child 15 174c51814c778312530464940ec48c68cd6fe912
permissions -rwxr-xr-x
1[windows,qtip,tip,qbase] a7932594cea9 2009-03-26 15:21 -0400 joel [mq]: windows

import mochidriver, chromedriver, refdriver, xpcdriver, maemkit


def runTest(kit):
  if (kit.testtype == "mochitest"): testdriver = mochidriver.MochiKit(kit)
  if (kit.testtype == "chrome"): testdriver = chromedriver.ChromeDriver(kit)
  if (kit.testtype == "reftest"): testdriver = refdriver.Reftest(kit)
  if (kit.testtype == "crashtest"): testdriver = refdriver.Crashtest(kit)
  if (kit.testtype == "xpcshell"): testdriver = xpcdriver.XpcDriver(kit)

  if (testdriver != ""):
    testdriver.getTests()
    testdriver.prepTests()
    testdriver.runTests()
    testdriver.parseLogs()

def main():
  mk = maemkit.MaemKit()
  runTest(mk)

if __name__ == "__main__":
  main()