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 17 matching lines...) Expand all Loading... |
28 return 1; | 28 return 1; |
29 | 29 |
30 # Until https://code.google.com/p/crashpad/issues/detail?id=4 is fixed, tests | 30 # Until https://code.google.com/p/crashpad/issues/detail?id=4 is fixed, tests |
31 # need to be run from a specific working directory. | 31 # need to be run from a specific working directory. |
32 crashpad_dir = \ | 32 crashpad_dir = \ |
33 os.path.join(os.path.dirname(os.path.abspath(__file__)), os.pardir) | 33 os.path.join(os.path.dirname(os.path.abspath(__file__)), os.pardir) |
34 os.chdir(crashpad_dir) | 34 os.chdir(crashpad_dir) |
35 | 35 |
36 binary_dir = os.path.join('out', args[0]) | 36 binary_dir = os.path.join('out', args[0]) |
37 tests = [ | 37 tests = [ |
38 'client_test', | 38 'crashpad_client_test', |
39 'minidump_test', | 39 'crashpad_minidump_test', |
40 'snapshot_test', | 40 'crashpad_snapshot_test', |
41 'util_test', | 41 'crashpad_util_test', |
42 ] | 42 ] |
43 for test in tests: | 43 for test in tests: |
44 print '-' * 80 | 44 print '-' * 80 |
45 print test | 45 print test |
46 print '-' * 80 | 46 print '-' * 80 |
47 subprocess.check_call(os.path.join(binary_dir, test)) | 47 subprocess.check_call(os.path.join(binary_dir, test)) |
48 return 0 | 48 return 0 |
49 | 49 |
50 | 50 |
51 if __name__ == '__main__': | 51 if __name__ == '__main__': |
52 sys.exit(main(sys.argv[1:])) | 52 sys.exit(main(sys.argv[1:])) |
OLD | NEW |