Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / native_client / build / package_version / run_package_version_tests.py
1 #!/usr/bin/python
2 # Copyright (c) 2014 The Native Client 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 """Run all python tests in this directory."""
7
8 import sys
9 import unittest
10
11
12 MODULES = [
13     'archive_info_test',
14     'package_info_test',
15     'package_version_test',
16     'packages_info_test',
17     'revision_info_test',
18 ]
19
20 suite = unittest.TestLoader().loadTestsFromNames(MODULES)
21 result = unittest.TextTestRunner(verbosity=2).run(suite)
22 if result.wasSuccessful():
23   sys.exit(0)
24 else:
25   sys.exit(1)