Use expect-test for HIR tests

This makes it easier to update cascading test failures while still
making output reviewable in the PR.
This commit is contained in:
Max Bernstein 2025-03-25 12:26:04 -04:00 committed by Takashi Kokubun
parent d9720eaf10
commit 556fda0864
Notes: git 2025-04-18 13:47:55 +00:00
5 changed files with 121 additions and 112 deletions

View file

@ -50,6 +50,16 @@ You can also run a single test case by specifying the function name:
make zjit-test ZJIT_TESTS=test_putobject
```
If you expect that your changes cause tests to fail and they do, you can have
`expect-test` fix the expected value for you by putting `UPDATE_EXPECT=1`
before your test command, like so:
```
UPDATE_EXPECT=1 make zjit-test ZJIT_TESTS=test_putobject
```
Test changes will be reviewed alongside code changes.
<details>
<summary>Setting up zjit-test</summary>