Re: [RFC] KVM test: Refactoring the kvm control file and the config file

2009-07-21 Thread David Huff
Michael Goldish wrote: > - "David Huff" wrote: >> The way I always envisioned it was something like this.. >> >> The config file specifies the whole test matrix, ie all variants that >> you could run each test on, ie all os's, all archs, all di

Re: [RFC] KVM test: Refactoring the kvm control file and the config file

2009-07-21 Thread David Huff
Michael Goldish wrote: > - "Lucas Meneghel Rodrigues" wrote: > >> Currently we have our kvm test control file and configuration file, >> having them split like this makes it harder for users to edit it, >> let's >> say, using the web frontend. >> >> So it might be good to merge the control fi

Re: [KVM_AUTOTEST] unattended installs take 2

2009-06-22 Thread David Huff
Lucas Meneghel Rodrigues wrote: I've been trough the changes, thank you for your work David: Comments/questions: * Any particular reason why you guys wrote the PXE boot setup as a shell script instead of a python module (that could be also used as a stand alone program)? We decided to use en

[PATCH] Modified boot test in kvm_test.py

2009-06-18 Thread David Huff
This is a stopgap to test unattended installs. We will write a new seprate test for unattended installs --- client/tests/kvm/kvm_tests.py | 13 - 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/client/tests/kvm/kvm_tests.py b/client/tests/kvm/kvm_tests.py index 54d2a7

[PATCH] Added two sample unattended config files, Fedora and Windows

2009-06-18 Thread David Huff
You must add your own product key to the windows config file. --- client/tests/kvm/unattended/Fedora-11-i386.ks | 24 +++ client/tests/kvm/unattended/WinXP-32.sif | 52 + 2 files changed, 76 insertions(+), 0 deletions(-) create mode 100644 client/tests/kvm

[PATCH] added unattended.sh script

2009-06-18 Thread David Huff
+# +# unattended.sh - sets up environment for an unattended install for kvm_autotest +# +# Copyright (C) 2009 Red Hat, Inc. +# Written by: +# David Huff +# Darryl L. Pierce +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public

[PATCH] modified config file to run unattended install

2009-06-18 Thread David Huff
--- client/tests/kvm/kvm_tests.cfg.sample | 75 +--- 1 files changed, 68 insertions(+), 7 deletions(-) diff --git a/client/tests/kvm/kvm_tests.cfg.sample b/client/tests/kvm/kvm_tests.cfg.sample index c73da7c..2d96bac 100644 --- a/client/tests/kvm/kvm_tests.cfg.sampl

[PATCH] Added floppy and tftp options to qemu command

2009-06-18 Thread David Huff
This allows you to not specify the full path in the config file, appends to the image dir --- client/tests/kvm/kvm_vm.py | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py index 5028161..621f0ca 100644 --- a/

[KVM_AUTOTEST] unattended installs take 2

2009-06-18 Thread David Huff
Second pass at the unattended install test. Both Linux and Windows guests are working however currently it just uses the existing boot test and extends timeouts. We still need a good way of determining if an unattended install completed without error. For Linux guest we should be able to run som

Re: [KVM_AUTOTEST PATCH] Added functionality to the preprocessor to run scripts

2009-06-15 Thread David Huff
Lucas Meneghel Rodrigues wrote: > On Fri, 2009-06-12 at 10:43 -0400, David Huff wrote: >> This patch adds the processes_command function to the preprocessor which >> will run custom scripts before and after a test is executed. >> >> processes_command will ex

[KVM_AUTOTEST PATCH] repost: Added functionality to the preprocessor to run scripts

2009-06-15 Thread David Huff
This patch adds the processes_command function to the preprocessor which will run custom scripts before and after a test is executed. processes_command will export all test parameters as environmental variables for passing parameters to a custom script. processes_command uses parameters defined i

[KVM_AUTOTEST PATCH] Added functionality to the preprocessor to run scripts

2009-06-12 Thread David Huff
This patch adds the processes_command function to the preprocessor which will run custom scripts before and after a test is executed. processes_command will export all test parameters as environmental variables for passing parameters to a custom script. processes_command uses parameters defined i

Re: [KVM-AUTOTEST] Patch queue for kvm autotest

2009-06-05 Thread David Huff
Lucas Meneghel Rodrigues wrote: Patch queue: Left out: [PATCH] Added functionality to the preprocessor to run scripts This patch adds support for pre_command and post_command parameters in the congif file that s

