Files
a5e8a10067 Added a configurable frontend for CI tests inside gloworm (#12)
This PR should be self-explanatory. You can just point the emu to the
kernel bin file and the config generated by `make menuconfig` and it
should run. It can also be fed with a file containing test commands, to
show if the kernel sucessfully runs the shell and executes commands.

You can merge this into an extra branch if you want because this PR is
based on the `quick-fix-for-m68k-ext-instruction` branch.
I sucessfully tested it on the `mc68010` as a target, both with a minix
ramfs and a minix partition. It did not work with a ext2 ramdisk,
leading to a segfault, but I think it would be better if you look into
that because I don't know if the problem lies inside gloworm or inside
the emulator.

Before doing any more work on gloworm on my side it would be cool to add
this emulator as a test so that it would be just a `make` target or a
shellscript to test the kernel with different configurations. I would
like to have your input on that how it could be integrated into the
existing tests.
I am also looking into a ext2 image generator `make` target based on
`genext2fs` which does not require root rights, with the option to
generate images both for floppy or ATA partitions (without partition
table) and for tests (with a partition table).

---------

Co-authored-by: transistor <trans@jabberwocky.ca>
Co-authored-by: flox <flox@z-labor.space>
2026-08-14 12:46:16 -07:00
..

Tests

This directory contains CPU tests for the 68k and Z80. The test cases themselves are provided by Tom Harte and raddad772, and are shared through the github organization https://github.com/SingleStepTests

Downloading

To download the 68k tests, from the tests/ directory, run:

git clone git@github.com:SingleStepTests/m68000.git

To download the Z80 tests, from the tests/ directory, run:

git clone git@github.com:SingleStepTests/z80.git

Running

The 68k tests can be run from the moa root with:

tests/m68k-test/runner/run_all.sh

By default, the script will use the compressed versions of the tests which are slower to run because they must be unzipped every time the tests are run. To speed it up for repeat runs, the tests can be gunzip'ed to their own directory and the test suite location can be change on the command line or in the script to point to the uncompressed versions

The Z80 tests can be run with:

tests/z80-test-runner/run_all.sh

Thanks to Tom Harte and raddad772 for providing these incredibly valuable tests