mirror of https://github.com/lukechilds/node.git
Browse Source
Ported by exinfinitum from a PR by jasnell: see https://github.com/nodejs/node-v0.x-archive/pull/14185 Allows the running of v8 tests on node's packaged v8 source code. Note that the limited win32 support added by jasnell has NOT been ported, and so these tests are currently UNIX ONLY. Note that gclient depot tools (see https://commondatastorage.googleapis.com/ chrome-infra-docs/flat/depot_tools/docs/html/ depot_tools_tutorial.html#_setting_up) and subversion are required to run tests. To perform tests, run the following commands: make v8 DESTCPU=(ARCH) make test-v8 DESTCPU=(ARCH) where (ARCH) is your CPU architecture, e.g. x64, ia32. DESTCPU MUST be specified for this to work properly. Can also do tests on debug build by using "make test-v8 DESTCPU=(ARCH) BUILDTYPE=Debug", or perform intl or benchmark tests via make test-v8-intl or test-v8-benchmarks respectively. Note that by default, quickcheck and TAP output are disabled, and i18n is enabled. To activate these options, use options"QUICKCHECK=True" and "ENABLE_V8_TAP=True" respectively. Use "DISABLE_V8_I18N" to disable i18n. Use V8_BUILD_OPTIONS to allow custom user-defined flags to be appended onto "make v8". Any tests performed after changes to the packaged v8 file will require recompiling of v8, which can be done using "make v8 DESTCPU=(ARCH)". Finally, two additional files necessary for one of the v8 tests have been added to the v8 folder. PR-URL: https://github.com/nodejs/node/pull/4704 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com>process-exit-stdio-flushing
Bryon Leung
10 years ago
committed by
Michael Dawson
5 changed files with 2745 additions and 1 deletions
File diff suppressed because it is too large
@ -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" |
@ -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" |
@ -0,0 +1,38 @@ |
|||
#!/bin/bash |
|||
|
|||
|
|||
git_origin=$(git config --get remote.origin.url | sed 's/.\+[\/:]\([^\/]\+\/[^\/]\+\)$/\1/') |
|||
git_branch=$(git rev-parse --abbrev-ref HEAD) |
|||
v8ver=${1:-v8} #default v8 |
|||
svn_prefix=https://github.com |
|||
svn_path="$svn_prefix/$git_origin/branches/$git_branch/deps/$v8ver" |
|||
#svn_path="$git_origin/branches/$git_branch/deps/$v8ver" |
|||
gclient_string="solutions = [{'name': 'v8', 'url': '$svn_path', 'managed': False}]" |
|||
|
|||
# clean up if someone presses ctrl-c |
|||
trap cleanup INT |
|||
|
|||
function cleanup() { |
|||
trap - INT |
|||
|
|||
rm .gclient || true |
|||
rm .gclient_entries || true |
|||
rm -rf _bad_scm/ || true |
|||
|
|||
#if v8ver isn't v8, move the v8 folders |
|||
#back to what they were |
|||
if [ "$v8ver" != "v8" ]; then |
|||
mv v8 $v8ver |
|||
mv .v8old v8 |
|||
fi |
|||
exit 0 |
|||
} |
|||
|
|||
cd deps |
|||
echo $gclient_string > .gclient |
|||
if [ "$v8ver" != "v8" ]; then |
|||
mv v8 .v8old |
|||
mv $v8ver v8 |
|||
fi |
|||
gclient sync |
|||
cleanup |
Loading…
Reference in new issue