Skip to contentSkip to conversation

KVM test: Introducing new supported install method, koji

PATCH New Lucas Meneghel Rodrigues 1 participant 1 message Sep 22, 2009 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM test: Introducing new supported install method, koji

With this patch, it will now be possible to install and test qemu and kvm packages built right from the fedora build server, koji. An example of how to configure the install from koji is put on the reference control file.

---
 client/tests/kvm/control        |   19 +++-
 client/tests/kvm/tests/build.py |  324 +++++++++++++++++++++++++++++++--------
 2 files changed, 278 insertions(+), 65 deletions(-)
client/tests/kvm/control +18 -1
index cc0ba66..48d8233 100644
@@ -81,13 +81,14 @@ params = {
     #"mode": "localsrc",
     #"mode": "git",
     #"mode": "noinstall",
+    #"mode": "koji",
 
     ## Are we going to load modules built by this test?
     ## Defaults to 'yes', so if you are going to provide only userspace code to
     ## be built by this test, please set load_modules to 'no', and make sure
     ## the kvm and kvm-[vendor] module is already loaded by the time you start
     ## it.
-    "load_modules": "no",
+    #"load_modules": "no",
 
     ## Install from a kvm release ("mode": "release"). You can optionally
     ## specify a release tag. If you omit it, the test will get the latest
@@ -109,6 +110,22 @@ params = {
     ## Install from a local source code dir ("mode": "localsrc")
     #"srcdir": "/path/to/source-dir"
 
+    ## Install from koji build server ("mode": "koji")
+    ## Koji is the Fedora Project buildserver. It is possible to install
+    ## packages right from Koji if you provide a release tag or a build.
+    ## Tag (if available)
+    #"koji_tag": 'dist-f11',
+    ## Build (if available, is going to override tag).
+    #"koji_build": 'qemu-0.10.92-4.fc12',
+    ## Command to interact with the build server
+    #"koji_cmd": '/usr/bin/koji',
+    ## The name of the source package that's being built
+    #"src_pkg": 'qemu',
+    ## Name of the rpms we need installed
+    #"pkg_list": ['qemu-kvm', 'qemu-kvm-tools', 'qemu-system-x86', 'qemu-common', 'qemu-img'],
+    ## Paths of the qemu relevant executables that should be checked
+    #"qemu_bin_paths": ['/usr/bin/qemu-kvm', '/usr/bin/qemu-img'],
+
     ## Install from git ("mode": "git")
     ## If you provide only "git_repo" and "user_git_repo", the build test
     ## will assume it will perform all build from the userspace dir, building
client/tests/kvm/tests/build.py +260 -64

380 lines not on this page · raw message

Signature · 1 line
1.6.2.5