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',
26 'translate_options_test',
29 # The tested modules live in the parent directory. Set up the import path
31 my_dir = os.path.dirname(sys.argv[0])
32 sys.path.append(os.path.join(my_dir, '..'))
34 suite = unittest.TestLoader().loadTestsFromNames(MODULES)
35 result = unittest.TextTestRunner(verbosity=2).run(suite)
36 if result.wasSuccessful():