| OLD | NEW |
| 1 # Copyright 2008 the V8 project authors. All rights reserved. | 1 # Copyright 2008 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 while True: | 68 while True: |
| 69 if files_match: | 69 if files_match: |
| 70 files_list += files_match.group(1).strip().split() | 70 files_list += files_match.group(1).strip().split() |
| 71 files_match = FILES_PATTERN.search(source, files_match.end()) | 71 files_match = FILES_PATTERN.search(source, files_match.end()) |
| 72 else: | 72 else: |
| 73 break | 73 break |
| 74 files = [ os.path.normpath(os.path.join(self.root, '..', '..', f)) | 74 files = [ os.path.normpath(os.path.join(self.root, '..', '..', f)) |
| 75 for f in files_list ] | 75 for f in files_list ] |
| 76 testfilename = os.path.join(self.root, testcase.path + self.suffix()) | 76 testfilename = os.path.join(self.root, testcase.path + self.suffix()) |
| 77 if SELF_SCRIPT_PATTERN.search(source): | 77 if SELF_SCRIPT_PATTERN.search(source): |
| 78 env = ["-e", "TEST_FILE_NAME=\"%s\"" % testfilename] | 78 env = ["-e", "TEST_FILE_NAME=\"%s\"" % testfilename.replace("\\", "\\\\")] |
| 79 files = env + files | 79 files = env + files |
| 80 files.append(os.path.join(self.root, "mjsunit.js")) | 80 files.append(os.path.join(self.root, "mjsunit.js")) |
| 81 files.append(testfilename) | 81 files.append(testfilename) |
| 82 | 82 |
| 83 flags += files | 83 flags += files |
| 84 if context.isolates: | 84 if context.isolates: |
| 85 flags.append("--isolate") | 85 flags.append("--isolate") |
| 86 flags += files | 86 flags += files |
| 87 | 87 |
| 88 return testcase.flags + flags | 88 return testcase.flags + flags |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 | 219 |
| 220 def GetTestStatus(self, sections, defs): | 220 def GetTestStatus(self, sections, defs): |
| 221 status_file = join(self.root, 'mjsunit.status') | 221 status_file = join(self.root, 'mjsunit.status') |
| 222 if exists(status_file): | 222 if exists(status_file): |
| 223 test.ReadConfigurationInto(status_file, sections, defs) | 223 test.ReadConfigurationInto(status_file, sections, defs) |
| 224 | 224 |
| 225 | 225 |
| 226 | 226 |
| 227 def GetConfiguration(context, root): | 227 def GetConfiguration(context, root): |
| 228 return MjsunitTestConfiguration(context, root) | 228 return MjsunitTestConfiguration(context, root) |
| OLD | NEW |