Skip to content

Various failures in compiling current MAME integrated tests #7716

Open
@angelosa

Description

@angelosa

Steps I tried to launch unit testing from root MAME source, host Win 8.1 (correct me if I'm wrong)

make TOOLS=1 <etcetera>
make tests

With default regtests.mak and python 3.8.6 only jedutil unittest is launched (?), and all linked unit test fails:

GCC 10.2.0 detected
Running jedutil unittest
python.exe regtests/jedutil/jedtest.py
Test 18cv8_bi-directional_io.jed failed
Test 18cv8_combinatorial_feedback.jed failed
[...]
regtests/regtests.mak:56: recipe for target 'jedutiltest' failed
make: *** [jedutiltest] Error 1

If I invert jedutiltest and chdmantest order in REGTESTS set at line 45 then latter gets executed, except the underlying output is full of ...

createcd_cue_empty - info output differs
expected: d3606248ea42b39ad0f7a6d32d9a8c234e6113d1 found: e5aa14b40029fbe4dfd87d
ea371d664b183e6c60
createcd_cue_empty - SHA1 mismatch (output file)

And eventually ends by giving an exit code of 0 (???) go figure. ETA: looks like that the unit test make option stops at first "macro test" encountered, inconvenient imho.

It also doesn't seem like that the catch C++ unit test is involved at all, notably because there are tests defined. I honestly ignore if or how anything really compiles that part, definitely doesn't seem executed by just make tests and seems abandoned by itself (4 years old).

Bottom line if we want to link these to a CI action then we need to fix or ditch the two/three tests suites involved, tbh other than the obvious python scripts that can benefit from overall improvement I'm not even sure about the user friendliness of current catch2 library vs. something like CppUnit, not an expert of C++ unit testing tbh.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs designimplementation details needs to be properly addressedquestiontools

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions