| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright 2012 the V8 project authors. All rights reserved. | 3 # Copyright 2012 the V8 project authors. All rights reserved. |
| 4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
| 6 # met: | 6 # met: |
| 7 # | 7 # |
| 8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
| 9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
| 10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 path = ("http://v8.googlecode.com/svn/branches/bleeding_edge/" | 117 path = ("http://v8.googlecode.com/svn/branches/bleeding_edge/" |
| 118 "tools/testrunner") | 118 "tools/testrunner") |
| 119 _Cmd("svn checkout --force %s %s" % (path, testrunner_dir)) | 119 _Cmd("svn checkout --force %s %s" % (path, testrunner_dir)) |
| 120 | 120 |
| 121 # Update this very script. | 121 # Update this very script. |
| 122 path = ("http://v8.googlecode.com/svn/branches/bleeding_edge/" | 122 path = ("http://v8.googlecode.com/svn/branches/bleeding_edge/" |
| 123 "tools/test-server.py") | 123 "tools/test-server.py") |
| 124 scriptname = os.path.abspath(sys.argv[0]) | 124 scriptname = os.path.abspath(sys.argv[0]) |
| 125 _Cmd("svn cat %s > %s" % (path, scriptname)) | 125 _Cmd("svn cat %s > %s" % (path, scriptname)) |
| 126 | 126 |
| 127 # The testcfg.py files currently need to be able to import the old test.py | |
| 128 # script, so we temporarily need to make that available. | |
| 129 # TODO(jkummerow): Remove this when removing test.py. | |
| 130 for filename in ("test.py", "utils.py"): | |
| 131 url = ("http://v8.googlecode.com/svn/branches/bleeding_edge/" | |
| 132 "tools/%s" % filename) | |
| 133 filepath = os.path.join(os.path.dirname(scriptname), filename) | |
| 134 _Cmd("svn cat %s > %s" % (url, filepath)) | |
| 135 | |
| 136 # Check out or update V8. | 127 # Check out or update V8. |
| 137 v8_dir = os.path.join(ROOT, "v8") | 128 v8_dir = os.path.join(ROOT, "v8") |
| 138 if os.path.exists(v8_dir): | 129 if os.path.exists(v8_dir): |
| 139 _Cmd("cd %s; git fetch" % v8_dir) | 130 _Cmd("cd %s; git fetch" % v8_dir) |
| 140 else: | 131 else: |
| 141 _Cmd("git clone git://github.com/v8/v8.git %s" % v8_dir) | 132 _Cmd("git clone git://github.com/v8/v8.git %s" % v8_dir) |
| 142 | 133 |
| 143 print("Finished.") | 134 print("Finished.") |
| 144 | 135 |
| 145 | 136 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 print("Added certificate %s to trusted certificates." % response) | 206 print("Added certificate %s to trusted certificates." % response) |
| 216 else: | 207 else: |
| 217 print("Unknown command") | 208 print("Unknown command") |
| 218 _PrintUsage() | 209 _PrintUsage() |
| 219 sys.exit(2) | 210 sys.exit(2) |
| 220 else: | 211 else: |
| 221 print("Unknown command") | 212 print("Unknown command") |
| 222 _PrintUsage() | 213 _PrintUsage() |
| 223 sys.exit(2) | 214 sys.exit(2) |
| 224 sys.exit(0) | 215 sys.exit(0) |
| OLD | NEW |