tests: document how to run `run-make` on Windows (#2002)

This commit is contained in:
许杰友 Jieyou Xu (Joe) 2024-06-24 13:21:15 +08:00 committed by GitHub
parent 22fbccf329
commit c4f9678427
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 16 additions and 0 deletions

View File

@ -213,6 +213,22 @@ This is much faster, but doesn't always work. For example, some tests
include directives that specify specific compiler flags, or which rely include directives that specify specific compiler flags, or which rely
on other crates, and they may not run the same without those options. on other crates, and they may not run the same without those options.
## Running `run-make` tests
### Windows
Running the `run-make` test suite on Windows is a bit more involved. There are numerous
prerequisites and environmental requirements:
- Install msys2: <https://www.msys2.org/>
- Specify `MSYS2_PATH_TYPE=inherit` in `msys2.ini` in the msys2 installation directory, run the
following with `MSYS2 MSYS`:
- `pacman -Syuu`
- `pacman -S make`
- `pacman -S diffutils`
- `pacman -S binutils`
- `./x test run-make` (`./x test tests/run-make` doesn't work)
## Running tests on a remote machine ## Running tests on a remote machine