All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lucas Meneghel Rodrigues <lmr@redhat.com>
To: autotest@test.kernel.org
Cc: kvm@vger.kernel.org
Subject: Re: [PATCH 0/7] [RFC] KVM autotest refactor stage 1
Date: Wed, 09 Mar 2011 08:54:29 -0300	[thread overview]
Message-ID: <1299671669.2879.5.camel@freedom> (raw)
In-Reply-To: <1299662470-3017-1-git-send-email-lmr@redhat.com>

On Wed, 2011-03-09 at 06:21 -0300, Lucas Meneghel Rodrigues wrote:
> In order to maximize code reuse among different virtualization
> technologies, refactor the KVM test code in a way that will allow
> new implementations of virtualization testing, such as xen testing.
> 
> What was done
> • Create autotest_lib.client.virt and move the libraries in there,
> with some renaming and abstracting the KVM specific functions
> • Create a dispatcher that can instantiate the appropriate vm class,
> controlled by a new parameter 'vm_type'
> (can be kvm, xen, futurely libvirt...)
> • Make all the code use the new libraries
> • Remove the 'old' libraries
> • Make the KVM test loader to try finding the tests on a common
> location, and if the test can't be found there, look for it on the
> kvm subtest dir. This way other virt tests can benefit from thm
> • Move the tests that have virt tech agnostic code to the common
> location

I have published a tree with the result of the refactor on the github
repo:

https://github.com/autotest/autotest

https://github.com/autotest/autotest/tree/refactor

So please refer to it when doing reviews, thanks!

