Re: [test-API][PATCH V2] Add blockjob related test functions and cases

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2013年11月28日 13:25, Guannan Ren wrote:
On 2013年11月27日 10:56, Jincheng Miao wrote:
   * repos/domain/blkstatsflags.py
   * repos/domain/block_iotune.py
   * repos/domain/block_peek.py
   * repos/domain/block_resize.py
   * repos/domain/domain_blkio.py
   * cases/basic_blockjob.conf

   V1->V2:
Removed diskpath params for block_resize, this hard code disk device is
   not convenient for users.

---
  cases/basic_blockjob.conf     |  83 +++++++++++++++++++++
  repos/domain/blkstatsflags.py |  63 ++++++++++++++++
  repos/domain/block_iotune.py  | 118 ++++++++++++++++++++++++++++++
  repos/domain/block_peek.py    |  69 ++++++++++++++++++
  repos/domain/block_resize.py  |  94 ++++++++++++++++++++++++
repos/domain/domain_blkio.py | 163 ++++++++++++++++++++++++++++++++++++++++++
  6 files changed, 590 insertions(+)
  create mode 100644 cases/basic_blockjob.conf
  create mode 100644 repos/domain/blkstatsflags.py
  create mode 100644 repos/domain/block_iotune.py
  create mode 100644 repos/domain/block_peek.py
  create mode 100644 repos/domain/block_resize.py
  create mode 100644 repos/domain/domain_blkio.py

diff --git a/cases/basic_blockjob.conf b/cases/basic_blockjob.conf
new file mode 100644
index 0000000..21332dc
--- /dev/null
+++ b/cases/basic_blockjob.conf
@@ -0,0 +1,83 @@
+domain:install_linux_cdrom
+    guestname
+        $defaultname
+    guestos
+        $defaultos
+    guestarch
+        $defaultarch
+    vcpu
+        $defaultvcpu
+    memory
+        $defaultmem
+    hddriver
+        $defaulthd
+    nicdriver
+        $defaultnic
+    macaddr
+        54:52:00:45:c3:8a
+
+domain:install_linux_check
+    guestname
+        $defaultname
+    virt_type
+        $defaulthv
+    hddriver
+        $defaulthd
+    nicdriver
+        $defaultnic
+
+domain:block_iotune
+    guestname
+        $defaultname
+    bytes_sec
+        100000
+    iops_sec
+        0
+
+domain:block_iotune
+    guestname
+        $defaultname
+    bytes_sec
+        0
+    iops_sec
+        1000
+
+domain:block_peek
+    guestname
+        $defaultname
+
+domain:block_peek
+    guestname
+        $defaultname
+
+domain:block_resize
+    guestname
+        $defaultname
+    disksize
+        1G
+
+domain:blkstats
+    guestname
+        $defaultname
+
+domain:blkstatsflags
+    guestname
+        $defaultname
+    flags
+        0
+
+domain:domain_blkinfo
+    guestname
+        $defaultname

The domain:domain_blkinfo testcase failed to be run.
error is: Parameter blockdev is require

I know the reason, the fix to the issue can be found in another patch.
One thing you should notice, every patch should not break the running of existed testcases. If this patch is based on other patch. you should send the two patches in a set.

Guannan

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]