Add scripts that run make check in a container for a given operating
system version. They are a little more than oneliners and serve two
purposes:
* help new developers who do not have to figure out which options
should be used
* run make check in containers in parallel with make -j2
Signed-off-by: Loic Dachary <ldachary@redhat.com>
$(srcdir)/test/coverage.sh \
$(patsubst %,$(srcdir)/%,$(check_SCRIPTS))
+docker-check:
+ $(srcdir)/test/container-make-check-ubuntu-14.04.sh
+ $(srcdir)/test/container-make-check-centos-centos7.sh
+
+EXTRA_DIST += \
+ $(srcdir)/test/container-make-check-ubuntu-14.04.sh
+ $(srcdir)/test/container-make-check-centos-centos7.sh
+
# target to build but not run the unit tests
unittests:: $(check_PROGRAMS)
--- /dev/null
+#!/bin/bash
+source test/docker-test-helper.sh
+main_docker "$@" --os-type centos --os-version centos7 --dev -- ./run-make-check.sh --enable-root-make-check
--- /dev/null
+#!/bin/bash
+source test/docker-test-helper.sh
+main_docker "$@" --os-type ubuntu --os-version 14.04 --dev -- ./run-make-check.sh --enable-root-make-check