Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / tools / findit / run_all_tests.py
1 #!/usr/bin/env python
2 # Copyright (c) 2014 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.
5
6 import sys
7 import unittest
8
9 from chromium_deps_unittest import ChromiumDEPSTest
10
11
12 if __name__ == '__main__':
13    all_tests_suite = unittest.defaultTestLoader.loadTestsFromModule(
14              sys.modules[__name__])
15    tests = unittest.TestSuite(all_tests_suite)
16    result = unittest.TextTestRunner(stream=sys.stdout, verbosity=2).run(tests)
17    sys.exit(len(result.failures) + len(result.errors))