diff options
Diffstat (limited to 'debian/tests/odk-build-examples')
-rwxr-xr-x | debian/tests/odk-build-examples | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/debian/tests/odk-build-examples b/debian/tests/odk-build-examples new file mode 100755 index 000000000..4b1139203 --- /dev/null +++ b/debian/tests/odk-build-examples @@ -0,0 +1,41 @@ +#!/bin/bash +# autopkgtest check: Run the odk/build-examples check against an installed +# version of the LibreOffice SDK +# (c) 2017 Software in the Public Interest, Inc. +# Authors: Rene Engelhard <rene@debian.org> + +set -e +set -E + +SRCDIR=`pwd` +CHECK_PARALLELISM=1 + +function unapply() { + cd $SRCDIR + echo + echo "====== Unapplying the patch ======" + patch -p1 -R < ./debian/tests/patches/odk-build-examples-standalone.diff +} + +trap "unapply" ERR + +echo +echo "====== Patching the tree to build the odk build-examples test against an existing installation ======" +patch -p1 < ./debian/tests/patches/odk-build-examples-standalone.diff + +echo +echo "====== Generating configuration =======" +rm -f config_host.mk +./debian/rules config_host.mk + +echo +echo "====== Starting build with ${CHECK_PARALLELISM} job against /usr/lib/libreoffice/sdk ======" + +cd $SRCDIR/odk + +export PARALLELISM=$CHECK_PARALLELISM +make -rk \ + CustomTarget_odk/build-examples verbose=t + +unapply + |