[swarming] Isolate v8 testing.

Add gyp support and isolates for default test suites.
Add two default isolates, one (default) for using the
test suite collection we call "default" on the bots. One
(developer_default) for also supporting the way developers
call the driver (i.e. without argument, which includes
the unittests).

BUG=chromium:535160
LOG=n

Review URL: https://codereview.chromium.org/1380593002

Cr-Commit-Position: refs/heads/master@{#31081}
This commit is contained in:
machenbach 2015-10-02 08:15:28 -07:00 committed by Commit bot
parent a9b84c1b2c
commit 9bd83f58f2
18 changed files with 334 additions and 0 deletions

View File

@ -19,6 +19,16 @@
'../tools/parser-shell.gyp:parser-shell',
],
}],
['test_isolation_mode != "noop"', {
'dependencies': [
'../test/default.gyp:*',
'../test/developer_default.gyp:*',
'../test/intl/intl.gyp:*',
'../test/message/message.gyp:*',
'../test/mjsunit/mjsunit.gyp:*',
'../test/preparser/preparser.gyp:*',
],
}],
]
}
]

View File

@ -331,4 +331,23 @@
],
},
],
'conditions': [
['test_isolation_mode != "noop"', {
'targets': [
{
'target_name': 'cctest_run',
'type': 'none',
'dependencies': [
'cctest',
],
'includes': [
'../../build/isolate.gypi',
],
'sources': [
'cctest.isolate',
],
},
],
}],
],
}

View File

@ -0,0 +1,16 @@
# Copyright 2015 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'files': [
'<(PRODUCT_DIR)/cctest<(EXECUTABLE_SUFFIX)',
'./cctest.status',
'./testcfg.py',
],
},
'includes': [
'../../src/base.isolate',
'../../tools/testrunner/testrunner.isolate',
],
}

29
test/default.gyp Normal file
View File

@ -0,0 +1,29 @@
# Copyright 2015 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'conditions': [
['test_isolation_mode != "noop"', {
'targets': [
{
'target_name': 'default_run',
'type': 'none',
'dependencies': [
'cctest/cctest.gyp:cctest_run',
'intl/intl.gyp:intl_run',
'message/message.gyp:message_run',
'mjsunit/mjsunit.gyp:mjsunit_run',
'preparser/preparser.gyp:preparser_run',
],
'includes': [
'../build/isolate.gypi',
],
'sources': [
'default.isolate',
],
},
],
}],
],
}

12
test/default.isolate Normal file
View File

@ -0,0 +1,12 @@
# Copyright 2015 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'includes': [
'cctest/cctest.isolate',
'intl/intl.isolate',
'message/message.isolate',
'mjsunit/mjsunit.isolate',
'preparser/preparser.isolate',
],
}

View File

@ -0,0 +1,26 @@
# Copyright 2015 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'conditions': [
['test_isolation_mode != "noop"', {
'targets': [
{
'target_name': 'developer_default_run',
'type': 'none',
'dependencies': [
'default.gyp:default_run',
'unittests/unittests.gyp:unittests_run',
],
'includes': [
'../build/isolate.gypi',
],
'sources': [
'developer_default.isolate',
],
},
],
}],
],
}

View File

@ -0,0 +1,9 @@
# Copyright 2015 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'includes': [
'default.isolate',
'unittests/unittests.isolate',
],
}

25
test/intl/intl.gyp Normal file
View File

@ -0,0 +1,25 @@
# Copyright 2015 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'conditions': [
['test_isolation_mode != "noop"', {
'targets': [
{
'target_name': 'intl_run',
'type': 'none',
'dependencies': [
'../../src/d8.gyp:d8_run',
],
'includes': [
'../../build/isolate.gypi',
],
'sources': [
'intl.isolate',
],
},
],
}],
],
}

14
test/intl/intl.isolate Normal file
View File

@ -0,0 +1,14 @@
# Copyright 2015 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'files': [
'./',
],
},
'includes': [
'../../src/d8.isolate',
'../../tools/testrunner/testrunner.isolate',
],
}

25
test/message/message.gyp Normal file
View File

@ -0,0 +1,25 @@
# Copyright 2015 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'conditions': [
['test_isolation_mode != "noop"', {
'targets': [
{
'target_name': 'message_run',
'type': 'none',
'dependencies': [
'../../src/d8.gyp:d8_run',
],
'includes': [
'../../build/isolate.gypi',
],
'sources': [
'message.isolate',
],
},
],
}],
],
}

View File

@ -0,0 +1,14 @@
# Copyright 2015 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'files': [
'./',
],
},
'includes': [
'../../src/d8.isolate',
'../../tools/testrunner/testrunner.isolate',
],
}

25
test/mjsunit/mjsunit.gyp Normal file
View File

@ -0,0 +1,25 @@
# Copyright 2015 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'conditions': [
['test_isolation_mode != "noop"', {
'targets': [
{
'target_name': 'mjsunit_run',
'type': 'none',
'dependencies': [
'../../src/d8.gyp:d8_run',
],
'includes': [
'../../build/isolate.gypi',
],
'sources': [
'mjsunit.isolate',
],
},
],
}],
],
}

View File

@ -0,0 +1,23 @@
# Copyright 2015 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'files': [
'./',
'../../tools/codemap.js',
'../../tools/consarray.js',
'../../tools/csvparser.js',
'../../tools/logreader.js',
'../../tools/profile.js',
'../../tools/profile_view.js',
'../../tools/profviz/composer.js',
'../../tools/splaytree.js',
'../../tools/tickprocessor.js'
],
},
'includes': [
'../../src/d8.isolate',
'../../tools/testrunner/testrunner.isolate',
],
}

View File

@ -0,0 +1,25 @@
# Copyright 2015 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'conditions': [
['test_isolation_mode != "noop"', {
'targets': [
{
'target_name': 'preparser_run',
'type': 'none',
'dependencies': [
'../../src/d8.gyp:d8_run',
],
'includes': [
'../../build/isolate.gypi',
],
'sources': [
'preparser.isolate',
],
},
],
}],
],
}

View File

@ -0,0 +1,14 @@
# Copyright 2015 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'files': [
'./',
],
},
'includes': [
'../../src/d8.isolate',
'../../tools/testrunner/testrunner.isolate',
],
}

View File

@ -178,4 +178,23 @@
],
},
],
'conditions': [
['test_isolation_mode != "noop"', {
'targets': [
{
'target_name': 'unittests_run',
'type': 'none',
'dependencies': [
'unittests',
],
'includes': [
'../../build/isolate.gypi',
],
'sources': [
'unittests.isolate',
],
},
],
}],
],
}

View File

@ -0,0 +1,15 @@
# Copyright 2015 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'files': [
'<(PRODUCT_DIR)/unittests<(EXECUTABLE_SUFFIX)',
'./unittests.status',
],
},
'includes': [
'../../src/base.isolate',
'../../tools/testrunner/testrunner.isolate',
],
}

View File

@ -0,0 +1,14 @@
# Copyright 2015 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'command': [
'../run-tests.py',
],
'files': [
'../run-tests.py',
'./'
],
},
}