v8/tools/testrunner
jameslahm 8306599e9b [d8] Add unicode filename support on windows
This is a follow up CL for https://crrev.com/c/3538284.
Tests credited to https://crrev.com/c/3468352.

- Add unicode filename path test.
- Convert ansi encoded filename argv to utf8 encoded on windows. Because
the ansi encoded filename argv may lose some information for unicode
filename, and we need to use GetCommandLineW to get the actual unicode
filename argument. And we convert it to utf8 encoded to be consistent
with subsequent processing.
- Use REPLACEMENT CHARACTER to replace the characters which cannot be
encoded with sys.stdout.encoding in progress.py.

This CL should be **reverted** if new unicode filenames cause problems.

Bug: v8:12541
Change-Id: Ic5c5ae342b3a5b11c3119452af03c9165d429ed7
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3568926
Reviewed-by: Clemens Backes <clemensb@chromium.org>
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
Commit-Queue: 王澳 <wangao.james@bytedance.com>
Cr-Commit-Position: refs/heads/main@{#79850}
2022-04-07 11:40:34 +00:00
..
local Allow V8 to run all unittests presubmit 2022-03-29 11:14:09 +00:00
objects [tools] More test-runner Py3 clean-up 2022-04-04 13:34:46 +00:00
outproc Reland "[tools] Clean up py2 code" 2022-03-25 12:14:26 +00:00
testproc [d8] Add unicode filename support on windows 2022-04-07 11:40:34 +00:00
utils Reland "[tools] Clean up py2 code" 2022-03-25 12:14:26 +00:00
__init__.py
base_runner.py Reland "[tools] Clean up py2 code" 2022-03-25 12:14:26 +00:00
num_fuzzer.py Reland "[tools] Clean up py2 code" 2022-03-25 12:14:26 +00:00
OWNERS Use relative paths to OWNERS files 2019-08-12 13:52:52 +00:00
PRESUBMIT.py Allow V8 to run all unittests presubmit 2022-03-29 11:14:09 +00:00
standard_runner.py Reland "[tools] Clean up py2 code" 2022-03-25 12:14:26 +00:00
test_config.py Introduce regenerate-expected-files for run-test 2020-03-03 18:58:24 +00:00
trycatch_loader.js [d8][mjsunit][tools] Improve d8 file API 2021-06-01 13:37:57 +00:00