Re: [KVM_AUTOTEST] unattended installs

2009-06-02 Thread David Huff
David Huff wrote: > Ok, I am sending out the first pass at the unattended install scripts. I have > tested with both Linux and Windows guests and everything seems ok. I have > been > hitting a couple issues and I am sure there are more that need to be resolved > however I want

[PATCH][KVM_AUTOTEST] added script for unattended install

2009-06-02 Thread David Huff
. +# Written by: +# David Huff +# Darryl L. Pierce +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. +# +# This program is distributed in the

[KVM_AUTOTEST] unattended installs

2009-06-02 Thread David Huff
Ok, I am sending out the first pass at the unattended install scripts. I have tested with both Linux and Windows guests and everything seems ok. I have been hitting a couple issues and I am sure there are more that need to be resolved however I wanted some initial feedback... Requires the proce

[PATCH][KVM_AUTOTEST] modified sample config file to include one example of unattended install

2009-06-02 Thread David Huff
--- client/tests/kvm_runtest_2/kvm_tests.cfg.sample | 28 +- 1 files changed, 26 insertions(+), 2 deletions(-) diff --git a/client/tests/kvm_runtest_2/kvm_tests.cfg.sample b/client/tests/kvm_runtest_2/kvm_tests.cfg.sample index c73da7c..12e6a77 100644 --- a/client/tests/kvm

Re: [PATCH][KVM-AUTOTEST][REPOST] Add ability to install custom kernel modules

2009-06-01 Thread David Huff
Uri Lublin wrote: > Hi Mike, > > Can you load those kernel modules before running kvm-autotest (something > like a setup script) ? And clean up when the run completes (cleanup > script) ? This can problay be done with the pre_command and post_command parameters that I added in my previous patch.

Re: kvm_autotest: dynamically load tests

2009-05-27 Thread David Huff
Uri Lublin wrote: > Hi David, > > I'm not sure this patch-set makes development much easier, as it only > saves adding one line (entry) in test_routines table, but is less > flexible (e.g. force file-name and function-name of test routines). > > Moving the test to a separate kvm_tests directory c

[PATCH][KVM_AUTOTEST] Added functionality to the preprocessor to run scripts

2009-05-26 Thread David Huff
This patch will run pre and post scripts defined in config file with the parameter pre_command and post_command post_command. Also exports all the prameters in preprocess for passing arguments to the script. --- client/tests/kvm_runtest_2/kvm_preprocessing.py | 34 +++ 1 fil

[PATCH] removed old kvm_test.py, tests now in seprate subdir

2009-05-26 Thread David Huff
--- client/tests/kvm_runtest_2/kvm_tests.py | 396 --- 1 files changed, 0 insertions(+), 396 deletions(-) delete mode 100644 client/tests/kvm_runtest_2/kvm_tests.py diff --git a/client/tests/kvm_runtest_2/kvm_tests.py b/client/tests/kvm_runtest_2/kvm_tests.py delete

[PATCH] Added "stock" or existing test to ./kvm_tests/

2009-05-26 Thread David Huff
autotest.py, boot.py, linux_s3.py, migration.py, yum_update.py --- client/tests/kvm_runtest_2/kvm_tests/autotest.py | 145 client/tests/kvm_runtest_2/kvm_tests/boot.py | 45 ++ client/tests/kvm_runtest_2/kvm_tests/linux_s3.py | 53 +++ client/tests/kvm_r

[PATCH] Modified kvm_runtest_2.py to look for tests in kvm_tests/

2009-05-26 Thread David Huff
This will allow for adding of additional tests with out modifying the "code." One would just add the testname.py file to the test_dir and edit the comfig file. fixed typo --- client/tests/kvm_runtest_2/kvm_runtest_2.py | 32 +++--- 1 files changed, 23 insertions(+), 9 del

[KVM_AUTOTEST] patch set to dynamically load tests

2009-05-26 Thread David Huff
resending patch set... first pass at spiting up tests into separate files... These relatively simple changes to kvm_runtest_2 will allow for the addition of new tests without having modifying kvm_runtest "code." One would just add a newtest.py file and update the config file. This will simpl

Re: [PATCH] [KVM_Autotest] Added functionality to the preprocessor to run scripts

2009-05-26 Thread David Huff
Michael Goldish wrote: > Looks good to me. See some comments below. > > ----- "David Huff" wrote: > >> This patch will run pre and post scripts >> defined in config file with the parameter pre_command >> and post_command post_command. >> >&

