summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Oliver Stöneberg <firewave@users.noreply.github.com>2013-01-10 14:27:42 +0000
committer Oliver Stöneberg <firewave@users.noreply.github.com>2013-01-10 14:27:42 +0000
commit4b09e73c9f28fc98c91dc73b4d10d0a37802be5a (patch)
treee1c5de676355093896b8b82413e2572aaeeb8144 /src
parent688324529d7931d37925dac30d61bcf9d1daa947 (diff)
added "createhd" support to chdtest.py via in.params input file / added new chdman test
Diffstat (limited to 'src')
-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
3 files changed, 8 insertions, 0 deletions
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