> Lucas Meneghel Rodrigues (7):
>   KVM test: Move test utilities to client/tools
>   KVM test: Create autotest_lib.client.virt namespace
>   KVM test: tests_base.cfg: Introduce parameter 'vm_type'
>   KVM test: Adapt the test code to use the new virt namespace
>   KVM test: Removing the old libraries and programs
>   KVM test: Try to load subtests on a shared tests location
>   KVM test: Moving generic tests to common tests area
> 
>  client/common_lib/cartesian_config.py              |  698 ++++++++
>  client/tests/kvm/cd_hash.py                        |   48 -
>  client/tests/kvm/control                           |   18 +-
>  client/tests/kvm/control.parallel                  |    8 +-
>  client/tests/kvm/control.unittests                 |   14 +-
>  client/tests/kvm/get_started.py                    |    5 +-
>  client/tests/kvm/html_report.py                    | 1727 -------------------
>  client/tests/kvm/installer.py                      |  797 ---------
>  client/tests/kvm/kvm.py                            |   32 +-
>  client/tests/kvm/kvm_config.py                     |  698 --------
>  client/tests/kvm/kvm_monitor.py                    |  744 --------
>  client/tests/kvm/kvm_preprocessing.py              |  467 -----
>  client/tests/kvm/kvm_scheduler.py                  |  229 ---
>  client/tests/kvm/kvm_subprocess.py                 | 1351 ---------------
>  client/tests/kvm/kvm_test_utils.py                 |  753 ---------
>  client/tests/kvm/kvm_utils.py                      | 1728 -------------------
>  client/tests/kvm/kvm_vm.py                         | 1777 --------------------
>  client/tests/kvm/migration_control.srv             |   12 +-
>  client/tests/kvm/ppm_utils.py                      |  237 ---
>  client/tests/kvm/rss_file_transfer.py              |  519 ------
>  client/tests/kvm/scan_results.py                   |   97 --
>  client/tests/kvm/stepeditor.py                     | 1401 ---------------
>  client/tests/kvm/test_setup.py                     |  700 --------
>  client/tests/kvm/tests/autotest.py                 |   25 -
>  client/tests/kvm/tests/balloon_check.py            |    2 +-
>  client/tests/kvm/tests/boot.py                     |   26 -
>  client/tests/kvm/tests/boot_savevm.py              |    2 +-
>  client/tests/kvm/tests/build.py                    |    6 +-
>  client/tests/kvm/tests/clock_getres.py             |   37 -
>  client/tests/kvm/tests/enospc.py                   |    2 +-
>  client/tests/kvm/tests/ethtool.py                  |  235 ---
>  client/tests/kvm/tests/file_transfer.py            |   83 -
>  client/tests/kvm/tests/guest_s4.py                 |   76 -
>  client/tests/kvm/tests/guest_test.py               |   80 -
>  client/tests/kvm/tests/image_copy.py               |   45 -
>  client/tests/kvm/tests/iofuzz.py                   |  136 --
>  client/tests/kvm/tests/ioquit.py                   |   31 -
>  client/tests/kvm/tests/iozone_windows.py           |   40 -
>  client/tests/kvm/tests/jumbo.py                    |  127 --
>  client/tests/kvm/tests/kdump.py                    |   75 -
>  client/tests/kvm/tests/ksm_overcommit.py           |   37 +-
>  client/tests/kvm/tests/linux_s3.py                 |   41 -
>  client/tests/kvm/tests/mac_change.py               |   60 -
>  client/tests/kvm/tests/migration.py                |    6 +-
>  .../kvm/tests/migration_with_file_transfer.py      |    8 +-
>  client/tests/kvm/tests/migration_with_reboot.py    |    4 +-
>  client/tests/kvm/tests/module_probe.py             |    4 +-
>  client/tests/kvm/tests/multicast.py                |   90 -
>  client/tests/kvm/tests/netperf.py                  |   91 -
>  client/tests/kvm/tests/nic_bonding.py              |    6 +-
>  client/tests/kvm/tests/nic_hotplug.py              |   24 +-
>  client/tests/kvm/tests/nic_promisc.py              |   39 -
>  client/tests/kvm/tests/nicdriver_unload.py         |   56 -
>  client/tests/kvm/tests/pci_hotplug.py              |   18 +-
>  client/tests/kvm/tests/physical_resources_check.py |    2 +-
>  client/tests/kvm/tests/ping.py                     |   73 -
>  client/tests/kvm/tests/pxe.py                      |   30 -
>  client/tests/kvm/tests/qemu_img.py                 |   22 +-
>  client/tests/kvm/tests/qmp_basic.py                |    2 +-
>  client/tests/kvm/tests/qmp_basic_rhel6.py          |    2 +-
>  client/tests/kvm/tests/set_link.py                 |   14 +-
>  client/tests/kvm/tests/shutdown.py                 |   43 -
>  client/tests/kvm/tests/stepmaker.py                |   11 +-
>  client/tests/kvm/tests/steps.py                    |    5 +-
>  client/tests/kvm/tests/stress_boot.py              |   53 -
>  client/tests/kvm/tests/timedrift.py                |   16 +-
>  client/tests/kvm/tests/timedrift_with_migration.py |   10 +-
>  client/tests/kvm/tests/timedrift_with_reboot.py    |   10 +-
>  client/tests/kvm/tests/timedrift_with_stop.py      |   10 +-
>  client/tests/kvm/tests/unattended_install.py       |    4 +-
>  client/tests/kvm/tests/unittest.py                 |    6 +-
>  client/tests/kvm/tests/virtio_console.py           |   22 +-
>  client/tests/kvm/tests/vlan.py                     |  175 --
>  client/tests/kvm/tests/vmstop.py                   |    6 +-
>  client/tests/kvm/tests/whql_client_install.py      |  136 --
>  client/tests/kvm/tests/whql_submission.py          |  275 ---
>  client/tests/kvm/tests/yum_update.py               |   49 -
>  client/tests/kvm/tests_base.cfg.sample             |    1 +
>  client/tools/cd_hash.py                            |   48 +
>  client/tools/html_report.py                        | 1727 +++++++++++++++++++
>  client/tools/scan_results.py                       |   97 ++
>  client/virt/aexpect.py                             | 1352 +++++++++++++++
>  client/virt/kvm_installer.py                       |  797 +++++++++
>  client/virt/kvm_monitor.py                         |  745 ++++++++
>  client/virt/kvm_vm.py                              | 1500 +++++++++++++++++
>  client/virt/ppm_utils.py                           |  237 +++
>  client/virt/rss_client.py                          |  519 ++++++
>  client/virt/tests/autotest.py                      |   25 +
>  client/virt/tests/boot.py                          |   26 +
>  client/virt/tests/clock_getres.py                  |   37 +
>  client/virt/tests/ethtool.py                       |  235 +++
>  client/virt/tests/file_transfer.py                 |   84 +
>  client/virt/tests/guest_s4.py                      |   76 +
>  client/virt/tests/guest_test.py                    |   80 +
>  client/virt/tests/image_copy.py                    |   45 +
>  client/virt/tests/iofuzz.py                        |  136 ++
>  client/virt/tests/ioquit.py                        |   31 +
>  client/virt/tests/iozone_windows.py                |   40 +
>  client/virt/tests/jumbo.py                         |  127 ++
>  client/virt/tests/kdump.py                         |   75 +
>  client/virt/tests/linux_s3.py                      |   41 +
>  client/virt/tests/mac_change.py                    |   60 +
>  client/virt/tests/multicast.py                     |   90 +
>  client/virt/tests/netperf.py                       |   90 +
>  client/virt/tests/nic_promisc.py                   |   39 +
>  client/virt/tests/nicdriver_unload.py              |   56 +
>  client/virt/tests/ping.py                          |   73 +
>  client/virt/tests/pxe.py                           |   29 +
>  client/virt/tests/shutdown.py                      |   43 +
>  client/virt/tests/stress_boot.py                   |   53 +
>  client/virt/tests/vlan.py                          |  175 ++
>  client/virt/tests/whql_client_install.py           |  136 ++
>  client/virt/tests/whql_submission.py               |  275 +++
>  client/virt/tests/yum_update.py                    |   49 +
>  client/virt/virt_env_process.py                    |  438 +++++
>  client/virt/virt_scheduler.py                      |  229 +++
>  client/virt/virt_step_editor.py                    | 1401 +++++++++++++++
>  client/virt/virt_test_setup.py                     |  700 ++++++++
>  client/virt/virt_test_utils.py                     |  754 +++++++++
>  client/virt/virt_utils.py                          | 1760 +++++++++++++++++++
>  client/virt/virt_vm.py                             |  298 ++++
>  121 files changed, 15706 insertions(+), 15671 deletions(-)
>  create mode 100755 client/common_lib/cartesian_config.py
>  delete mode 100755 client/tests/kvm/cd_hash.py
>  delete mode 100755 client/tests/kvm/html_report.py
>  delete mode 100644 client/tests/kvm/installer.py
>  delete mode 100755 client/tests/kvm/kvm_config.py
>  delete mode 100644 client/tests/kvm/kvm_monitor.py
>  delete mode 100644 client/tests/kvm/kvm_preprocessing.py
>  delete mode 100644 client/tests/kvm/kvm_scheduler.py
>  delete mode 100755 client/tests/kvm/kvm_subprocess.py
>  delete mode 100644 client/tests/kvm/kvm_test_utils.py
>  delete mode 100644 client/tests/kvm/kvm_utils.py
>  delete mode 100755 client/tests/kvm/kvm_vm.py
>  delete mode 100644 client/tests/kvm/ppm_utils.py
>  delete mode 100755 client/tests/kvm/rss_file_transfer.py
>  delete mode 100755 client/tests/kvm/scan_results.py
>  delete mode 100755 client/tests/kvm/stepeditor.py
>  delete mode 100644 client/tests/kvm/test_setup.py
>  delete mode 100644 client/tests/kvm/tests/autotest.py
>  delete mode 100644 client/tests/kvm/tests/boot.py
>  delete mode 100644 client/tests/kvm/tests/clock_getres.py
>  delete mode 100644 client/tests/kvm/tests/ethtool.py
>  delete mode 100644 client/tests/kvm/tests/file_transfer.py
>  delete mode 100644 client/tests/kvm/tests/guest_s4.py
>  delete mode 100644 client/tests/kvm/tests/guest_test.py
>  delete mode 100644 client/tests/kvm/tests/image_copy.py
>  delete mode 100644 client/tests/kvm/tests/iofuzz.py
>  delete mode 100644 client/tests/kvm/tests/ioquit.py
>  delete mode 100644 client/tests/kvm/tests/iozone_windows.py
>  delete mode 100644 client/tests/kvm/tests/jumbo.py
>  delete mode 100644 client/tests/kvm/tests/kdump.py
>  delete mode 100644 client/tests/kvm/tests/linux_s3.py
>  delete mode 100644 client/tests/kvm/tests/mac_change.py
>  delete mode 100644 client/tests/kvm/tests/multicast.py
>  delete mode 100644 client/tests/kvm/tests/netperf.py
>  delete mode 100644 client/tests/kvm/tests/nic_promisc.py
>  delete mode 100644 client/tests/kvm/tests/nicdriver_unload.py
>  delete mode 100644 client/tests/kvm/tests/ping.py
>  delete mode 100644 client/tests/kvm/tests/pxe.py
>  delete mode 100644 client/tests/kvm/tests/shutdown.py
>  delete mode 100644 client/tests/kvm/tests/stress_boot.py
>  delete mode 100644 client/tests/kvm/tests/vlan.py
>  delete mode 100644 client/tests/kvm/tests/whql_client_install.py
>  delete mode 100644 client/tests/kvm/tests/whql_submission.py
>  delete mode 100644 client/tests/kvm/tests/yum_update.py
>  create mode 100644 client/tools/__init__.py
>  create mode 100755 client/tools/cd_hash.py
>  create mode 100755 client/tools/html_report.py
>  create mode 100755 client/tools/scan_results.py
>  create mode 100644 client/virt/__init__.py
>  create mode 100755 client/virt/aexpect.py
>  create mode 100644 client/virt/kvm_installer.py
>  create mode 100644 client/virt/kvm_monitor.py
>  create mode 100755 client/virt/kvm_vm.py
>  create mode 100644 client/virt/ppm_utils.py
>  create mode 100755 client/virt/rss_client.py
>  create mode 100644 client/virt/tests/autotest.py
>  create mode 100644 client/virt/tests/boot.py
>  create mode 100644 client/virt/tests/clock_getres.py
>  create mode 100644 client/virt/tests/ethtool.py
>  create mode 100644 client/virt/tests/file_transfer.py
>  create mode 100644 client/virt/tests/guest_s4.py
>  create mode 100644 client/virt/tests/guest_test.py
>  create mode 100644 client/virt/tests/image_copy.py
>  create mode 100644 client/virt/tests/iofuzz.py
>  create mode 100644 client/virt/tests/ioquit.py
>  create mode 100644 client/virt/tests/iozone_windows.py
>  create mode 100644 client/virt/tests/jumbo.py
>  create mode 100644 client/virt/tests/kdump.py
>  create mode 100644 client/virt/tests/linux_s3.py
>  create mode 100644 client/virt/tests/mac_change.py
>  create mode 100644 client/virt/tests/multicast.py
>  create mode 100644 client/virt/tests/netperf.py
>  create mode 100644 client/virt/tests/nic_promisc.py
>  create mode 100644 client/virt/tests/nicdriver_unload.py
>  create mode 100644 client/virt/tests/ping.py
>  create mode 100644 client/virt/tests/pxe.py
>  create mode 100644 client/virt/tests/shutdown.py
>  create mode 100644 client/virt/tests/stress_boot.py
>  create mode 100644 client/virt/tests/vlan.py
>  create mode 100644 client/virt/tests/whql_client_install.py
>  create mode 100644 client/virt/tests/whql_submission.py
>  create mode 100644 client/virt/tests/yum_update.py
>  create mode 100644 client/virt/virt_env_process.py
>  create mode 100644 client/virt/virt_scheduler.py
>  create mode 100755 client/virt/virt_step_editor.py
>  create mode 100644 client/virt/virt_test_setup.py
>  create mode 100644 client/virt/virt_test_utils.py
>  create mode 100644 client/virt/virt_utils.py
>  create mode 100644 client/virt/virt_vm.py
> 


_______________________________________________
Autotest mailing list
Autotest@test.kernel.org
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

      parent reply	other threads:[~2011-03-09 11:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-09  9:21 [PATCH 0/7] [RFC] KVM autotest refactor stage 1 Lucas Meneghel Rodrigues
2011-03-09  9:21 ` [PATCH 1/7] KVM test: Move test utilities to client/tools Lucas Meneghel Rodrigues
2011-03-11  6:47   ` Amos Kong
2011-03-11 11:52     ` [Autotest] " Lucas Meneghel Rodrigues
2011-03-11 21:18     ` Lucas Meneghel Rodrigues
2011-03-09  9:21 ` [PATCH 2/7] KVM test: Create autotest_lib.client.virt namespace Lucas Meneghel Rodrigues
2011-03-09  9:21 ` [PATCH 3/7] KVM test: tests_base.cfg: Introduce parameter 'vm_type' Lucas Meneghel Rodrigues
2011-03-09  9:21 ` [PATCH 4/7] KVM test: Adapt the test code to use the new virt namespace Lucas Meneghel Rodrigues
2011-03-09  9:21 ` [PATCH 5/7] KVM test: Removing the old libraries and programs Lucas Meneghel Rodrigues
2011-03-09  9:21 ` [PATCH 6/7] KVM test: Try to load subtests on a shared tests location Lucas Meneghel Rodrigues
2011-03-09  9:21 ` [PATCH 7/7] KVM test: Moving generic tests to common tests area Lucas Meneghel Rodrigues
2011-03-09 11:54 ` Lucas Meneghel Rodrigues [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1299671669.2879.5.camel@freedom \
    --to=lmr@redhat.com \
    --cc=autotest@test.kernel.org \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.