Re: Questions about using qemuProcess API within a libvirt test

2020-02-14 Thread Collin Walling
Much appreciated to you both for the well-written explanations. I'll keep my libvirt tests to mock input/output responses and find an alternative test suite for using libvirt with a real QEMU instance. Thank you for your time! -- Respectfully, - Collin Walling

Re: Questions about using qemuProcess API within a libvirt test

2020-02-11 Thread Michal Privoznik
On 2/10/20 10:01 PM, Collin Walling wrote: Hello, Apart from what Laine said, this looks like your test binary is missing event loop. The way sending QMP commands work is that you have one thread, that wants to send a QMP command. It will construct the command, format JSON string out of it

Re: Questions about using qemuProcess API within a libvirt test

2020-02-11 Thread Laine Stump
On 2/10/20 4:01 PM, Collin Walling wrote: Hello, I am working on implementing libvirt test cases for the hypervisor-cpu-compare and -baseline commands. Ideally, I would like to take advantage of the qemuProcess API to spin up a QEMU instance and run these commands to test real data queried from

Questions about using qemuProcess API within a libvirt test

2020-02-10 Thread Collin Walling
Hello, I am working on implementing libvirt test cases for the hypervisor-cpu-compare and -baseline commands. Ideally, I would like to take advantage of the qemuProcess API to spin up a QEMU instance and run these commands to test real data queried from the hypervisor. However, I am having

[libvirt] Test CPU signatures

2019-10-25 Thread Leo Hou
Hi, Mr Jiri Denemark, Because I can't subscribe the development of mailing list now, so I paste the log, I want to know if

Re: [libvirt] Test failures in libvirt RHEL-6.2.AUS errata job

2018-01-18 Thread Jiri Denemark
On Thu, Jan 18, 2018 at 06:57:20 -0500, Jingjing Shao wrote: > Hi admin, > > I met the error as below in the in libvirt RHEL-6.2.AUS errata job, can you > help to check it ? > > === > 1 of 54 tests failed > (2 tests were not run) > Please report to

[libvirt] Test failures in libvirt RHEL-6.2.AUS errata job

2018-01-18 Thread Jingjing Shao
Hi admin, I met the error as below in the in libvirt RHEL-6.2.AUS errata job, can you help to check it ? === 1 of 54 tests failed (2 tests were not run) Please report to libvir-list@redhat.com === make[1]: *** [check-TESTS]

Re: [libvirt] Need help with running libvirt-test-api

2017-06-09 Thread Kairui Song
Hi, I can confirmed it's a bug introduced by commit e55e0ce9, you can revert it or apply the patch in the attachments. On Fri, Jun 9, 2017 at 12:27 AM, <lmur...@codeaurora.org> wrote: > Hi All, > I am new to libvirt; to create a virtual machine using libvirt-test-API >

[libvirt] Need help with running libvirt-test-api

2017-06-08 Thread lmurthy
Hi All, I am new to libvirt; to create a virtual machine using libvirt-test-API framework, I am starting with "repos/domain/linux_domain.conf". Before starting the script, I downloaded Fedora-Server-DVD-aarch64-23.iso under /var/lib/libvirt/images, and changed the

Re: [libvirt] [libvirt-test-API][PATCH] Modify makefile to add check option.

2016-06-30 Thread Ruifeng Bian
- Original Message - > From: "Liping Cheng" <lch...@redhat.com> > To: "Ruifeng Bian" <rb...@redhat.com> > Cc: libvir-list@redhat.com > Sent: Wednesday, June 29, 2016 6:16:23 PM > Subject: Re: [libvirt] [libvirt-test-API][PATCH] M

Re: [libvirt] [libvirt-test-API][PATCH] Modify makefile to add check option.

2016-06-29 Thread Liping Cheng
ACK Liping - Original Message - From: "Ruifeng Bian" <rb...@redhat.com> To: libvir-list@redhat.com Cc: "Ruifeng Bian" <rb...@redhat.com> Sent: Wednesday, June 29, 2016 5:01:26 PM Subject: [libvirt] [libvirt-test-API][PATCH] Modify makefile to add che

[libvirt] [libvirt-test-API][PATCH] Modify makefile to add check option.

2016-06-29 Thread Ruifeng Bian
Use inspektor to check code style. Change-Id: I8c238c785f8e5dbd585379cad0d4687d0d5b5ce2 Signed-off-by: Ruifeng Bian --- Makefile| 3 +++ selftests/check | 15 +++ 2 files changed, 18 insertions(+) create mode 100755 selftests/check diff --git a/Makefile

Re: [libvirt] [libvirt-test-API] Plans for code update

2016-06-24 Thread Ruifeng Bian
- Original Message - > From: "Martin Kletzander" <mklet...@redhat.com> > To: "Ruifeng Bian" <rb...@redhat.com> > Cc: libvir-list@redhat.com > Sent: Friday, June 24, 2016 5:20:15 PM > Subject: Re: [libvirt] [libvirt-test-API] Plans for code

Re: [libvirt] [libvirt-test-API] Plans for code update

2016-06-24 Thread Martin Kletzander
ursday, June 23, 2016 8:57:26 PM Subject: Re: [libvirt] [libvirt-test-API] Plans for code update On Thu, Jun 23, 2016 at 02:17:22AM -0400, Ruifeng Bian wrote: > >I am not sure how many of you keep an eye on this project. From what I know, not many. I believe it is used in some CI _som

