public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Chen Cao <kcao@redhat.com>
To: lmr@redhat.com, autotest@test.kernel.org
Cc: kvm@vger.kernel.org
Subject: [KVM-AUTOTEST PATCH 2/2 diff-rename mode] KVM-test: rename autoit to guest_test and update the sample config file
Date: Fri, 18 Jun 2010 17:33:07 +0800	[thread overview]
Message-ID: <20100618093307.GB18388@t4.rh> (raw)
In-Reply-To: <20100618092426.11860.79768.stgit@dhcp-91-197.nay.redhat.com>

Rename the autoit.py to guest_test.py.
Update the related tests structure in the sample config file
and add powershell script test demo.

Signed-off-by: Chen Cao <kcao@redhat.com>
---
 .../tests/kvm/tests/{autoit.py => guest_test.py}   |    2 +-
 client/tests/kvm/tests_base.cfg.sample             |   33 +++++++++++++------
 2 files changed, 23 insertions(+), 12 deletions(-)
 rename client/tests/kvm/tests/{autoit.py => guest_test.py} (99%)

diff --git a/client/tests/kvm/tests/autoit.py b/client/tests/kvm/tests/guest_test.py
similarity index 99%
rename from client/tests/kvm/tests/autoit.py
rename to client/tests/kvm/tests/guest_test.py
index 0373f38..2ba3d02 100644
--- a/client/tests/kvm/tests/autoit.py
+++ b/client/tests/kvm/tests/guest_test.py
@@ -3,7 +3,7 @@ from autotest_lib.client.common_lib import error
 import kvm_utils, kvm_test_utils
 
 
-def run_autoit(test, params, env):
+def run_guest_test(test, params, env):
     """
     A wrapper for running customized tests in guests.
 
diff --git a/client/tests/kvm/tests_base.cfg.sample b/client/tests/kvm/tests_base.cfg.sample
index 5b0da6a..105c67a 100644
--- a/client/tests/kvm/tests_base.cfg.sample
+++ b/client/tests/kvm/tests_base.cfg.sample
@@ -248,22 +248,33 @@ variants:
         used_cpus = 5
         used_mem = 2560
 
-    - autoit:       install setup unattended_install.cdrom
-        type = autoit
+    - guest_test:       install setup unattended_install.cdrom
+        type = guest_test
         login_timeout = 360
-        interpreter = D:\AutoIt3.exe
         test_timeout = 600
         script_params =
         reboot = yes
         variants:
-            - notepad:
-                guest_script = autoit/notepad1.au3
-            - stub:
-                download = yes
-                download_cmd = "git clone"
-                rsc_server = "git://the.resource.server/autoit"
-                dst_rsc_dir = "C:\"
-                dst_rsc_path = "C:\autoit\stub\stub.au3"
+            - autoit:
+                interpreter = D:\AutoIt3.exe
+                variants:
+                    - notepad:
+                        guest_script = autoit/notepad1.au3
+                    - stub:
+                        download = yes
+                        download_cmd = "git clone"
+                        rsc_server = "git://the.resource.server/autoit"
+                        dst_rsc_dir = "C:\"
+                        dst_rsc_path = "C:\autoit\stub\stub.au3"
+            - powershell:
+                interpreter = "powershell.exe -File"
+                variants:
+                    - stub:
+                        download = yes
+                        download_cmd = "git clone"
+                        rsc_server = "git://the.resource.server/powershell"
+                        dst_rsc_dir = "C:\"
+                        dst_rsc_path = "C:\powershell\stub\stub.ps1"
 
     - iozone_windows: unattended_install.cdrom
         type = iozone_windows
-- 
1.7.1


  parent reply	other threads:[~2010-06-18  9:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-18  9:27 [KVM-AUTOTEST PATCH 0/2] Make autoit wrapper support more guest scripts than just AutoIt Chen Cao
2010-06-18  9:28 ` [KVM-AUTOTEST PATCH 1/2] KVM-test: autoit: Generalize the variables in autoit.py Chen Cao
2010-06-18  9:28 ` [KVM-AUTOTEST PATCH 2/2] KVM-test: rename autoit to guest_test and update the sample config file Chen Cao
2010-06-18  9:33 ` Chen Cao [this message]
2010-06-18 14:46 ` [KVM-AUTOTEST PATCH 0/2] Make autoit wrapper support more guest scripts than just AutoIt Lucas Meneghel Rodrigues

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=20100618093307.GB18388@t4.rh \
    --to=kcao@redhat.com \
    --cc=autotest@test.kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=lmr@redhat.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox