[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:
parent
a9b84c1b2c
commit
9bd83f58f2
@ -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:*',
|
||||
],
|
||||
}],
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -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',
|
||||
],
|
||||
},
|
||||
],
|
||||
}],
|
||||
],
|
||||
}
|
||||
|
16
test/cctest/cctest.isolate
Normal file
16
test/cctest/cctest.isolate
Normal 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
29
test/default.gyp
Normal 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
12
test/default.isolate
Normal 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',
|
||||
],
|
||||
}
|
26
test/developer_default.gyp
Normal file
26
test/developer_default.gyp
Normal 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',
|
||||
],
|
||||
},
|
||||
],
|
||||
}],
|
||||
],
|
||||
}
|
9
test/developer_default.isolate
Normal file
9
test/developer_default.isolate
Normal 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
25
test/intl/intl.gyp
Normal 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
14
test/intl/intl.isolate
Normal 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
25
test/message/message.gyp
Normal 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',
|
||||
],
|
||||
},
|
||||
],
|
||||
}],
|
||||
],
|
||||
}
|
14
test/message/message.isolate
Normal file
14
test/message/message.isolate
Normal 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
25
test/mjsunit/mjsunit.gyp
Normal 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',
|
||||
],
|
||||
},
|
||||
],
|
||||
}],
|
||||
],
|
||||
}
|
23
test/mjsunit/mjsunit.isolate
Normal file
23
test/mjsunit/mjsunit.isolate
Normal 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',
|
||||
],
|
||||
}
|
25
test/preparser/preparser.gyp
Normal file
25
test/preparser/preparser.gyp
Normal 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',
|
||||
],
|
||||
},
|
||||
],
|
||||
}],
|
||||
],
|
||||
}
|
14
test/preparser/preparser.isolate
Normal file
14
test/preparser/preparser.isolate
Normal 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',
|
||||
],
|
||||
}
|
@ -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',
|
||||
],
|
||||
},
|
||||
],
|
||||
}],
|
||||
],
|
||||
}
|
||||
|
15
test/unittests/unittests.isolate
Normal file
15
test/unittests/unittests.isolate
Normal 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',
|
||||
],
|
||||
}
|
14
tools/testrunner/testrunner.isolate
Normal file
14
tools/testrunner/testrunner.isolate
Normal 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',
|
||||
'./'
|
||||
],
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue
Block a user