OLD | NEW |
1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 the V8 project authors. All rights reserved. |
2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
4 # met: | 4 # met: |
5 # | 5 # |
6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 def GetCommand(test, context): | 84 def GetCommand(test, context): |
85 d8testflag = [] | 85 d8testflag = [] |
86 shell = test.shell() | 86 shell = test.shell() |
87 if shell == "d8": | 87 if shell == "d8": |
88 d8testflag = ["--test"] | 88 d8testflag = ["--test"] |
89 if utils.IsWindows(): | 89 if utils.IsWindows(): |
90 shell += ".exe" | 90 shell += ".exe" |
91 if context.random_seed: | 91 if context.random_seed: |
92 d8testflag += ["--random-seed=%s" % context.random_seed] | 92 d8testflag += ["--random-seed=%s" % context.random_seed] |
| 93 if context.dump_wasm_module: |
| 94 d8testflag += ["--dump_wasm_module"] |
| 95 if context.dump_wasm_module_path: |
| 96 d8testflag += ["--dump_wasm_module_path=%s" % |
| 97 context.dump_wasm_module_path] |
93 cmd = (context.command_prefix + | 98 cmd = (context.command_prefix + |
94 [os.path.abspath(os.path.join(context.shell_dir, shell))] + | 99 [os.path.abspath(os.path.join(context.shell_dir, shell))] + |
95 d8testflag + | 100 d8testflag + |
96 test.suite.GetFlagsForTestCase(test, context) + | 101 test.suite.GetFlagsForTestCase(test, context) + |
97 context.extra_flags) | 102 context.extra_flags) |
98 return cmd | 103 return cmd |
99 | 104 |
100 | 105 |
101 def _GetInstructions(test, context): | 106 def _GetInstructions(test, context): |
102 command = GetCommand(test, context) | 107 command = GetCommand(test, context) |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 if self.context.verbose: | 390 if self.context.verbose: |
386 print text | 391 print text |
387 sys.stdout.flush() | 392 sys.stdout.flush() |
388 | 393 |
389 | 394 |
390 class BreakNowException(Exception): | 395 class BreakNowException(Exception): |
391 def __init__(self, value): | 396 def __init__(self, value): |
392 self.value = value | 397 self.value = value |
393 def __str__(self): | 398 def __str__(self): |
394 return repr(self.value) | 399 return repr(self.value) |
OLD | NEW |