added "createhd" support to chdtest.py via in.params input file / added new chdman test

This commit is contained in:
Oliver Stöneberg 2013-01-10 14:27:42 +00:00
parent 688324529d
commit 4b09e73c9f
4 changed files with 10 additions and 0 deletions

2
.gitattributes vendored
View File

@ -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

View File

@ -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

View File

@ -0,0 +1 @@
-chs 407,4,26 -ss 512

Binary file not shown.