README.md
This commit is contained in:
12
README.md
12
README.md
@@ -341,16 +341,22 @@ make install/strip
|
||||
|
||||
# Running the tests
|
||||
|
||||
The package includes a tool called `test-Z80` capable of running all [CP/M](https://en.wikipedia.org/wiki/CP/M) and [ZX Spectrum](https://en.wikipedia.org/wiki/ZX_Spectrum) versions of [the major test suites](#major_test_suites). Configure the build system with [`-DZ80_DOWNLOAD_TEST_FILES=YES`](#z80_download_test_files) to download the firmware and software required and with [`-DZ80_WITH_TESTS=YES`](#z80_with_tests) to enable the compililation of the test tool. Also note that the Z80 library must be built with [`-DZ80_WITH_Q=YES`](#z80_with_q) to be able to pass Patrik Rak's tests.
|
||||
The package includes a tool called `test-Z80` capable of running all [CP/M](https://en.wikipedia.org/wiki/CP/M) and [ZX Spectrum](https://en.wikipedia.org/wiki/ZX_Spectrum) versions of [the major test suites](#major_test_suites). Configure the build system with [`-DZ80_WITH_TESTS=YES`](#z80_with_tests) to enable its compilation and [`-DZ80_DOWNLOAD_TEST_FILES=YES`](#z80_download_test_files) to download the firmware and software required. Also note that the Z80 library must be built with [`-DZ80_WITH_Q=YES`](#z80_with_q) to be able to pass Patrik Rak's tests.
|
||||
|
||||
Once you have built the package, type the following to run all tests:
|
||||
```shell
|
||||
./test-Z80 -p downloads/firmware -p downloads/software/POSIX -p "downloads/software/ZX Spectrum" -a
|
||||
```
|
||||
|
||||
The test tool supports options and can run the tests individually. Type `./test-Z80 -h` for help. If you prefer to run all tests through Make, just type `make tests`. For [CTest](https://cmake.org/cmake/help/latest/manual/ctest.1.html), use `ctest` or `ctest -V` instead.
|
||||
The tool supports options and can run the tests individually. Type `./test-Z80 -h` for help. If you prefer to run all tests through Make, just type `make tests`. For [CTest](https://cmake.org/cmake/help/latest/manual/ctest.1.html), use `ctest` or `ctest -V` instead.
|
||||
|
||||
Click on these links to see the complete logs generated by `test-Z80` emulating the [Zilog NMOS/CMOS](https://zxe.io/software/Z80/Z80%20v0.2%20Test%20Results%20%28Zilog%29.txt), [NEC NMOS](https://zxe.io/software/Z80/Z80%20v0.2%20Test%20Results%20%28NEC%20NMOS%29.txt), and [ST CMOS](https://zxe.io/software/Z80/Z80%20v0.2%20Test%20Results%20%28ST%20CMOS%29.txt) CPU variants. The CRC errors in the latter two are normal and match the values obtained on real hardware.
|
||||
These are the complete logs generated by `test-Z80` emulating the different CPU variants:
|
||||
|
||||
* [Zilog NMOS/CMOS](https://zxe.io/software/Z80/Z80%20v0.2%20Test%20Results%20%28Zilog%29.txt)
|
||||
* [NEC NMOS](https://zxe.io/software/Z80/Z80%20v0.2%20Test%20Results%20%28NEC%20NMOS%29.txt)
|
||||
* [ST CMOS](https://zxe.io/software/Z80/Z80%20v0.2%20Test%20Results%20%28ST%20CMOS%29.txt)
|
||||
|
||||
The CRC errors in the latter two are normal and match the values obtained on real hardware.
|
||||
|
||||
# Integration
|
||||
|
||||
|
||||
Reference in New Issue
Block a user