mirror of
https://github.com/holub/mame
synced 2025-07-01 16:19:38 +03:00
added "createhd" support to chdtest.py via in.params input file / added new chdman test
This commit is contained in:
parent
688324529d
commit
4b09e73c9f
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -8078,12 +8078,14 @@ src/regtests/chdman/input/createcd_iso_empty/in.iso -text
|
||||
src/regtests/chdman/input/createcd_nrg_empty/in.nrg -text
|
||||
src/regtests/chdman/input/createcd_toc_empty/data.bin -text
|
||||
src/regtests/chdman/input/createcd_toc_empty/in.toc svneol=native#text/plain
|
||||
src/regtests/chdman/input/createhd_1/in.params svneol=native#text/plain
|
||||
src/regtests/chdman/output/createcd_cue_audio_silence_wav/out.chd -text
|
||||
src/regtests/chdman/output/createcd_cue_audio_silence_wav_20_tracks/out.chd -text
|
||||
src/regtests/chdman/output/createcd_cue_empty/out.chd -text
|
||||
src/regtests/chdman/output/createcd_iso_empty/out.chd -text
|
||||
src/regtests/chdman/output/createcd_nrg_empty/out.chd -text
|
||||
src/regtests/chdman/output/createcd_toc_empty/out.chd -text
|
||||
src/regtests/chdman/output/createhd_1/out.chd -text
|
||||
src/regtests/jedutil/baseline/18cv8/18cv8_combinatorial_feedback.txt svneol=native#text/plain
|
||||
src/regtests/jedutil/baseline/18cv8/18cv8_register_feedback.txt svneol=native#text/plain
|
||||
src/regtests/jedutil/baseline/18cv8/pal10h8-to-peel18cv8.txt svneol=native#text/plain
|
||||
|
@ -65,6 +65,13 @@ for root, dirs, files in os.walk(inputPath):
|
||||
ext = d.split("_", 2)[1]
|
||||
inFile += "." + ext
|
||||
cmd = [chdmanBin, "createcd", "-f", "-i", inFile, "-o", tempFile]
|
||||
elif d.startswith("createhd"):
|
||||
inFile += ".params"
|
||||
f = open(inFile, 'r')
|
||||
paramsstr = f.read()
|
||||
f.close()
|
||||
params = paramsstr.split(" ")
|
||||
cmd = [chdmanBin, "createhd", "-f", "-o", tempFile] + params
|
||||
else:
|
||||
print "unsupported mode"
|
||||
continue
|
||||
|
1
src/regtests/chdman/input/createhd_1/in.params
Normal file
1
src/regtests/chdman/input/createhd_1/in.params
Normal file
@ -0,0 +1 @@
|
||||
-chs 407,4,26 -ss 512
|
BIN
src/regtests/chdman/output/createhd_1/out.chd
Normal file
BIN
src/regtests/chdman/output/createhd_1/out.chd
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user