2 # Copyright (c) 2012 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.
6 """Run all python tests in this directory."""
13 'default_output_filename_test',
14 'diagnostic_flags_test',
17 'expand_response_file_test',
19 'fix_private_libs_test',
20 'force_file_type_test',
22 'native_objects_test',
24 'pnacl_compress_test',
25 'pnacl_ld_options_test',
27 'translate_options_test',
30 # The tested modules live in the parent directory. Set up the import path
32 my_dir = os.path.dirname(sys.argv[0])
33 sys.path.append(os.path.join(my_dir, '..'))
35 suite = unittest.TestLoader().loadTestsFromNames(MODULES)
36 result = unittest.TextTestRunner(verbosity=2).run(suite)
37 if result.wasSuccessful():