maemkit-chunked.py
author Joel Maher <joel.maher@gmail.com>
Tue, 01 Sep 2009 22:38:53 -0400
changeset 6 b83403dbc009f122667476f5faefebda857a3092
parent 1 527dc910d556e3649553f3fb0f3beb094bf1eb89
child 15 174c51814c778312530464940ec48c68cd6fe912
permissions -rwxr-xr-x
missing command for prun and mochitest

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()