v8/third_party/test262-harness
Michael Achenbach 6ea78398aa [infra] Change all Python shebangs to Python3
The infrastructure runs everything already in Python3, so this is
mostly a clean-up.

For MB, a python2 holdover was removed and new lint errors were
fixed.

The renames were automated with:
git grep -e "/usr/bin/python$" |
  cut -d':' -f1 |
  xargs
  sed -i 's/#!\/usr\/bin\/python$/#!\/usr\/bin\/python3/1'

and
git grep -e "/usr/bin/env python$" |
  cut -d':' -f1 |
  xargs
  sed -i 's/#!\/usr\/bin\/env python$/#!\/usr\/bin\/env python3/1'

Bug: v8:13148
Change-Id: If4f3c7635e72fa134798d55314ac1aa92ddd01bf
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3811499
Reviewed-by: Liviu Rau <liviurau@google.com>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/main@{#82231}
2022-08-05 14:55:00 +00:00
..
src
test
__init__.py
excludelist.xml
LICENSE
OWNERS
README.md
README.v8

Test262 Python Harness

Usage

Loaded as a module, this project defines a single function, parseTestRecord. This function creates an object representation of the metadata encoded in the "frontmatter" of the provided Test262 test source code.

test262.py is an executable designed to execute Test262 tests. It is exposed for public use. For usage instructions, invoke this executable with the --help flag, as in:

$ test262.py --help

Tests

Run the following command from the root of this projcet:

$ python -m unittest discover test