Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
libvirt
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Libvirt Packaging Team
libvirt
Commits
afaf26b5
Commit
afaf26b5
authored
9 years ago
by
Guido Günther
Browse files
Options
Downloads
Patches
Plain Diff
Add
qemu:///session
smoke test
parent
4a41a35c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
debian/tests/control
+5
-0
5 additions, 0 deletions
debian/tests/control
debian/tests/smoke-qemu-session
+37
-0
37 additions, 0 deletions
debian/tests/smoke-qemu-session
debian/tests/smoke-qemu-session.xml
+33
-0
33 additions, 0 deletions
debian/tests/smoke-qemu-session.xml
with
75 additions
and
0 deletions
debian/tests/control
+
5
−
0
View file @
afaf26b5
...
...
@@ -2,6 +2,11 @@ Tests: smoke
Depends: @
Restrictions: allow-stderr
Tests: smoke-qemu-session
Depends: libvirt-daemon
Restrictions: allow-stderr, isolation-container
Tests: build-test
Depends: libvirt-dev
Restrictions: allow-stderr
This diff is collapsed.
Click to expand it.
debian/tests/smoke-qemu-session
0 → 100755
+
37
−
0
View file @
afaf26b5
#!/bin/sh
set
-e
set
-x
export
LIBVIRT_DEFAULT_URI
=
'qemu:///session'
cleanup
()
{
if
[
-z
"
$CLEANED_UP
"
]
;
then
virsh destroy sqs
||
true
virsh undefine sqs
||
true
CLEANED_UP
=
1
fi
}
trap
cleanup EXIT
if
[
!
-f
/vmlinuz
]
||
[
!
-f
/initrd.img
]
;
then
echo
"Kernel or initrd not found...skipping"
.
exit
0
fi
if
[
$(
uname
-m
)
!=
"x86_64"
]
;
then
echo
"Not on x86_64...skipping"
exit
0
fi
virsh define debian/tests/smoke-qemu-session.xml
virsh start sqs
virsh list |
grep
-qs
'sqs[[:space:]]\+running'
virsh destroy sqs
virsh undefine sqs
CLEANED_UP
=
1
echo
'Smoke test of qemu session:/// succesful'
exit
0
This diff is collapsed.
Click to expand it.
debian/tests/smoke-qemu-session.xml
0 → 100644
+
33
−
0
View file @
afaf26b5
<domain
type=
'kvm'
>
<name>
sqs
</name>
<memory
unit=
'KiB'
>
256000
</memory>
<currentMemory
unit=
'KiB'
>
256000
</currentMemory>
<vcpu>
1
</vcpu>
<os>
<type
arch=
'x86_64'
machine=
'pc-i440fx-2.5'
>
hvm
</type>
<kernel>
/vmlinuz
</kernel>
<initrd>
/initrd.img
</initrd>
<cmdline>
console=ttyS0 quiet loglevel=0 edd=off printk.time=1 noreplace-smp cgroup_disable=memory pci=noearly noapic panic=-1 selinux=0
</cmdline>
<boot
dev=
'hd'
/>
</os>
<features>
<acpi/>
</features>
<clock
offset=
'utc'
/>
<on_poweroff>
destroy
</on_poweroff>
<on_reboot>
destroy
</on_reboot>
<on_crash>
destroy
</on_crash>
<devices>
<emulator>
/usr/bin/kvm
</emulator>
<controller
type=
'virtio-serial'
index=
'0'
>
<alias
name=
'virtio-serial0'
/>
<address
type=
'pci'
domain=
'0x0000'
bus=
'0x00'
slot=
'0x04'
function=
'0x0'
/>
</controller>
<filesystem
type=
'mount'
accessmode=
'squash'
>
<source
dir=
'/'
/>
<target
dir=
'sqs:root'
/>
<readonly/>
</filesystem>
</devices>
</domain>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment