From 4b09e73c9f28fc98c91dc73b4d10d0a37802be5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Thu, 10 Jan 2013 14:27:42 +0000 Subject: added "createhd" support to chdtest.py via in.params input file / added new chdman test --- src/regtests/chdman/chdtest.py | 7 +++++++ src/regtests/chdman/input/createhd_1/in.params | 1 + src/regtests/chdman/output/createhd_1/out.chd | Bin 0 -> 21337 bytes 3 files changed, 8 insertions(+) create mode 100644 src/regtests/chdman/input/createhd_1/in.params create mode 100644 src/regtests/chdman/output/createhd_1/out.chd (limited to 'src/regtests/chdman') 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 Binary files /dev/null and b/src/regtests/chdman/output/createhd_1/out.chd differ -- cgit v1.2.3