mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:57:34 +00:00
Meta: Run Wasm spec tests on master push
...and report the results on libjs-website.
This commit is contained in:
parent
ab55abb0f8
commit
c0dbea43f3
1 changed files with 35 additions and 3 deletions
38
.github/workflows/libjs-test262.yml
vendored
38
.github/workflows/libjs-test262.yml
vendored
|
@ -49,7 +49,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y ninja-build unzip gcc-11 g++-11
|
sudo apt-get install -y ninja-build unzip gcc-11 g++-11 jq
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
|
@ -94,14 +94,15 @@ jobs:
|
||||||
working-directory: libjs-test262
|
working-directory: libjs-test262
|
||||||
run: |
|
run: |
|
||||||
cd Build
|
cd Build
|
||||||
cmake -GNinja -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11 -DSERENITY_SOURCE_DIR=${{ env.SERENITY_SOURCE_DIR }} ..
|
cmake -GNinja -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11 -DINCLUDE_WASM_SPEC_TESTS=ON -DSERENITY_SOURCE_DIR=${{ env.SERENITY_SOURCE_DIR }} ..
|
||||||
ninja libjs-test262-runner test-js
|
ninja libjs-test262-runner test-js test-wasm
|
||||||
|
|
||||||
- name: Get previous results
|
- name: Get previous results
|
||||||
working-directory: libjs-test262
|
working-directory: libjs-test262
|
||||||
run: |
|
run: |
|
||||||
cp -f ../libjs-website/test262/data/per-file-master.json .
|
cp -f ../libjs-website/test262/data/per-file-master.json .
|
||||||
cp -f ../libjs-website/test262/data/per-file-bytecode-master.json .
|
cp -f ../libjs-website/test262/data/per-file-bytecode-master.json .
|
||||||
|
cp -f ../libjs-website/wasm/data/per-file-master.json wasm-per-file-master.json
|
||||||
|
|
||||||
- name: Run test262 and test262-parser-tests
|
- name: Run test262 and test262-parser-tests
|
||||||
working-directory: libjs-test262
|
working-directory: libjs-test262
|
||||||
|
@ -114,6 +115,32 @@ jobs:
|
||||||
--per-file-output ../libjs-website/test262/data/per-file-master.json \
|
--per-file-output ../libjs-website/test262/data/per-file-master.json \
|
||||||
--per-file-bytecode-output ../libjs-website/test262/data/per-file-bytecode-master.json
|
--per-file-bytecode-output ../libjs-website/test262/data/per-file-bytecode-master.json
|
||||||
|
|
||||||
|
- name: Run test-wasm
|
||||||
|
working-directory: libjs-test262/Build
|
||||||
|
run: |
|
||||||
|
_deps/lagom-build/test-wasm --per-file > ../../libjs-website/wasm/data/per-file-master.json
|
||||||
|
jq -nc -f <<-EOF --slurpfile previous ../../libjs-website/wasm/data/results.json --slurpfile details ../../libjs-website/wasm/data/per-file-master.json
|
||||||
|
\$details[0] as \$details | \$previous[0] + [{
|
||||||
|
"commit_timestamp": $(git -C ../.. log -1 --format=%ct),
|
||||||
|
"run_timestamp": $(date +%s),
|
||||||
|
"versions": {
|
||||||
|
"serenity": "$(git -C ../.. rev-parse HEAD)"
|
||||||
|
},
|
||||||
|
"tests": {
|
||||||
|
"spectest": {
|
||||||
|
"duration": (\$details.duration),
|
||||||
|
"results": {
|
||||||
|
"total": (\$details.results | keys | length),
|
||||||
|
"passed": ([\$details.results | values[] | select(. == "PASSED")] | length),
|
||||||
|
"failed": ([\$details.results | values[] | select(. == "FAILED")] | length),
|
||||||
|
"skipped": ([\$details.results | values[] | select(. == "SKIPPED")] | length),
|
||||||
|
"process_error": ([\$details.results | values[] | select(. == "PROCESS_ERROR")] | length)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
EOF
|
||||||
|
|
||||||
- name: Deploy to GitHub pages
|
- name: Deploy to GitHub pages
|
||||||
uses: JamesIves/github-pages-deploy-action@4.1.1
|
uses: JamesIves/github-pages-deploy-action@4.1.1
|
||||||
with:
|
with:
|
||||||
|
@ -134,6 +161,11 @@ jobs:
|
||||||
working-directory: libjs-test262
|
working-directory: libjs-test262
|
||||||
run: ./per_file_result_diff.py -o per-file-bytecode-master.json -n ../libjs-website/test262/data/per-file-bytecode-master.json
|
run: ./per_file_result_diff.py -o per-file-bytecode-master.json -n ../libjs-website/test262/data/per-file-bytecode-master.json
|
||||||
|
|
||||||
|
- name: Compare wasm
|
||||||
|
continue-on-error: true
|
||||||
|
working-directory: libjs-test262
|
||||||
|
run: ./per_file_result_diff.py -o wasm-per-file-master.json -n ../libjs-website/wasm/data/per-file-master.json
|
||||||
|
|
||||||
- name: Build and package js
|
- name: Build and package js
|
||||||
working-directory: libjs-test262/Build
|
working-directory: libjs-test262/Build
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue