Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: test/mksnapshot/testcfg.py

Issue 2567603002: [test] Add mksnapshot stress test suite
Patch Set: [test] Add mksnapshot stress test suite Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/mksnapshot/mksnapshot.status ('k') | tools/run-tests.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2016 the V8 project authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import os
6 import shutil
7 import tempfile
8
9 from testrunner.local import testsuite
10 from testrunner.local import utils
11 from testrunner.objects import testcase
12
13
14 class MkSnapshotTestSuite(testsuite.TestSuite):
15
16 def Setup(self):
17 self.tmp_dir = tempfile.mkdtemp(prefix='tmp_mksnapshot_test_')
18
19 def TearDown(self):
20 shutil.rmtree(self.tmp_dir)
21
22 def ListTests(self, context):
23 return [
24 testcase.TestCase(
25 self,
26 'Snapshot%03d' % i,
27 flags=[
28 '--random-seed=%d' % utils.RandomSeed(),
29 '--startup_src=%s' % os.path.join(
30 self.tmp_dir, 'snapshot%03d.cc' % i),
31 '--startup_blob=%s' % os.path.join(
32 self.tmp_dir, 'snapshot_blob%03d.bin' % i),
33 ],
34 )
35 for i in range(100)
36 ]
37
38 def GetFlagsForTestCase(self, testcase, context):
39 return testcase.flags + context.mode_flags
40
41 def shell(self):
42 return 'mksnapshot'
43
44 def _VariantGeneratorFactory(self):
45 return testsuite.StandardVariantGenerator
46
47
48 def GetSuite(name, root):
49 return MkSnapshotTestSuite(name, root)
OLDNEW
« no previous file with comments | « test/mksnapshot/mksnapshot.status ('k') | tools/run-tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698