summaryrefslogtreecommitdiff
path: root/deps/v8/tools/unittests/run_perf_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/tools/unittests/run_perf_test.py')
-rw-r--r--deps/v8/tools/unittests/run_perf_test.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/deps/v8/tools/unittests/run_perf_test.py b/deps/v8/tools/unittests/run_perf_test.py
index e7342e6a2c..fd1e36531a 100644
--- a/deps/v8/tools/unittests/run_perf_test.py
+++ b/deps/v8/tools/unittests/run_perf_test.py
@@ -436,10 +436,10 @@ class PerfTest(unittest.TestCase):
"Richards: 200\nDeltaBlue: 20\n",
"Richards: 50\nDeltaBlue: 200\n",
"Richards: 100\nDeltaBlue: 20\n"])
- test_output_no_patch = path.join(TEST_WORKSPACE, "results_no_patch.json")
+ test_output_secondary = path.join(TEST_WORKSPACE, "results_secondary.json")
self.assertEquals(0, self._CallMain(
- "--outdir-no-patch", "out-no-patch",
- "--json-test-results-no-patch", test_output_no_patch,
+ "--outdir-secondary", "out-secondary",
+ "--json-test-results-secondary", test_output_secondary,
))
self._VerifyResults("test", "score", [
{"name": "Richards", "results": ["100.0", "200.0"], "stddev": ""},
@@ -448,13 +448,13 @@ class PerfTest(unittest.TestCase):
self._VerifyResults("test", "score", [
{"name": "Richards", "results": ["50.0", "100.0"], "stddev": ""},
{"name": "DeltaBlue", "results": ["200.0", "200.0"], "stddev": ""},
- ], test_output_no_patch)
+ ], test_output_secondary)
self._VerifyErrors([])
self._VerifyMockMultiple(
(path.join("out", "x64.release", "d7"), "--flag", "run.js"),
- (path.join("out-no-patch", "x64.release", "d7"), "--flag", "run.js"),
+ (path.join("out-secondary", "x64.release", "d7"), "--flag", "run.js"),
(path.join("out", "x64.release", "d7"), "--flag", "run.js"),
- (path.join("out-no-patch", "x64.release", "d7"), "--flag", "run.js"),
+ (path.join("out-secondary", "x64.release", "d7"), "--flag", "run.js"),
)
def testWrongBinaryWithProf(self):
@@ -545,3 +545,7 @@ class PerfTest(unittest.TestCase):
'stddev': '',
},
], results['traces'])
+
+
+if __name__ == '__main__':
+ unittest.main()