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.
11 if __name__
== '__main__':
12 suite
= unittest
.TestSuite()
13 cur_dir
= os
.path
.dirname(os
.path
.realpath(__file__
))
14 for testname
in glob
.glob(os
.path
.join(cur_dir
, '*_test.py')):
15 print 'Adding Test: ' + testname
16 module
= __import__(os
.path
.basename(testname
)[:-3])
17 suite
.addTests(unittest
.defaultTestLoader
.loadTestsFromModule(module
))
18 result
= unittest
.TextTestRunner(verbosity
=2).run(suite
)
19 if result
.wasSuccessful():