Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

test: integrate v8 test suite #9208

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,25 @@ test-timers:
test-timers-clean:
$(MAKE) --directory=tools clean

test-v8:
# note: only does a quickcheck
deps/v8/tools/run-tests.py --arch=$(ARCH) --mode=release --noi18n \
--no-presubmit --quickcheck --shell-dir=out/Release

test-v8-intl:
# note: only does a quickcheck...
deps/v8/tools/run-tests.py --arch=$(ARCH) --mode=release --no-presubmit \
--quickcheck --shell-dir=out/Release intl

test-v8-benchmarks:
# note: this runs with --download-data so it'll go out and
# fetch the additional bits it needs to run the benchmarks
deps/v8/tools/run-tests.py --arch=$(ARCH) --mode=release --download-data \
--no-presubmit --shell-dir=out/Release benchmarks

test-v8-all: test-v8 test-v8-intl test-v8-benchmarks
# runs all v8 tests

apidoc_sources = $(wildcard doc/api/*.markdown)
apidocs = $(addprefix out/,$(apidoc_sources:.markdown=.html)) \
$(addprefix out/,$(apidoc_sources:.markdown=.json))
Expand Down
7 changes: 7 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,11 @@ parser.add_option('--xcode',
dest='use_xcode',
help='generate build files for use with xcode')

parser.add_option('--with-v8-tests',
action='store_true',
dest='with_v8_tests',
help='Build v8 test suite')

(options, args) = parser.parse_args()

# set up auto-download list
Expand Down Expand Up @@ -662,6 +667,8 @@ def configure_v8(o):
o['libraries'] += ['-lv8']
if options.shared_v8_includes:
o['include_dirs'] += [options.shared_v8_includes]
if options.with_v8_tests:
o['variables']['with_v8_tests'] = 1


def configure_openssl(o):
Expand Down
2 changes: 1 addition & 1 deletion deps/v8/test/intl/intl.status
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
'overrides/caching': [PASS, FAIL],

# BUG(2899): default locale for search fails on mac and on android.
'collator/default-locale': [['system == macos or arch == android_arm or arch == android_ia32', FAIL]],
'collator/default-locale': [PASS, ['system == macos or arch == android_arm or arch == android_ia32', FAIL]],

# BUG(v8:3454).
'date-format/parse-MMMdy': [FAIL],
Expand Down
2,613 changes: 2,613 additions & 0 deletions deps/v8/test/mjsunit/tools/profviz-test.log

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions deps/v8/test/mjsunit/tools/tickprocessor-test-func-info.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
shared-library,"shell",0x08048000,0x081ee000
shared-library,"/lib32/libm-2.7.so",0xf7db6000,0xf7dd9000
shared-library,"ffffe000-fffff000",0xffffe000,0xfffff000
profiler,"begin",1
code-creation,Stub,0,0x424260,348,"CompareStub_GE"
code-creation,LazyCompile,0,0x2a8100,18535,"DrawQube 3d-cube.js:188",0xf43abcac,
code-creation,LazyCompile,0,0x480100,3908,"DrawLine 3d-cube.js:17",0xf43abc50,
tick,0x424284,0,0,0x480600,0,0x2aaaa5
tick,0x42429f,0,0,0x480600,0,0x2aacb4
tick,0x48063d,0,0,0x2d0f7c,0,0x2aaec6
profiler,"end"
25 changes: 25 additions & 0 deletions deps/v8/test/mjsunit/tools/tickprocessor-test.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
shared-library,"shell",0x08048000,0x081ee000
shared-library,"/lib32/libm-2.7.so",0xf7db6000,0xf7dd9000
shared-library,"ffffe000-fffff000",0xffffe000,0xfffff000
profiler,"begin",1
code-creation,Stub,0,0xf540a100,474,"CEntryStub"
code-creation,Script,0,0xf541cd80,736,"exp.js"
code-creation,Stub,0,0xf541d0e0,47,"RuntimeStub_Math_exp"
code-creation,LazyCompile,0,0xf541d120,145,"exp native math.js:41"
function-creation,0xf441d280,0xf541d120
code-creation,LoadIC,0,0xf541d280,117,"j"
code-creation,LoadIC,0,0xf541d360,63,"i"
tick,0x80f82d1,0,0,0,0,0xf541ce5c
tick,0x80f89a1,0,0,0,0,0xf541ce5c
tick,0x8123b5c,0,0,0,0,0xf541d1a1,0xf541ceea
tick,0x8123b65,0,0,0,0,0xf541d1a1,0xf541ceea
tick,0xf541d2be,0,0,0,0
tick,0xf541d320,0,0,0,0
tick,0xf541d384,0,0,0,0
tick,0xf7db94da,0,0,0,0,0xf541d1a1,0xf541ceea
tick,0xf7db951c,0,0,0,0,0xf541d1a1,0xf541ceea
tick,0xf7dbc508,0,0,0,0,0xf541d1a1,0xf541ceea
tick,0xf7dbff21,0,0,0,0,0xf541d1a1,0xf541ceea
tick,0xf7edec90,0,0,0,0,0xf541d1a1,0xf541ceea
tick,0xffffe402,0,0,0,0
profiler,"end"
52 changes: 52 additions & 0 deletions node.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,58 @@
],
} ],
]
},
{
'target_name': 'v8-build-deps',
'type': 'none',
'conditions': [
['with_v8_tests==1', {
'actions': [
{
'action_name': 'fetch-v8-dep-gtest',
'inputs': [],
'outputs': ['deps/v8/testing/gtest'],
'action': [
'svn', 'checkout', '--force',
'https://googletest.googlecode.com/svn/trunk/',
'deps/v8/testing/gtest', '--revision', '692'
]
},
{
'action_name': 'fetch-v8-dep-gmock',
'inputs': [],
'outputs': ['deps/v8/testing/gmock'],
'action': [
'svn', 'checkout', '--force',
'https://googlemock.googlecode.com/svn/trunk/',
'deps/v8/testing/gmock', '--revision', '485'
]
}
]
}
]]
},
{
'target_name': 'd8-tests',
'type': 'none',
'conditions': [
[ 'with_v8_tests==1', {
'sources': [
'deps/v8/include/v8.h',
'deps/v8/include/v8-debug.h',
],
'dependencies': [
'node',
'v8-build-deps',
'deps/v8/src/d8.gyp:d8',
'deps/v8/testing/gtest.gyp:*',
'deps/v8/testing/gmock.gyp:*',
'deps/v8/test/base-unittests/base-unittests.gyp:*',
'deps/v8/test/compiler-unittests/compiler-unittests.gyp:*',
'deps/v8/test/cctest/cctest.gyp:*'
],
}]
]
}
] # end targets
}