This is an automated email from the git hooks/post-receive script. rene pushed a commit to branch master in repository libreoffice.
commit c84011c7b40b102066fdacaa6c368e87b295a8f3 Author: Rene Engelhard <r...@debian.org> Date: Mon Apr 4 18:16:46 2016 +0200 add sdk-examples test test-building some SDK examples to test the SDK itself --- changelog | 2 ++ tests/control | 3 +++ tests/control.in | 3 +++ tests/sdk-examples | 27 +++++++++++++++++++++++++++ 4 files changed, 35 insertions(+) diff --git a/changelog b/changelog index ace6790..81ef8a8 100644 --- a/changelog +++ b/changelog @@ -30,6 +30,8 @@ libreoffice (1:5.1.2~rc2-1) UNRELEASED; urgency=medium still don't make sense but enable it for consistency (and because we enable other stuff there which don't make sense that much either) - disable the systray quickstarter, see #819878. + * debian/tests/*: add "sdk-examples" test test-building some SDK examples + to test the SDK itself -- Rene Engelhard <r...@debian.org> Sat, 02 Apr 2016 12:48:35 +0200 diff --git a/tests/control b/tests/control index f183afe..eb8383b 100644 --- a/tests/control +++ b/tests/control @@ -3,3 +3,6 @@ Depends: libreoffice, libreoffice-subsequentcheckbase, libreoffice-sdbc-hsqldb, Tests: pyuno-import Depends: python3-uno + +Tests: sdk-examples +Depends: libreoffice-dev, libreoffice-dev-doc, libreoffice-java-common, build-essential, default-jdk diff --git a/tests/control.in b/tests/control.in index 38b762b..c79a2c8 100644 --- a/tests/control.in +++ b/tests/control.in @@ -3,3 +3,6 @@ Depends: libreoffice, libreoffice-subsequentcheckbase, libreoffice-sdbc-hsqldb, Tests: pyuno-import Depends: python3-uno + +Tests: sdk-examples +Depends: libreoffice-dev, libreoffice-dev-doc, libreoffice-java-common, build-essential, default-jdk diff --git a/tests/sdk-examples b/tests/sdk-examples new file mode 100644 index 0000000..d0d27f8 --- /dev/null +++ b/tests/sdk-examples @@ -0,0 +1,27 @@ +#!/bin/sh + +echo "====== Preparing the SDK environment ======" +cd /usr/lib/libreoffice/sdk +. ./setsdkenv_unix.sh + +d=`pwd` + +echo "====== Building C++ example DocumentLoader ====== " +cd $d/examples/cpp/DocumentLoader +make clean +make + +echo "====== Building C++ example counter ====== " +cd $d/examples/cpp/counter +make clean +make +echo "====== Running countermain.run ======" +make countermain.run + +# This needs unowinreg.dll which is in -dev, but only for i386/amd64... +if [ -e /usr/lib/libreoffice/sdk/classes/win/unowinreg.dll ]; then + echo "====== Building Java DocumentHandling example ======" + cd $d/examples/java/DocumentHandling + make +fi + -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-openoffice/libreoffice.git