Re: [libvirt] [libvirt-test-API] Plans for code update

2016-06-23 Thread Ruifeng Bian
- Original Message - > From: "Martin Kletzander" <mklet...@redhat.com> > To: "Ruifeng Bian" <rb...@redhat.com> > Cc: libvir-list@redhat.com > Sent: Thursday, June 23, 2016 8:57:26 PM > Subject: Re: [libvirt] [libvirt-test-API] Plans for code

Re: [libvirt] [libvirt-test-API] Plans for code update

2016-06-23 Thread Martin Kletzander
On Thu, Jun 23, 2016 at 02:17:22AM -0400, Ruifeng Bian wrote: I am not sure how many of you keep an eye on this project. From what I know, not many. I believe it is used in some CI _somewhere_... by _someone_. The project is for testing libvirt-python APIs, but many test cases are not

[libvirt] [libvirt-test-API] Plans for code update

2016-06-23 Thread Ruifeng Bian
I am not sure how many of you keep an eye on this project. The project is for testing libvirt-python APIs, but many test cases are not fully implemented until now. We want to keep this project updated in the future, the following aspects will be considered to update the code: 1. Code style - Use

[libvirt] [PATCH 4/4] libvirt-test: libvirt test supports drive-backup

2016-06-08 Thread Rudy Zhang
libvirt test supports drive-backup. Signed-off-by: longyou <long...@mogujie.com> --- tests/qemucaps2xmldata/all_1.6.0-1.caps| 1 + tests/qemucaps2xmldata/nodisksnapshot_1.6.0-1.caps | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/qemucaps2xmldata/all_1.6.0-1.caps b

Re: [libvirt] build issue due to '-Werror=cast-align' on ARM (armhf) [was: Re: [Xen-devel] [libvirt test] 63528: regressions - FAIL]

2015-11-24 Thread Ian Campbell
Hi Maxim, On Fri, 2015-11-13 at 20:26 -0700, Jim Fehlig wrote: > On 11/13/2015 10:00 AM, Dario Faggioli wrote: > > Hello, > > > > The Xen Project's automated test suite is failing at running its > > libvirt tests for a few time, like this: > > > > On Wed, 2015-11-04 at 09:04 +, osstest

[libvirt] build issue due to '-Werror=cast-align' on ARM (armhf) [was: Re: [Xen-devel] [libvirt test] 63528: regressions - FAIL]

2015-11-13 Thread Dario Faggioli
Hello, The Xen Project's automated test suite is failing at running its libvirt tests for a few time, like this: On Wed, 2015-11-04 at 09:04 +, osstest service owner wrote: > flight 63528 libvirt real [real] > http://logs.test-lab.xenproject.org/osstest/logs/63528/ > > Regressions :-( > >

Re: [libvirt] build issue due to '-Werror=cast-align' on ARM (armhf) [was: Re: [Xen-devel] [libvirt test] 63528: regressions - FAIL]

2015-11-13 Thread Jim Fehlig
On 11/13/2015 10:00 AM, Dario Faggioli wrote: > Hello, > > The Xen Project's automated test suite is failing at running its > libvirt tests for a few time, like this: > > On Wed, 2015-11-04 at 09:04 +, osstest service owner wrote: >> flight 63528 libvirt real [real] >>

Re: [libvirt] [libvirt-test-api][PATCH 0/2]Fix issues in the method of getting vcpu thread id of vcpupin_live and cpu_affinity

2015-10-29 Thread Luyao Huang
ACK to all of them BR, Luyao - Original Message - From: "Hongming Zhang" <honzh...@redhat.com> To: libvir-list@redhat.com Sent: Thursday, October 29, 2015 3:19:29 PM Subject: [libvirt] [libvirt-test-api][PATCH 0/2]Fix issues in the method of getting vcpu thread id

[libvirt] [libvirt-test-api][PATCH] Add config flag when calling setVcpusFlags with maximum flag

2015-10-29 Thread Hongming Zhang
Flag 'VIR_DOMAIN_AFFECT_CONFIG' is required by flag 'VIR_DOMAIN_VCPU_MAXIMUM' modified: set_vcpus_config.py --- repos/setVcpus/set_vcpus_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/setVcpus/set_vcpus_config.py b/repos/setVcpus/set_vcpus_config.py index

[libvirt] [libvirt-test-api][PATCH 0/2]Fix issues in the method of getting vcpu thread id of vcpupin_live and cpu_affinity

2015-10-29 Thread Hongming Zhang
Hongming Zhang (2): Fix the issues in checking method of vcpupin_live Modify the checking method via passing the vcpu thread id repos/domain/cpu_affinity.py | 16 +--- repos/setVcpus/vcpupin_live.py | 36 2 files changed, 29 insertions(+),

[libvirt] [libvirt-test-api][PATCH 1/2] Fix the issues in checking method of vcpupin_live

2015-10-29 Thread Hongming Zhang
The new method will get the vcpu thread id via qemu-monitor. Then get the Cpus_allowed_list value from /proc using the vcpu's thread id modified: repos/setVcpus/vcpupin_live.py --- repos/setVcpus/vcpupin_live.py | 36 1 file changed, 20 insertions(+), 16

