rpm-ostree/tests/vmcheck
Colin Walters 77eb3e2b5b tests: Introduce "vmcheck"
This is infrastructure that's oriented around Vagrant, we do builds
inside the target VM (actually inside a Docker container), but then
directly `make install DESTDIR=/host/`.

The goal here is to have a convenient workflow for:

  - dev -> hand testing
  - dev -> run destructive tests

Closes: #303
Approved by: jlebon
2016-06-07 18:39:46 +00:00
..
atomic-centos-continuous.repo tests: Introduce "vmcheck" 2016-06-07 18:39:46 +00:00
Dockerfile.builder tests: Introduce "vmcheck" 2016-06-07 18:39:46 +00:00
host-install.sh tests: Introduce "vmcheck" 2016-06-07 18:39:46 +00:00
Makefile tests: Introduce "vmcheck" 2016-06-07 18:39:46 +00:00
README.md tests: Introduce "vmcheck" 2016-06-07 18:39:46 +00:00
setup.yml tests: Introduce "vmcheck" 2016-06-07 18:39:46 +00:00

Using vmcheck

One time setup:

host$ vagrant up
host$ vagrant ssh
vm$ sudo rpm-ostree rebase centos-atomic-continuous:centos-atomic-host/7/x86_64/devel/continuous
vm$ systemctl reboot

Edit source code on the host system; to synchronize, use:

vagrant rsync

To build and install into the VM:


host$ vagrant ssh
vm$ cd ~/sync/tests/vmcheck
vm$ make build
vm$ make install
vm$ systemctl restart rpm-ostreed