Tests: uno
Depends: @builddeps@, ure
Restrictions: allow-stderr, rw-build-tree

# we need calc (and thus core) here because otherwise
#
# (anonymous namespace)::Test::test finished in: 2898ms
# smoketest.cxx:189:Assertion
# Test name: (anonymous namespace)::Test::test
# equality assertion failed
# - Expected: 
# - Actual  :  Calc:new(scalc New Document) Chart:new(scalc New Document)
#
# Failures !!!
# Run: 1   Failure total: 1   Failures: 1   Errors: 0
#
# happens
Tests: smoketest
Depends: @builddeps@, libreoffice-dev, libreoffice-core, libreoffice-writer-nogui, libreoffice-calc, libreoffice-impress-nogui, libreoffice-math-nogui, libreoffice-base-nogui, libreoffice-sdbc-hsqldb, libreoffice-sdbc-firebird, libreoffice-smoketest-data
Restrictions: allow-stderr, rw-build-tree, skippable

Tests: pyuno-import, uno-import
Depends: python3, python3-uno
Restrictions: superficial

Tests: access2base-import
Depends: python3, python3-access2base
Restrictions: superficial

# this is already done by smoketest upstream, but fails when doing it against
# the installed LO. works standalone, though, so it's patched out of the
# smoketest. Do it here separately.
Tests: test-extension
Depends: libreoffice-core-nogui, libreoffice-common, libreoffice-java-common, libreoffice-smoketest-data, default-jdk
Restrictions: allow-stderr, superficial

Tests: test-extension-shared
Depends: libreoffice-core-nogui, libreoffice-common, libreoffice-java-common, libreoffice-smoketest-data, default-jdk
Restrictions: allow-stderr, needs-root, superficial

Tests: uicheck
Depends: @builddeps@, libreoffice-core, libreoffice-writer, libreoffice-calc, libreoffice-impress, libreoffice-math, libreoffice-base, python3-uno, libreoffice-l10n-he, libreoffice-l10n-ja, libreoffice-script-provider-python, libreoffice-librelogo
Restrictions: allow-stderr

Tests: junit
Depends: @builddeps@, libreoffice-core, libreoffice-writer, libreoffice-calc, libreoffice-impress, libreoffice-math, libreoffice-base, libreoffice-subsequentcheckbase, libreoffice-sdbc-hsqldb, libreoffice-sdbc-firebird
Restrictions: allow-stderr

Test-Command: export SYSTEM_UCPP=TRUE; export DOXYGEN=`which doxygen`; export ENABLE_JAVA=TRUE; export JDK=sun; export JAVADOC=/usr/lib/jvm/default-java/bin/javadoc; perl odk/util/check.pl /usr/lib/libreoffice/sdk
Depends: libreoffice-dev, libreoffice-dev-doc
Restrictions: superficial

Tests: odk-build-examples
Depends: @builddeps@, libreoffice-core-nogui, libreoffice-dev, libreoffice-dev-doc, libreoffice-java-common, python3-uno, libofficebean-java
Restrictions: allow-stderr

# inspired by https://salsa.debian.org/apparmor-team/apparmor-profiles-extra/commit/7fbcc4788d0e94764eeeff2f080796601241f986
Test-Command: for i in /etc/apparmor.d/usr.lib.libreoffice.program.*; do /sbin/apparmor_parser --add --skip-cache --skip-kernel-load $i; done
Depends: libreoffice-common, apparmor
Restrictions: allow-stderr, superficial
