| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 | 2 |
| 3 # Copyright 2014 The Crashpad Authors. All rights reserved. | 3 # Copyright 2014 The Crashpad Authors. All rights reserved. |
| 4 # | 4 # |
| 5 # Licensed under the Apache License, Version 2.0 (the "License"); | 5 # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 # you may not use this file except in compliance with the License. | 6 # you may not use this file except in compliance with the License. |
| 7 # You may obtain a copy of the License at | 7 # You may obtain a copy of the License at |
| 8 # | 8 # |
| 9 # http://www.apache.org/licenses/LICENSE-2.0 | 9 # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 # | 10 # |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 out_dir = os.path.join(chromium_dir, 'out') | 40 out_dir = os.path.join(chromium_dir, 'out') |
| 41 if not os.path.exists(out_dir): | 41 if not os.path.exists(out_dir): |
| 42 raise Exception('could not determine out_dir', crashpad_dir) | 42 raise Exception('could not determine out_dir', crashpad_dir) |
| 43 | 43 |
| 44 binary_dir = os.path.join(out_dir, args[0]) | 44 binary_dir = os.path.join(out_dir, args[0]) |
| 45 | 45 |
| 46 tests = [ | 46 tests = [ |
| 47 'crashpad_client_test', | 47 'crashpad_client_test', |
| 48 'crashpad_minidump_test', | 48 'crashpad_minidump_test', |
| 49 'crashpad_snapshot_test', | 49 'crashpad_snapshot_test', |
| 50 'crashpad_test_test', |
| 50 'crashpad_util_test', | 51 'crashpad_util_test', |
| 51 ] | 52 ] |
| 52 for test in tests: | 53 for test in tests: |
| 53 print '-' * 80 | 54 print '-' * 80 |
| 54 print test | 55 print test |
| 55 print '-' * 80 | 56 print '-' * 80 |
| 56 subprocess.check_call(os.path.join(binary_dir, test)) | 57 subprocess.check_call(os.path.join(binary_dir, test)) |
| 57 return 0 | 58 return 0 |
| 58 | 59 |
| 59 | 60 |
| 60 if __name__ == '__main__': | 61 if __name__ == '__main__': |
| 61 sys.exit(main(sys.argv[1:])) | 62 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |