blob: 1d9a8b0422dd24cb1fffb523fd389126ae8e9fd8 [file] [log] [blame]
mblighdcd57a82007-07-11 23:06:47 +00001#!/usr/bin/python
2#
3# Copyright 2007 Google Inc. Released under the GPL v2
4
5"""This module provides a means to run all the unittests for autoserv
6"""
7
8__author__ = """stutsman@google.com (Ryan Stutsman)"""
9
10import os, sys
11
12# Adjust the path so Python can find the autoserv modules
13src = os.path.abspath("%s/.." % (os.path.dirname(sys.argv[0]),))
14if src not in sys.path:
jadmanski0afbb632008-06-06 21:10:57 +000015 sys.path.insert(1, src)
mblighdcd57a82007-07-11 23:06:47 +000016
17import unittest
18
19
20import autotest_test
21import utils_test
22
23
24def suite():
jadmanski0afbb632008-06-06 21:10:57 +000025 return unittest.TestSuite([autotest_test.suite(),
26 utils_test.suite()])
mblighdcd57a82007-07-11 23:06:47 +000027
28
29if __name__ == '__main__':
jadmanski0afbb632008-06-06 21:10:57 +000030 unittest.TextTestRunner(verbosity=2).run(suite())