blob: fa7f25c1f7e62d472cf69864ce1420a4da031fcd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#!/bin/sh
# autopkgtest check: Run junit base tests against an installed version of LibreOffice
# (C) 2013 Canonical Ltd.
# (c) 2015 Software in the Public Interest, Inc.
# Authors: Bjoern Michaelsen <bjoern.michaelsen@canonical.com>
# Rene Engelhard <rene@debian.org>
set -e
SRCDIR=`pwd`
WORKDIR=`mktemp -d`
echo "====== Patching the tree to only build Java-based unittests against an existing installation ======"
patch -p1 < ./debian/tests/patches/java-subsequentcheck-standalone.diff
echo
echo "====== Generating configuration ======="
rm -f config_host.mk
./debian/rules config_host.mk 2>&1
sed -i 's/export ENABLE_REPORTBUILDER=TRUE/export ENABLE_REPORTBUILDER=FALSE/' config_host.mk
sed -i 's/export OOO_JUNIT_JAR=.*/export OOO_JUNIT_JAR=\/usr\/share\/java\/junit4.jar/' config_host.mk
echo
echo "====== Cleaning tree ======"
make clean 2>&1
OOO_TEST_SOFFICE="${1:-path:/usr/lib/libreoffice/program/soffice}"
echo
echo "====== Enabling core dumps ======"
# yes, we want core dumps and stack traces
ulimit -c unlimited
echo
echo "====== Starting subsequentcheck with ${CHECK_PARALLELISM} job against ${OOO_TEST_SOFFICE} ======"
make -rk \
OOO_TEST_SOFFICE=${OOO_TEST_SOFFICE} \
bridges_SELECTED_BRIDGE=foo \
subsequentcheck 2>&1
|