2 # Copyright (c) 2012 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 # add tools folder to sys.path
11 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
12 sys.path.append(os.path.join(SCRIPT_DIR, 'tools', 'tests'))
13 sys.path.append(os.path.join(SCRIPT_DIR, 'build_tools', 'tests'))
26 'sdktools_commands_test',
27 'sdktools_config_test',
30 'update_nacl_manifest_test',
31 'verify_filelist_test',
36 suite = unittest.TestSuite()
37 for module_name in TEST_MODULES:
38 module = __import__(module_name)
39 suite.addTests(unittest.defaultTestLoader.loadTestsFromModule(module))
41 result = unittest.TextTestRunner(verbosity=2).run(suite)
42 return int(not result.wasSuccessful())
44 if __name__ == '__main__':