diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:07:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:07:31 +0000 |
commit | edaebb65d92a48d7075c8c1f64c5ffd87054827b (patch) | |
tree | 045c941e1851cde1665bea22d97a2976b7a5bb69 /debian/tests/odk-build-examples | |
parent | Adding upstream version 4:7.4.7. (diff) | |
download | libreoffice-edaebb65d92a48d7075c8c1f64c5ffd87054827b.tar.xz libreoffice-edaebb65d92a48d7075c8c1f64c5ffd87054827b.zip |
Adding debian version 4:7.4.7-1+deb12u1.debian/4%7.4.7-1+deb12u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-x | debian/tests/odk-build-examples | 50 | ||||
-rwxr-xr-x | debian/tests/odk-build-examples-java | 56 |
2 files changed, 106 insertions, 0 deletions
diff --git a/debian/tests/odk-build-examples b/debian/tests/odk-build-examples new file mode 100755 index 000000000..6a8e52296 --- /dev/null +++ b/debian/tests/odk-build-examples @@ -0,0 +1,50 @@ +#!/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 + +# skip if building as root: +# unopkg errors out with "ERROR: Cannot run unopkg as root without --shared or --bundled option." +# if ran as root +if [ `id -u` = "0" ]; then + exit 77 +fi + +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 + +if [ ! -f config_host.mk ]; then + echo + echo "====== Generating configuration =======" + rm -f config_host.mk + ./debian/rules config_host.mk +fi + +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 + diff --git a/debian/tests/odk-build-examples-java b/debian/tests/odk-build-examples-java new file mode 100755 index 000000000..95d00d571 --- /dev/null +++ b/debian/tests/odk-build-examples-java @@ -0,0 +1,56 @@ +#!/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 + +# skip on Zero using architectures +if java -version 2>&1 | grep -q Zero; then + echo "Zero-using architecture. Skipping." + exit 77 +fi + +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 + +# skip if building as root: +# unopkg errors out with "ERROR: Cannot run unopkg as root without --shared or --bundled option." +# if ran as root +if [ `id -u` = "0" ]; then + exit 77 +fi + +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 + +if [ ! -f config_host.mk ]; then + echo + echo "====== Generating configuration =======" + rm -f config_host.mk + ./debian/rules config_host.mk +fi + +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_java verbose=t + +unapply + |