Refactor: rework integration tests and add a Linux runner

- tests: add TestSupport with a single RESULT: PASS/FAIL verdict protocol
- tests: assert on native return values and captured output, not runner markers
- tests: replace the brittle "Bytes: 399" marker with a class-file magic check
- tests: read the shared case list from tests/cases.txt
- tests: add run-tests.sh and copy-bin.sh, run the tests on Linux too
- tests: exclude the Loop.java demo from the compiled test output
- CI: set up JDK 25 and run the integration tests in the build-linux job
- Docs: refresh the AGENTS.md test/CI sections and rule 5
This commit is contained in:
xiaozhou233 committed 2026-11-20 14:09:56 +08:00
1 parent d31e43af31
commit 45da09ff5c
19 files changed
+455 -245

No files matched your search

+10 -1
View File
@@ -95,7 +95,7 @@ jobs:
retention-days: 14
build-linux:
name: Build (Linux, GCC)
name: Build & integration tests (Linux, GCC)
runs-on: ubuntu-latest
steps:
@@ -104,6 +104,12 @@ jobs:
with:
submodules: recursive
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '25'
- name: Install build tools
run: |
sudo apt-get update
@@ -124,6 +130,9 @@ jobs:
echo "--- build/bin ---"
ls -1 build/bin
- name: Run integration tests
run: bash tests/run-tests.sh
- name: Package release tarball
run: ./script/package.sh