joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.66k stars 378 forks source link

automated testing goals [by 2018-01-30] #435

Open joncampbell123 opened 6 years ago

joncampbell123 commented 6 years ago

I've been bringing up automated testing a lot, I think it's time to start it.

Note that some tests will require the DOSBox-X integration device, which contains functions to support automated testing.

The testing programs will be written to test against DOSBox-X, as well as real hardware where possible, to validate emulation accuracy.

joncampbell123 commented 6 years ago

DOSBox-X:

joncampbell123 commented 6 years ago

Integration device:

joncampbell123 commented 6 years ago

8253/8254 timer:

Manual testing:

Questions:

martinlindhe commented 6 years ago

Not sure if useful, but I recently looked into making tests for a similar project.

Here's what I did:

Select a bunch of small software (i chose 256 byte demos from http://pouet.net/)

My demo collection can be found at https://github.com/martinlindhe/dos-software-decoding

I did my tests in the rust programming language, so that part might be useless here, but for completeness, this is the code I am referring to: https://github.com/martinlindhe/dustbox-rs/blob/master/src/gpu_test.rs#L76

joncampbell123 commented 6 years ago

@martinlindhe The idea is to make tests specific to each part of the emulation. In the list above I make it clear to start with the PIT timer (8254) emulation.

martinlindhe commented 6 years ago

Indeed testing is useful on many levels, was just sharing some experience :-)