OLD | NEW |
1 # Copyright 2014 the V8 project authors. All rights reserved. | 1 # Copyright 2014 the V8 project authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 import os | 6 import os |
7 import shutil | |
8 import sys | 7 import sys |
9 | 8 |
10 from testrunner.local import testsuite | 9 from testrunner.local import testsuite |
11 from testrunner.objects import testcase | 10 from testrunner.objects import testcase |
12 | 11 |
13 SIMDJS_SUITE_PATH = ["data", "src"] | 12 SIMDJS_SUITE_PATH = ["data", "src"] |
14 | 13 |
15 | 14 |
16 class SimdJsTestSuite(testsuite.TestSuite): | 15 class SimdJsTestSuite(testsuite.TestSuite): |
17 | 16 |
(...skipping 28 matching lines...) Expand all Loading... |
46 return f.read() | 45 return f.read() |
47 | 46 |
48 def IsNegativeTest(self, testcase): | 47 def IsNegativeTest(self, testcase): |
49 return False | 48 return False |
50 | 49 |
51 def IsFailureOutput(self, testcase): | 50 def IsFailureOutput(self, testcase): |
52 if testcase.output.exit_code != 0: | 51 if testcase.output.exit_code != 0: |
53 return True | 52 return True |
54 return "FAILED!" in testcase.output.stdout | 53 return "FAILED!" in testcase.output.stdout |
55 | 54 |
56 def DownloadData(self): | |
57 print "SimdJs download is deprecated. It's part of DEPS." | |
58 | |
59 # Clean up old directories and archive files. | |
60 directory_old_name = os.path.join(self.root, "data.old") | |
61 if os.path.exists(directory_old_name): | |
62 shutil.rmtree(directory_old_name) | |
63 | |
64 archive_files = [f for f in os.listdir(self.root) | |
65 if f.startswith("ecmascript_simd-")] | |
66 if len(archive_files) > 0: | |
67 print "Clobber outdated test archives ..." | |
68 for f in archive_files: | |
69 os.remove(os.path.join(self.root, f)) | |
70 | |
71 | 55 |
72 def GetSuite(name, root): | 56 def GetSuite(name, root): |
73 return SimdJsTestSuite(name, root) | 57 return SimdJsTestSuite(name, root) |
OLD | NEW |