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

Unified Diff: tools/testrunner/objects/context.py

Issue 10919265: First commit of new tools/run-tests.py (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: s/server.py/test-server.py/ in README Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/testrunner/objects/__init__.py ('k') | tools/testrunner/objects/output.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testrunner/objects/context.py
diff --git a/samples/samples.gyp b/tools/testrunner/objects/context.py
similarity index 67%
copy from samples/samples.gyp
copy to tools/testrunner/objects/context.py
index 3c720a748a19a146fcbae8d05bccdd27bb752b28..b72284b648fa9ba53123a51d3cd97d2f5e266ee9 100644
--- a/samples/samples.gyp
+++ b/tools/testrunner/objects/context.py
@@ -25,35 +25,26 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-{
- 'includes': ['../build/common.gypi'],
- 'target_defaults': {
- 'type': 'executable',
- 'dependencies': [
- '../tools/gyp/v8.gyp:v8',
- ],
- 'include_dirs': [
- '../include',
- ],
- },
- 'targets': [
- {
- 'target_name': 'shell',
- 'sources': [
- 'shell.cc',
- ],
- },
- {
- 'target_name': 'process',
- 'sources': [
- 'process.cc',
- ],
- },
- {
- 'target_name': 'lineprocessor',
- 'sources': [
- 'lineprocessor.cc',
- ],
- }
- ],
-}
+
+class Context():
+ def __init__(self, arch, mode, shell_dir, mode_flags, verbose, timeout,
+ isolates, command_prefix, extra_flags):
+ self.arch = arch
+ self.mode = mode
+ self.shell_dir = shell_dir
+ self.mode_flags = mode_flags
+ self.verbose = verbose
+ self.timeout = timeout
+ self.isolates = isolates
+ self.command_prefix = command_prefix
+ self.extra_flags = extra_flags
+
+ def Pack(self):
+ return [self.arch, self.mode, self.mode_flags, self.timeout, self.isolates,
+ self.extra_flags]
+
+ @staticmethod
+ def Unpack(packed):
+ # For the order of the fields, refer to Pack() above.
+ return Context(packed[0], packed[1], None, packed[2], False,
+ packed[3], packed[4], "", packed[5])
« no previous file with comments | « tools/testrunner/objects/__init__.py ('k') | tools/testrunner/objects/output.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698