[PATCH][KVM_AUTOTEST] Fix to allow for "=" in the "value" of a config parameter.

2009-05-26 Thread David Huff
example: kernel_args = "ks=floppy console=ttyS0 noacpi" fix modifies kvm_config.split_and_strip so it will only split once per line. --- client/tests/kvm_runtest_2/kvm_config.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/client/tests/kvm_runtest_2/kvm_config.py b/c

Re: [PATCH] [KVM_Autotest] Fix to allow for "=" in the "value" of a config parameter.

2009-05-26 Thread David Huff
Avi Kivity wrote: > Michael Goldish wrote: >> This makes sense, thanks. >> >> One thing though -- I don't know if it's even worth mentioning -- we >> always try to put a single space after a comma (I think the Python >> style guide recommends that but I'm not sure). Generally we try to >> follow th

[PATCH] [KVM_Autotest] Added functionality to the preprocessor to run scripts

2009-05-21 Thread David Huff
This patch will run pre and post scripts defined in config file with the parameter pre_command and post_command post_command. Also exports all the prameters in preprocess for passing arguments to the script. --- client/tests/kvm_runtest_2/kvm_preprocessing.py | 31 +- 1 file

[PATCH] [KVM_Autotest] Fix to allow for "=" in the "value" of a config parameter.

2009-05-21 Thread David Huff
fix modifies kvm_config.split_and_strip so it will only split once per line. example: kernel_args = "ks=floppy console=ttyS0 noacpi" --- client/tests/kvm_runtest_2/kvm_config.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/client/tests/kvm_runtest_2/kvm_config.py b/c

Re: [KVM-AUTOTEST] [PATCH] support for remote migration

2009-04-30 Thread David Huff
yogi wrote: Hello everyone, I like to submit patch to add support for "remote migration" in kvm-autotest. Thanks for the patch, Uri is out on vacation for a while. I'll apply the patch to my test repo and do some validation testing, however may be a little while untill it makes it in. -D

[PATCH] Added "stock" or existing test to ./kvm_tests/

2009-04-28 Thread David Huff
autotest.py, boot.py, linux_s3.py, migration.py, yum_update.py --- client/tests/kvm_runtest_2/kvm_tests/autotest.py | 145 client/tests/kvm_runtest_2/kvm_tests/boot.py | 45 ++ client/tests/kvm_runtest_2/kvm_tests/linux_s3.py | 53 +++ client/tests/kvm_r

[PATCH] removed old kvm_test.py, tests now in seprate subdir

2009-04-28 Thread David Huff
--- client/tests/kvm_runtest_2/kvm_tests.py | 396 --- 1 files changed, 0 insertions(+), 396 deletions(-) delete mode 100644 client/tests/kvm_runtest_2/kvm_tests.py diff --git a/client/tests/kvm_runtest_2/kvm_tests.py b/client/tests/kvm_runtest_2/kvm_tests.py delete

[PATCH] Modified kvm_runtest_2.py to look for tests in kvm_tests/

2009-04-28 Thread David Huff
This will allow for adding of additional tests with out modifying the "code." One would just add the testname.py file to the test_dir and edit the comfig file. --- client/tests/kvm_runtest_2/kvm_runtest_2.py | 32 +++--- 1 files changed, 23 insertions(+), 9 deletions(-) di

kvm_autotest: dynamically load tests

2009-04-28 Thread David Huff
looking for comments/feedback These relatively simple changes to kvm_runtest_2 will allow for the addition of new tests without having modifying kvm_runtest "code." One would just add a newtest.py file and update the config file. This will simplify test development and make it easier to

[PATCH kvm-autotest] new test, saves and reloads a guest, from Red Hat QE

2009-04-06 Thread David Huff
--- client/tests/kvm_runtest_2/kvm_runtest_2.py |1 + client/tests/kvm_runtest_2/kvm_tests.cfg.sample |6 ++ client/tests/kvm_runtest_2/kvm_tests.py | 97 +++ 3 files changed, 104 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm_runtest_2/kvm_r

kvm-autotest new test, save and load

2009-04-06 Thread David Huff
Submitting new test for review and comments. This test was originally developed by the Red Hat QE team. It starts a new guest saves it and reloads the saved state. looking for comments and or improvements that can be made to this test. -D -- To unsubscribe from this list: send the line "unsu