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

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

Issue 202923003: Fix test serialization path for windows. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 20 matching lines...) Expand all
31 from testrunner.local import commands 31 from testrunner.local import commands
32 from testrunner.local import testsuite 32 from testrunner.local import testsuite
33 from testrunner.local import utils 33 from testrunner.local import utils
34 from testrunner.objects import testcase 34 from testrunner.objects import testcase
35 35
36 36
37 class CcTestSuite(testsuite.TestSuite): 37 class CcTestSuite(testsuite.TestSuite):
38 38
39 def __init__(self, name, root): 39 def __init__(self, name, root):
40 super(CcTestSuite, self).__init__(name, root) 40 super(CcTestSuite, self).__init__(name, root)
41 if utils.IsWindows():
42 build_dir = "build"
43 else:
44 build_dir = "out"
41 self.serdes_dir = os.path.normpath( 45 self.serdes_dir = os.path.normpath(
42 os.path.join(root, "..", "..", "out", ".serdes")) 46 os.path.join(root, "..", "..", build_dir, ".serdes"))
43 if os.path.exists(self.serdes_dir): 47 if os.path.exists(self.serdes_dir):
44 shutil.rmtree(self.serdes_dir, True) 48 shutil.rmtree(self.serdes_dir, True)
45 os.makedirs(self.serdes_dir) 49 os.makedirs(self.serdes_dir)
46 50
47 def ListTests(self, context): 51 def ListTests(self, context):
48 shell = os.path.abspath(os.path.join(context.shell_dir, self.shell())) 52 shell = os.path.abspath(os.path.join(context.shell_dir, self.shell()))
49 if utils.IsWindows(): 53 if utils.IsWindows():
50 shell += ".exe" 54 shell += ".exe"
51 output = commands.Execute(context.command_prefix + 55 output = commands.Execute(context.command_prefix +
52 [shell, "--list"] + 56 [shell, "--list"] +
(...skipping 24 matching lines...) Expand all
77 serialization_file += ''.join(testcase.flags).replace('-', '_') 81 serialization_file += ''.join(testcase.flags).replace('-', '_')
78 return (testcase.flags + [testcase.path] + context.mode_flags + 82 return (testcase.flags + [testcase.path] + context.mode_flags +
79 ["--testing_serialization_file=" + serialization_file]) 83 ["--testing_serialization_file=" + serialization_file])
80 84
81 def shell(self): 85 def shell(self):
82 return "cctest" 86 return "cctest"
83 87
84 88
85 def GetSuite(name, root): 89 def GetSuite(name, root):
86 return CcTestSuite(name, root) 90 return CcTestSuite(name, root)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698