[libvirt] [libvirt-test-api][PATCH 2/2] Modify the checking method via passing the vcpu thread id

2015-10-29 Thread Hongming Zhang
modified: repos/domain/cpu_affinity.py --- repos/domain/cpu_affinity.py | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/repos/domain/cpu_affinity.py b/repos/domain/cpu_affinity.py index e710968..8246938 100644 --- a/repos/domain/cpu_affinity.py +++

Re: [libvirt] [libvirt-test-api][PATCH] Add config flag when calling setVcpusFlags with maximum flag

2015-10-29 Thread hongming
ACK and Pushed On 10/29/2015 04:22 PM, Hongming Zhang wrote: Flag 'VIR_DOMAIN_AFFECT_CONFIG' is required by flag 'VIR_DOMAIN_VCPU_MAXIMUM' modified: set_vcpus_config.py --- repos/setVcpus/set_vcpus_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [libvirt] [libvirt-test-API] [PATCH] Add two cases for API interfaceAddresses and make small changes to global.cfg

2015-10-08 Thread hongming
On 09/28/2015 05:45 PM, Shanzhi Yu wrote: Signed-off-by: Shanzhi Yu --- cases/linux_domain.conf| 12 +++ global.cfg | 8 +++-- repos/domain/get_guest_network_info.py | 66 ++ 3 files changed,

Re: [libvirt] [libvirt-test-API] [PATCH] fix two error in script pin_iothread.py and connection_getAllDomainStats.py

2015-10-08 Thread hongming
On 09/28/2015 05:45 PM, Shanzhi Yu wrote: Signed-off-by: Shanzhi Yu --- repos/domain/pin_iothread.py | 2 +- repos/virconn/connection_getAllDomainStats.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/repos/domain/pin_iothread.py

Re: [libvirt] [libvirt-test-API] [PATCH] fix some typo

2015-10-08 Thread hongming
On 09/29/2015 12:28 PM, Shanzhi Yu wrote: Signed-off-by: Shanzhi Yu --- repos/domain/fsinfo.py | 2 +- repos/domain/install_linux_check.py | 2 +- repos/domain/install_linux_net.py | 2 +- repos/interface/define.py | 2 +-

[libvirt] [libvirt-test-API] [PATCH] Add test cases for API defineXMLFlags

2015-09-28 Thread Shanzhi Yu
stname +$defaultname +diskpath +/var/lib/libvirt/images/libvirt-test-api +vcpu +1 +memory +1048576 +hddriver +virtio +nicdriver +virtio +macaddr +54:52:00:45:c3:8a +flags +validate + domain:start gue

[libvirt] [libvirt-test-API] [PATCH] fix some typo

2015-09-28 Thread Shanzhi Yu
Signed-off-by: Shanzhi Yu --- repos/domain/fsinfo.py | 2 +- repos/domain/install_linux_check.py | 2 +- repos/domain/install_linux_net.py | 2 +- repos/interface/define.py | 2 +- repos/interface/undefine.py | 4 ++-- 5 files changed, 6

[libvirt] [libvirt-test-API] [PATCH] Add two cases for API interfaceAddresses and make small changes to global.cfg

2015-09-28 Thread Shanzhi Yu
Signed-off-by: Shanzhi Yu --- cases/linux_domain.conf| 12 +++ global.cfg | 8 +++-- repos/domain/get_guest_network_info.py | 66 ++ 3 files changed, 84 insertions(+), 2 deletions(-) create mode

[libvirt] [libvirt-test-API] [PATCH] fix two error in script pin_iothread.py and connection_getAllDomainStats.py

2015-09-28 Thread Shanzhi Yu
Signed-off-by: Shanzhi Yu --- repos/domain/pin_iothread.py | 2 +- repos/virconn/connection_getAllDomainStats.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/repos/domain/pin_iothread.py b/repos/domain/pin_iothread.py index

[libvirt] [libvirt-test-API] [PATCH] change some cases order in conf file linux_domain.conf

2015-09-28 Thread Shanzhi Yu
Some cases need guest agent running in domain, change some cases order to avoid the failure. Signed-off-by: Shanzhi Yu --- cases/linux_domain.conf | 100 1 file changed, 50 insertions(+), 50 deletions(-) diff --git

Re: [libvirt] [libvirt-test-api][PATCHv2] Add new test case for allocPages API

2015-09-24 Thread hongming
On 09/22/2015 10:34 AM, Luyao Huang wrote: Signed-off-by: Luyao Huang --- cases/test_connection.conf | 10 repos/virconn/connection_allocPages.py | 84 ++ 2 files changed, 94 insertions(+) create mode 100644

Re: [libvirt] [libvirt-test-api][PATCH] Add a new test case for setUserPassword

2015-09-24 Thread hongming
On 09/21/2015 03:43 PM, Luyao Huang wrote: Signed-off-by: Luyao Huang --- cases/linux_domain.conf | 22 repos/domain/set_user_passwd.py | 111 2 files changed, 133 insertions(+) create mode 100644

Re: [libvirt] [libvirt-test-api][PATCH 2/2] Add a new test case for fsinfo API

2015-09-24 Thread hongming
On 09/14/2015 11:43 AM, Luyao Huang wrote: Signed-off-by: Luyao Huang --- cases/linux_domain.conf | 10 + repos/domain/fsinfo.py | 103 2 files changed, 113 insertions(+) create mode 100644 repos/domain/fsinfo.py

[libvirt] [libvirt-test-api][PATCH] Add a new test case for setUserPassword

2015-09-21 Thread Luyao Huang
Signed-off-by: Luyao Huang --- cases/linux_domain.conf | 22 repos/domain/set_user_passwd.py | 111 2 files changed, 133 insertions(+) create mode 100644 repos/domain/set_user_passwd.py diff --git

[libvirt] [libvirt-test-api][PATCHv2] Add new test case for allocPages API

2015-09-21 Thread Luyao Huang
Signed-off-by: Luyao Huang --- cases/test_connection.conf | 10 repos/virconn/connection_allocPages.py | 84 ++ 2 files changed, 94 insertions(+) create mode 100644 repos/virconn/connection_allocPages.py diff --git

[libvirt] [libvirt-test-api][PATCH 1/2] introduce a new helper to parse mountinfo

2015-09-13 Thread Luyao Huang
And will return list like this : [{'devminor': '25', 'mountdir': '/sys/fs/cgroup/cpuset', 'devmajor': '0', 'mounttype': 'cgroup'},...] Signed-off-by: Luyao Huang --- utils/utils.py | 37 + 1 file changed, 37 insertions(+) diff --git

[libvirt] [libvirt-test-api][PATCH 2/2] Add a new test case for fsinfo API

2015-09-13 Thread Luyao Huang
Signed-off-by: Luyao Huang --- cases/linux_domain.conf | 10 + repos/domain/fsinfo.py | 103 2 files changed, 113 insertions(+) create mode 100644 repos/domain/fsinfo.py diff --git a/cases/linux_domain.conf

Re: [libvirt] [libvirt-test-api][PATCH 3/3] Add a new test case for ioThreadInfo

2015-08-30 Thread hongming
On 08/13/2015 11:09 AM, Luyao Huang wrote: Signed-off-by: Luyao Huang --- cases/linux_domain.conf | 6 repos/domain/info_iothread.py | 80 +++ 2 files changed, 86 insertions(+) create mode 100644

Re: [libvirt] [libvirt-test-api][PATCH] Add new test case for allocPages API

2015-08-30 Thread hongming
On 08/28/2015 05:02 PM, Luyao Huang wrote: Signed-off-by: Luyao Huang --- cases/test_connection.conf | 4 ++ repos/virconn/connection_allocPages.py | 88 ++ 2 files changed, 92 insertions(+) create mode 100644

[libvirt] [libvirt-test-api][PATCH] Add new test case for allocPages API

2015-08-28 Thread Luyao Huang
Signed-off-by: Luyao Huang lhu...@redhat.com --- cases/test_connection.conf | 4 ++ repos/virconn/connection_allocPages.py | 88 ++ 2 files changed, 92 insertions(+) create mode 100644 repos/virconn/connection_allocPages.py diff --git

Re: [libvirt] [libvirt-test-api][PATCH 3/3] Add a new case for getCPUStatus

2015-08-23 Thread hongming
On 06/02/2015 07:57 AM, hongming wrote: ACK and pushed Don't forget to remove trailing whitespace next time. Thanks Hongming On 05/18/2015 09:28 AM, Luyao Huang wrote: Signed-off-by: Luyao Huang lhu...@redhat.com --- cases/linux_domain.conf| 6 +++ repos/domain/cpu_status.py | 113

Re: [libvirt] [libvirt-test-api][PATCH 3/3] Add a new case for getCPUStatus

2015-08-23 Thread lhuang
On 08/24/2015 11:41 AM, hongming wrote: On 06/02/2015 07:57 AM, hongming wrote: ACK and pushed Don't forget to remove trailing whitespace next time. Thanks Hongming On 05/18/2015 09:28 AM, Luyao Huang wrote: Signed-off-by: Luyao Huang lhu...@redhat.com --- cases/linux_domain.conf| 6

[libvirt] [libvirt-test-api][PATCH 3/3] Add a new test case for ioThreadInfo

2015-08-12 Thread Luyao Huang
Signed-off-by: Luyao Huang lhu...@redhat.com --- cases/linux_domain.conf | 6 repos/domain/info_iothread.py | 80 +++ 2 files changed, 86 insertions(+) create mode 100644 repos/domain/info_iothread.py diff --git a/cases/linux_domain.conf

[libvirt] [libvirt-test-api][PATCH 2/3] Add new test case for API pinIOThread

2015-08-12 Thread Luyao Huang
Signed-off-by: Luyao Huang lhu...@redhat.com --- cases/linux_domain.conf | 6 ++ repos/domain/pin_iothread.py | 158 +++ 2 files changed, 164 insertions(+) create mode 100644 repos/domain/pin_iothread.py diff --git a/cases/linux_domain.conf

[libvirt] [libvirt-test-api][PATCH 1/3] Introduce new test case for add/del IOthread

2015-08-12 Thread Luyao Huang
Signed-off-by: Luyao Huang lhu...@redhat.com --- cases/linux_domain.conf | 6 +++ repos/domain/add_del_iothread.py | 82 2 files changed, 88 insertions(+) create mode 100644 repos/domain/add_del_iothread.py diff --git a/cases/linux_domain.conf

Re: [libvirt] [libvirt-test-api][PATCH] Introduce new test case for setMemoryStatsPeriod

