[test] Add bytecode-expectation test

This adds a simple test calling:
generate-bytecode-expectations --check-baseline

It's added on one CQ and one CI builder. The infra side specifying the
command line landed here:
https://crrev.com/c/1709454

For the command to succeed on swarming we instruct the isolate server
to archive the executable alongside with all the *.golden files needed
for the --check-baseline command.

Bug: v8:9520
Change-Id: I358ca7a7142c0fdaa7f6960515e524729a481394
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1709424
Reviewed-by: Dan Elphick <delphick@chromium.org>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#62844}
This commit is contained in:
Michael Achenbach 2019-07-22 08:45:11 +02:00 committed by Commit Bot
parent 948ba17216
commit 7da816ee86
3 changed files with 10 additions and 0 deletions

View File

@ -31,6 +31,10 @@
"label": "//test:v8_d8_default",
"type": "script",
},
"generate-bytecode-expectations": {
"label": "//test/cctest:generate-bytecode-expectations",
"type": "script",
},
"mjsunit": {
"label": "//test/mjsunit:v8_mjsunit",
"type": "script",

View File

@ -338,6 +338,7 @@
{'name': 'benchmarks'},
{'name': 'benchmarks', 'variant': 'assert_types'},
{'name': 'benchmarks', 'variant': 'extra'},
{'name': 'check-bytecode-baseline'},
{'name': 'mozilla'},
{'name': 'mozilla', 'variant': 'assert_types'},
{'name': 'mozilla', 'variant': 'extra'},
@ -891,6 +892,7 @@
{'name': 'benchmarks'},
{'name': 'benchmarks', 'variant': 'assert_types'},
{'name': 'benchmarks', 'variant': 'extra'},
{'name': 'check-bytecode-baseline'},
{'name': 'mjsunit_sp_frame_access'},
{'name': 'mozilla'},
{'name': 'mozilla', 'variant': 'assert_types'},

View File

@ -450,4 +450,8 @@ v8_executable("generate-bytecode-expectations") {
"../..:v8_libplatform",
"//build/win:default_exe_manifest",
]
data = [
"interpreter/bytecode_expectations/",
]
}