summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--.gitattributes2
-rw-r--r--src/regtests/chdman/chdtest.py7
-rw-r--r--src/regtests/chdman/input/createhd_1/in.params1
-rw-r--r--src/regtests/chdman/output/createhd_1/out.chdbin0 -> 21337 bytes
4 files changed, 10 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
index 8e264c39bfe..3782088bc28 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -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
diff --git a/src/regtests/chdman/chdtest.py b/src/regtests/chdman/chdtest.py
index a5d01aae9bc..aca814593ae 100644
--- a/src/regtests/chdman/chdtest.py
+++ b/src/regtests/chdman/chdtest.py
@@ -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
diff --git a/src/regtests/chdman/input/createhd_1/in.params b/src/regtests/chdman/input/createhd_1/in.params
new file mode 100644
index 00000000000..31c49301ea1
--- /dev/null
+++ b/src/regtests/chdman/input/createhd_1/in.params
@@ -0,0 +1 @@
+-chs 407,4,26 -ss 512 \ No newline at end of file
diff --git a/src/regtests/chdman/output/createhd_1/out.chd b/src/regtests/chdman/output/createhd_1/out.chd
new file mode 100644
index 00000000000..fe9f2cb8c8e
--- /dev/null
+++ b/src/regtests/chdman/output/createhd_1/out.chd
Binary files differ