Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,24 @@ jobs:
with:
name: reports-java-11
path: '*/build/reports'
- name: Check current state of test262.properties
id: hashBefore
run: echo "hash=${{ hashFiles('./tests/testsrc/test262.properties') }}" >> $GITHUB_OUTPUT
- name: Run test262 tests
env:
RHINO_TEST_JAVA_VERSION: "11"
run: >-
./gradlew :tests:test --tests Test262SuiteTest -DupdateTest262properties
- name: Check updated state of test262.properties
id: hashAfter
run: echo "hash=${{ hashFiles('./tests/testsrc/test262.properties') }}" >> $GITHUB_OUTPUT
- name: Compare test262 results
run: |
if [ "${{ steps.hashBefore.outputs.hash }}" != "${{ steps.hashAfter.outputs.hash }}" ]; then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might check for modification with git diff / git status here.

How long does this step take?
As long as I understand, this step executes ALL 262 tests... And the java 11 test run executes then again (but only the not excluded ones) - so it should be possible to exclude them (or regenerate the props file in the java 11 test run)

I'm fine with your changes and the above are suggestions, that can (or not) be done in further PRs 👍

echo "The test262.properties file was not updated properly."
echo "Please follow the instructions in tests/README.md to update it."
git --no-pager diff ./tests/testsrc/test262.properties
exit 1
else
echo "The test262.properties file is up to date."
fi