2015-07-31 Thread hongming
On 07/02/2015 05:25 PM, Luyao Huang wrote: Signed-off-by: Luyao Huang lhu...@redhat.com --- cases/linux_domain.conf | 6 +++ repos/domain/set_memory_period.py | 84 +++ 2 files changed, 90 insertions(+) create mode 100644

Re: [libvirt] [libvirt-test-API][PATCH 2/2] Add new case to test storagePoolLookupByVolume

2015-07-28 Thread hongming
On 07/02/2015 05:08 PM, jiahu wrote: Added a new case to validate storagePoolLookupByVolume api --- repos/storage/pool_lookup_by_volume.py | 46 ++ 1 file changed, 46 insertions(+) create mode 100644 repos/storage/pool_lookup_by_volume.py diff --git

[libvirt] [libvirt-test-API][PATCH 2/2] Add new case to test storagePoolLookupByVolume

2015-07-02 Thread jiahu
Added a new case to validate storagePoolLookupByVolume api --- repos/storage/pool_lookup_by_volume.py | 46 ++ 1 file changed, 46 insertions(+) create mode 100644 repos/storage/pool_lookup_by_volume.py diff --git a/repos/storage/pool_lookup_by_volume.py

[libvirt] [libvirt-test-API][PATCH 0/2] Add a new case for storagePoolLookupByVolume API

2015-07-02 Thread jiahu
This API will be tested in dir/logicl/netfs pool type. jiahu (2): Add pool_lookup_by_volume.py to conf Add new case to test storagePoolLookupByVolume cases/storage_dir.conf | 6 + cases/storage_logical.conf | 6 + cases/storage_netfs.conf

[libvirt] [libvirt-test-API][PATCH 1/2] Add pool_lookup_by_volume.py to conf

2015-07-02 Thread jiahu
--- cases/storage_dir.conf | 6 ++ cases/storage_logical.conf | 6 ++ cases/storage_netfs.conf | 6 ++ 3 files changed, 18 insertions(+) diff --git a/cases/storage_dir.conf b/cases/storage_dir.conf index 38b349d..97e8676 100644 --- a/cases/storage_dir.conf +++

[libvirt] [libvirt-test-api][PATCH] Introduce new test case for setMemoryStatsPeriod

2015-07-02 Thread Luyao Huang
Signed-off-by: Luyao Huang lhu...@redhat.com --- cases/linux_domain.conf | 6 +++ repos/domain/set_memory_period.py | 84 +++ 2 files changed, 90 insertions(+) create mode 100644 repos/domain/set_memory_period.py diff --git

Re: [libvirt] [libvirt-test-api][PATCH] fix imperfect cleanup cause the case will always fail

2015-06-01 Thread hongming
ACK and Pushed On 05/15/2015 09:59 AM, Luyao Huang wrote: Remove call undefined function. Signed-off-by: Luyao Huang lhu...@redhat.com --- repos/virconn/connection_getMemoryParameters.py | 4 1 file changed, 4 deletions(-) diff --git a/repos/virconn/connection_getMemoryParameters.py

Re: [libvirt] [libvirt-test-api][PATCH 3/3] Add a new case for getCPUStatus

2015-06-01 Thread hongming
ACK and pushed Don't forget to remove trailing whitespace next time. Thanks Hongming On 05/18/2015 09:28 AM, Luyao Huang wrote: Signed-off-by: Luyao Huang lhu...@redhat.com --- cases/linux_domain.conf| 6 +++ repos/domain/cpu_status.py | 113

[libvirt] [libvirt-test-api][PATCH 1/3] add new test case for getMemoryStats

2015-05-17 Thread Luyao Huang
Signed-off-by: Luyao Huang lhu...@redhat.com --- cases/test_connection.conf | 4 ++ repos/virconn/connection_getMemoryStats.py | 96 ++ 2 files changed, 100 insertions(+) create mode 100644 repos/virconn/connection_getMemoryStats.py diff --git

[libvirt] [libvirt-test-api][PATCH 3/3] Add a new case for getCPUStatus

2015-05-17 Thread Luyao Huang
Signed-off-by: Luyao Huang lhu...@redhat.com --- cases/linux_domain.conf| 6 +++ repos/domain/cpu_status.py | 113 + 2 files changed, 119 insertions(+) create mode 100644 repos/domain/cpu_status.py diff --git a/cases/linux_domain.conf

[libvirt] [libvirt-test-api][PATCH 2/3] improve the way we get the standard deviation

