2 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
10 if __name__
== '__main__':
11 suite
= unittest
.TestSuite()
12 for testname
in glob
.glob('*_test.py'):
13 print 'Adding Test: ' + testname
14 module
= __import__(testname
[:-3])
15 suite
.addTests(unittest
.defaultTestLoader
.loadTestsFromModule(module
))
16 result
= unittest
.TextTestRunner(verbosity
=2).run(suite
)
17 if result
.wasSuccessful():