rpm-ostree/tests/vmcheck/Makefile
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

18 lines
557 B
Makefile

all:
echo "Targets: buildimg build install"
buildimg:
sudo docker build -t rpm-ostree-builder -f Dockerfile.builder .
runbuilder=sudo /usr/bin/docker run --privileged -ti -v /var/home:/home -v /etc:/host/etc -v /usr:/host/usr rpm-ostree-builder
build:
$(runbuilder) /bin/sh -c 'if ! test -f configure; then env NOCONFIGURE=1 ./autogen.sh; fi'
$(runbuilder) /bin/sh -c 'if ! test -f Makefile; then ./configure --prefix=/usr --libdir=/usr/lib64; fi'
$(runbuilder) /bin/sh -c make -j 4
install: build
$(runbuilder) sudo /usr/local/bin/host-install