Commit 90d5d98a authored by Natanael Copa's avatar Natanael Copa
Browse files

setup-xen-dom0: add test

parent 04eb47ba
......@@ -3,18 +3,19 @@
# simple script to setup basic xen dom0
# kernel modules
mkdir -p "$ROOT"/etc
for mod in xen_netback xen_blkback xenfs xen_pciback xen_wdt tun; do
if modprobe $mod; then
grep -q -w $mod /etc/modules || echo $mod >> /etc/modules
if $MOCK modprobe $mod; then
grep -q -w $mod "$ROOT"/etc/modules 2>/dev/null || echo $mod >> "$ROOT"/etc/modules
fi
done
# install packages
apk add --quiet xen
$MOCK apk add --quiet xen
# setup and start services
for svc in xenstored xenconsoled xenqemu; do
rc-update -q add $svc default
rc-update --quiet add $svc default
done
rc-service xenstored start
......
#!/usr/bin/env atf-sh
. $(atf_get_srcdir)/test_env.sh
init_tests \
setup_xen_dom0
setup_xen_dom0_body() {
init_env
atf_check -s exit:0 \
-o match:"modprobe xen" \
-o match:"Starting xen" \
-e empty \
setup-xen-dom0
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment