From 974c21ad33bfa1d93d5ae795556d35ca7eb36e68 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 18:52:12 +0200 Subject: Adding debian version 1:7.0.4-4+deb11u8. Signed-off-by: Daniel Baumann --- debian/tests/test-extension-shared | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 debian/tests/test-extension-shared (limited to 'debian/tests/test-extension-shared') diff --git a/debian/tests/test-extension-shared b/debian/tests/test-extension-shared new file mode 100755 index 000000000..f9d794163 --- /dev/null +++ b/debian/tests/test-extension-shared @@ -0,0 +1,34 @@ +#!/bin/bash +# autopkgtest check: Install a test extension shared +# (c) 2017 Software in the Public Interest, Inc. +# Authors: Rene Engelhard + +set -e +set -E + +if [ -n "$AUTOPKGTEST_TMP" ]; then + TMP=`mktemp -q -p $AUTOPKGTEST_TMP` +else + TMP=`mktemp -q` +fi + + +echo +echo "====== Add the extension ======" +# does it install fine? +unopkg add --shared -v /usr/share/libreoffice/TestExtension.oxt + +echo +echo "====== Show extension status ======" +# does it list? For whatever reason unopkg leaves a stale .lock behind when +# doing this grep directly on the output so do it on a tmpfile +unopkg list --shared | tee $TMP +grep -q org.libreoffice.smoketest.TestExtension $TMP || exit 1 +rm $TMP + +echo +echo "====== Remove the extension ======" +# does it remove? +unopkg remove --shared -v org.libreoffice.smoketest.TestExtension + + -- cgit v1.2.3