To build the test cases into zig-out/bin, execute the following command:
zig build -Dtarget=[target]
To run the test cases, execute the following command:
zig build test -Dtarget=[target]
Not every test case passes under all circumstances. Such unstable test cases are skipped by default. To build/run them anyway, use the -Dunstable command line argument.
To determine which tests are unstable, I ran the test cases on the following targets (mostly using qemu):
musl:
aarch64-linux-muslaarch64_be-linux-muslhexagon-linux-muslloongarch64-linux-muslpowerpc64-linux-muslpowerpc64le-linux-muslriscv32-linux-muslriscv64-linux-musls390x-linux-muslx86-linux-muslx86_64-linux-muslx86_64-linux-muslx32
mingw:
aarch64-windows-gnux86_64-windows-gnux86-windows-gnu
wasi-libc:
wasm32-wasi-musl