Skip to content

Instantly share code, notes, and snippets.

@vojtechtrefny
Last active April 3, 2017 06:33
Show Gist options
  • Save vojtechtrefny/1e8780d656fd83fb91914738a299e9f0 to your computer and use it in GitHub Desktop.
Save vojtechtrefny/1e8780d656fd83fb91914738a299e9f0 to your computer and use it in GitHub Desktop.
Running Cockpit tests with custom version of Udisks
# clone the cockpit repo
git clone https://github.com/cockpit-project/cockpit
# install requirements
sudo dnf install nodejs npm
sudo dnf install curl expect \
libvirt libvirt-client libvirt-daemon libvirt-python \
python python-libguestfs python-lxml qemu qemu-kvm \
rpm-build rsync xz
npm install sizzle phantomjs-prebuilt
# download testing VM image
test/vm-download fedora-25
# prepare the environemnt
sudo test/vm-prep
# compile new version of cockpit from source and use it
test/vm-install $(tools/make-rpms)
# or if you already have an rpm copy it to test/tmp/build-results and run
# (rpms can be downloaded from koji using 'koji download-build --arch=noarch --arch=x86_64 cockpit-137-1.fc25')
test/vm-install -I
# install new udisks from Copr
# vm-customize can install packages, run commands or scripts or upload packages to the VM, see vm-customize --help for details
test/vm-customize -r "sudo dnf -y copr enable @storage/udisks-experimental && sudo dnf -y update udisks2* libblockdev*" fedora-25
# run a test
test/verify/check-storage-<test>
# reset the VM to initial state
tests/vm-reset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment