Run test262 tests in CI

Run test262 tests for Linux, macOS and Cosmopolitan

Add a Makefile `test2-bootstrap` helper to clone and patch test262 tests at
a particular commit. Running with the latest commit noticed a few tests were
failing and added them to the errors list.

The CI environment, especially for macOS, was a bit more unpredictable and was
failing in atomics tests due to lower timeouts in the `atomicsHelper` so double
the timeouts. The time didn't worsen too much. It still takes about 2-3 min.
This commit is contained in:
Nick Vatamaniuc
2025-05-12 23:35:22 -04:00
parent c3e5ae2008
commit fb14cc6b40
4 changed files with 36 additions and 3 deletions

View File

@@ -36,6 +36,10 @@ jobs:
- name: Run microbench
run: |
make microbench
- name: Run test262
run: |
make test2-bootstrap
make test2
linux-lto:
name: Linux LTO
@@ -67,6 +71,7 @@ jobs:
submodules: true
- name: Install gcc-multilib
run: |
sudo apt update
sudo apt install -y gcc-multilib
- name: Build
run: |
@@ -74,6 +79,10 @@ jobs:
- name: Run built-in tests
run: |
make CONFIG_M32=y test
- name: Run test262
run: |
make test2-bootstrap
make CONFIG_M32=y test2
linux-asan:
runs-on: ubuntu-latest
@@ -138,6 +147,10 @@ jobs:
- name: Run built-in tests
run: |
make test
- name: Run test262
run: |
make test2-bootstrap
make test2
macos-asan:
runs-on: macos-latest
@@ -173,6 +186,8 @@ jobs:
uses: vmactions/freebsd-vm@v1
with:
usesh: true
copyback: false
mem: 16384
prepare: |
pkg install -y gmake
run: |
@@ -202,6 +217,10 @@ jobs:
- name: Run built-in tests
run: |
make CONFIG_COSMO=y test
- name: Run test262
run: |
make test2-bootstrap
make CONFIG_COSMO=y test2
mingw-windows:
name: MinGW Windows target