2015-05-17 Thread Luyao Huang
Signed-off-by: Luyao Huang lhu...@redhat.com --- utils/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/utils.py b/utils/utils.py index 954b2bf..a6e6965 100644 --- a/utils/utils.py +++ b/utils/utils.py @@ -906,9 +906,10 @@ def get_standard_deviation(cb1,

Re: [libvirt] [libvirt-test-api][PATCH 2/3] improve the way we get the standard deviation

2015-05-17 Thread jiahu
On 05/18/2015 09:28 AM, Luyao Huang wrote: Signed-off-by: Luyao Huang lhu...@redhat.com --- utils/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/utils.py b/utils/utils.py index 954b2bf..a6e6965 100644 --- a/utils/utils.py +++ b/utils/utils.py @@

[libvirt] [libvirt-test-api][PATCH] fix imperfect cleanup cause the case will always fail

2015-05-14 Thread Luyao Huang
Remove call undefined function. Signed-off-by: Luyao Huang lhu...@redhat.com --- repos/virconn/connection_getMemoryParameters.py | 4 1 file changed, 4 deletions(-) diff --git a/repos/virconn/connection_getMemoryParameters.py b/repos/virconn/connection_getMemoryParameters.py index

Re: [libvirt] [libvirt-test-api][PATCH] Add a new test case for getMemoryParameters

2015-05-05 Thread hongming
ACK and Pushed Thanks Hongming On 05/04/2015 04:09 PM, Luyao Huang wrote: Signed-off-by: Luyao Huang lhu...@redhat.com --- cases/test_connection.conf | 4 ++ repos/virconn/connection_getMemoryParameters.py | 61 + 2 files changed, 65

[libvirt] [libvirt-test-api][PATCH] Add a new test case for getMemoryParameters

2015-05-04 Thread Luyao Huang
Signed-off-by: Luyao Huang lhu...@redhat.com --- cases/test_connection.conf | 4 ++ repos/virconn/connection_getMemoryParameters.py | 61 + 2 files changed, 65 insertions(+) create mode 100644 repos/virconn/connection_getMemoryParameters.py diff

Re: [libvirt] [libvirt-test-API][PATCH 3/3] Modify the case to cover two new APIs

2015-04-29 Thread hongming
ACK and Pushed Thanks Hongming On 04/23/2015 03:37 PM, jiahu wrote: Check two new APIs in this case: storagePoolLookupByUUIDString/storagePoolLookupByUUID --- repos/storage/pool_uuid.py | 49 +- 1 file changed, 48 insertions(+), 1 deletion(-)

Re: [libvirt] [libvirt-test-api][PATCH 1/3] introduce 2 functions in utils

2015-04-29 Thread hongming
, 2015 9:00:55 PM Subject: [libvirt] [libvirt-test-api][PATCH 1/3] introduce 2 functions in utils get_standard_deviation() is to get Standard Deviation, and param_to_tuple_nolength() allow do not pass lengh when use param_to_tuple(). Signed-off-by: Luyao Huang lhu...@redhat.com --- utils

Re: [libvirt] [libvirt-test-api][PATCH 2/3] Add getCellsFreeMemory test case

2015-04-24 Thread hujianwei
On 22/04/15 21:00, Luyao Huang wrote: It is hard to check if the free memory for each node is right, because memory change too fast in most machine (even machine in low load). Get this free memory 1000 times and get the Standard Deviation via get_standard_deviation(). 177 is a expectations get

[libvirt] [libvirt-test-API][PATCH 2/3] Modify the case to cover two new APIs

2015-04-23 Thread jiahu
Test below 2 APIs in this case: networkLookupByUUIDString/networkLookupByUUID --- repos/network/network_uuid.py | 68 --- 1 file changed, 58 insertions(+), 10 deletions(-) diff --git a/repos/network/network_uuid.py b/repos/network/network_uuid.py index

[libvirt] [libvirt-test-API][PATCH 1/3] Add two testing cases to test_connection.conf

2015-04-23 Thread jiahu
Below 4 new APIs will be tested networkLookupByUUIDString/networkLookupByUUID storagePoolLookupByUUIDString/storagePoolLookupByUUID --- cases/test_connection.conf | 8 1 file changed, 8 insertions(+) diff --git a/cases/test_connection.conf b/cases/test_connection.conf index

[libvirt] [libvirt-test-API][PATCH 3/3] Modify the case to cover two new APIs

2015-04-23 Thread jiahu
Check two new APIs in this case: storagePoolLookupByUUIDString/storagePoolLookupByUUID --- repos/storage/pool_uuid.py | 49 +- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/repos/storage/pool_uuid.py b/repos/storage/pool_uuid.py index

[libvirt] [libvirt-test-API][PATCH 0/3] Modify the existing cases to cover 4 new APIs

2015-04-23 Thread jiahu
Modify the existing cases to cover below 4 new APIs: networkLookupByUUIDString/networkLookupByUUID storagePoolLookupByUUIDString/storagePoolLookupByUUID jiahu (3): Add two testing cases to test_connection.conf Modify the case to cover two new APIs Modify the case to cover two new APIs

Re: [libvirt] [libvirt-test-api][PATCH 1/3] introduce 2 functions in utils

2015-04-23 Thread Jianwei Hu
It's OK to me, please hongming help review it again. BR, Jianwei - Original Message - From: Luyao Huang lhu...@redhat.com To: libvir-list@redhat.com Cc: Luyao Huang lhu...@redhat.com Sent: Wednesday, April 22, 2015 9:00:55 PM Subject: [libvirt] [libvirt-test-api][PATCH 1/3] introduce 2

[libvirt] [libvirt-test-api][PATCH 3/3] fix the logic in getDomainCapabilities

2015-04-22 Thread Luyao Huang
Signed-off-by: Luyao Huang lhu...@redhat.com --- repos/virconn/connection_getDomainCapabilities.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/repos/virconn/connection_getDomainCapabilities.py b/repos/virconn/connection_getDomainCapabilities.py index f0cfa1f..566d3ed

[libvirt] [libvirt-test-api][PATCH 2/3] Add getCellsFreeMemory test case

2015-04-22 Thread Luyao Huang
It is hard to check if the free memory for each node is right, because memory change too fast in most machine (even machine in low load). Get this free memory 1000 times and get the Standard Deviation via get_standard_deviation(). 177 is a expectations get from 1000 times test in a low load

Re: [libvirt] [libvirt-test-api][PATCH 3/3] fix the logic in getDomainCapabilities

2015-04-22 Thread Jianwei Hu
ACKed, thanks. - Original Message - From: Luyao Huang lhu...@redhat.com To: libvir-list@redhat.com Cc: Luyao Huang lhu...@redhat.com Sent: Wednesday, April 22, 2015 9:00:57 PM Subject: [libvirt] [libvirt-test-api][PATCH 3/3] fix the logic in getDomainCapabilities Signed-off

[libvirt] [libvirt-test-api][PATCH 1/3] introduce 2 functions in utils

2015-04-22 Thread Luyao Huang
get_standard_deviation() is to get Standard Deviation, and param_to_tuple_nolength() allow do not pass lengh when use param_to_tuple(). Signed-off-by: Luyao Huang lhu...@redhat.com --- utils/utils.py | 28 1 file changed, 28 insertions(+) diff --git a/utils/utils.py

Re: [libvirt] [Xen-devel] [libvirt test] 50401: regressions - FAIL

2015-04-17 Thread Ian Campbell
On Wed, 2015-04-15 at 14:16 +0100, Daniel P. Berrange wrote: Yeah, there is nothing Xen specific about the problem - it is entirely down to the build toolchain compiler options. FYI our bisector has now tripped over another related problem,

Re: [libvirt] [Xen-devel] [libvirt test] 50401: regressions - FAIL

2015-04-15 Thread Daniel P. Berrange
On Wed, Apr 15, 2015 at 11:17:29AM +0100, Ian Campbell wrote: On Tue, 2015-04-14 at 10:37 +0100, Daniel P. Berrange wrote: On Tue, Apr 14, 2015 at 10:33:45AM +0100, Ian Campbell wrote: On Tue, 2015-04-14 at 02:27 +, osstest service user wrote: flight 50401 libvirt real [real]

Re: [libvirt] [Xen-devel] [libvirt test] 50401: regressions - FAIL

2015-04-15 Thread Ian Campbell
On Tue, 2015-04-14 at 10:37 +0100, Daniel P. Berrange wrote: On Tue, Apr 14, 2015 at 10:33:45AM +0100, Ian Campbell wrote: On Tue, 2015-04-14 at 02:27 +, osstest service user wrote: flight 50401 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/50401/

Re: [libvirt] [Xen-devel] [libvirt test] 50401: regressions - FAIL

2015-04-14 Thread Daniel P. Berrange
On Tue, Apr 14, 2015 at 10:33:45AM +0100, Ian Campbell wrote: On Tue, 2015-04-14 at 02:27 +, osstest service user wrote: flight 50401 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/50401/ Regressions :-( Tests which did not succeed and are blocking,

Re: [libvirt] [Xen-devel] [libvirt test] 50401: regressions - FAIL

2015-04-14 Thread Ian Campbell
On Tue, 2015-04-14 at 02:27 +, osstest service user wrote: flight 50401 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/50401/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-armhf-libvirt 5

[libvirt] [libvirt-test-API][PATCH] Add connection_getDomainCapabilities test case

2015-03-26 Thread jiahu
In the case, we will validate getDomainCapabilities API for libvirt. jiahu (1): Add connection_getDomainCapabilities test case cases/test_connection.conf| 10 + repos/virconn/connection_getDomainCapabilities.py | 438 ++ 2 files changed, 448

[libvirt] [libvirt-test-API][PATCH] Add connection_getDomainCapabilities test case

2015-03-26 Thread jiahu
This case will test getDomainCapabilities API, and connection_getDomainCapabilities test case was added to test_connection.conf --- cases/test_connection.conf| 10 + repos/virconn/connection_getDomainCapabilities.py | 438 ++ 2 files changed, 448

Re: [libvirt] [libvirt-test-API][PATCH] Add connection_getDomainCapabilities test case

2015-03-26 Thread hongming
On 03/26/2015 05:06 PM, jiahu wrote: This case will test getDomainCapabilities API, and connection_getDomainCapabilities test case was added to test_connection.conf --- cases/test_connection.conf| 10 + repos/virconn/connection_getDomainCapabilities.py | 438

Re: [libvirt] [libvirt-test-API][PATCH 2/2] Add cases to basic_network.conf

2015-03-26 Thread hongming
ACK and Pushed Thanks Hongming On 02/15/2015 03:02 PM, Jincheng Miao wrote: Signed-off-by: Jincheng Miao jm...@redhat.com --- cases/basic_network.conf | 24 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/cases/basic_network.conf

Re: [libvirt] [libvirt-test-API][PATCH v2 0/2] Add test cases for setTime and getTime

2015-03-18 Thread hongming
(-) create mode 100644 repos/domain/guest_time.py create mode 100644 repos/domain/set_guest_time.py ACK Please see my comments in the below patch mail. [libvirt] [libvirt-test-API][PATCH v2 2/2] Add test cases for linux_domain ACK and Pushed after adding the seconds param in domain:set_guest_time

Re: [libvirt] [test-API][PATCH] Add connection_security_model test case

2015-03-18 Thread hongming
On 03/17/2015 11:49 AM, lcheng wrote: The connection_security_model.py uses getSecurityModel() to validate new API virNodeGetSecurityModel of libvirt. --- cases/linux_domain.conf| 4 ++ repos/virconn/connection_security_model.py | 101 + 2

[libvirt] [test-API][PATCH] Add connection_security_model test case

2015-03-16 Thread lcheng
The connection_security_model.py uses getSecurityModel() to validate new API virNodeGetSecurityModel of libvirt. --- cases/linux_domain.conf| 4 ++ repos/virconn/connection_security_model.py | 101 + 2 files changed, 105 insertions(+) create

Re: [libvirt] [libvirt-test-API][PATCH 2/2] Add coredump_with_format test case to linux_domain conf

2015-03-13 Thread hongming
ACK and Pushed Thanks Hongming On 02/27/2015 01:52 PM, jiahu wrote: --- cases/linux_domain.conf | 44 1 file changed, 44 insertions(+) diff --git a/cases/linux_domain.conf b/cases/linux_domain.conf index a5ada35..490ee90 100644 ---

Re: [libvirt] [libvirt-test-API][PATCH V2 0/2] Add connection_getAllDomainStats test case

2015-03-13 Thread hongming
ACK and Pushed Thanks Hongming On 03/12/2015 03:10 PM, jiahu wrote: The testing case will validate the getAllDomainStats API in class virConnect V2: Added new domainListGetStats API in this case jiahu (2): Add connection_getAllDomainStats test case to linux_domain.conf Add

Re: [libvirt] [libvirt-test-API][PATCH v2 2/2] Add test cases for linux_domain

2015-03-12 Thread hujianwei
On 12/03/15 11:11, Jincheng Miao wrote: Signed-off-by: Jincheng Miao jm...@redhat.com --- cases/linux_domain.conf | 30 ++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/cases/linux_domain.conf b/cases/linux_domain.conf index 515858a..f3f714f

Re: [libvirt] [libvirt-test-API][PATCH 1/2] Add guest setTime and getTime testing

2015-03-12 Thread hujianwei
On 10/03/15 17:29, Jincheng Miao wrote: Signed-off-by: Jincheng Miao jm...@redhat.com --- repos/domain/guest_time.py | 98 repos/domain/set_guest_time.py | 122 2 files changed, 220 insertions(+), 0 deletions(-)

Re: [libvirt] [libvirt-test-API][PATCH v2 0/2] Add test cases for setTime and getTime

2015-03-12 Thread hujianwei
create mode 100644 repos/domain/set_guest_time.py ACK Please see my comments in the below patch mail. [libvirt] [libvirt-test-API][PATCH v2 2/2] Add test cases for linux_domain BR, Jianwei -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [libvirt-test-API][PATCH] Rewrite case for listAllInterfaces() API

2015-03-12 Thread hongming
ACK and Pushed Thanks Hongming On 01/08/2015 11:12 PM, jiahu wrote: Using actual python API to validate test case, rather than use virsh iface-* command lines. --- cases/basic_interface.conf| 12 ++ repos/interface/iface_list.py | 299 -- 2 files

[libvirt] [libvirt-test-API][PATCH V2 0/2] Add connection_getAllDomainStats test case

2015-03-12 Thread jiahu
The testing case will validate the getAllDomainStats API in class virConnect V2: Added new domainListGetStats API in this case jiahu (2): Add connection_getAllDomainStats test case to linux_domain.conf Add connection_getAllDomainStats test case cases/linux_domain.conf

[libvirt] [libvirt-test-API][PATCH V2 1/2] Add connection_getAllDomainStats test case to linux_domain.conf

2015-03-12 Thread jiahu
--- cases/linux_domain.conf | 14 ++ 1 file changed, 14 insertions(+) diff --git a/cases/linux_domain.conf b/cases/linux_domain.conf index 552f001..a2c01fa 100644 --- a/cases/linux_domain.conf +++ b/cases/linux_domain.conf @@ -34,6 +34,20 @@ domain:start guestname

Re: [libvirt] [libvirt-test-API][PATCH 2/2] Add connection_getAllDomainStats test case

2015-03-12 Thread hujianwei
On 11/03/15 17:14, hongming wrote: Hi jiahu Please add the following api calling to your case, we can test them using the same checking methods . def domainListGetStats(self, doms, stats=0, flags=0): Query statistics for given domains. Thanks Hongming OK, the V2 patch series has been

[libvirt] [libvirt-test-API][PATCH V2 2/2] Add connection_getAllDomainStats test case

2015-03-12 Thread jiahu
The case will validate the getAllDomainStats and domainListGetStats two APIs in class virConnect --- repos/virconn/connection_getAllDomainStats.py | 549 ++ 1 file changed, 549 insertions(+) create mode 100644 repos/virconn/connection_getAllDomainStats.py diff --git

Re: [libvirt] [libvirt-test-API][PATCH 2/2] Add securitylabel test case

2015-03-11 Thread hongming
ACK and Pushed Thanks hongming On 02/15/2015 04:12 PM, jiahu wrote: 2 new APIs securityLabel and securityLabelList will be covered in securitylabel.py --- repos/domain/securitylabel.py | 170 ++ 1 file changed, 170 insertions(+) create mode 100644

  1   2   3   4   5   6   7   8   9   >