summaryrefslogtreecommitdiffstats
path: root/packaging/macos/310-inkscape_test.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:24:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:24:48 +0000
commitcca66b9ec4e494c1d919bff0f71a820d8afab1fa (patch)
tree146f39ded1c938019e1ed42d30923c2ac9e86789 /packaging/macos/310-inkscape_test.sh
parentInitial commit. (diff)
downloadinkscape-cca66b9ec4e494c1d919bff0f71a820d8afab1fa.tar.xz
inkscape-cca66b9ec4e494c1d919bff0f71a820d8afab1fa.zip
Adding upstream version 1.2.2.upstream/1.2.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'packaging/macos/310-inkscape_test.sh')
-rwxr-xr-xpackaging/macos/310-inkscape_test.sh54
1 files changed, 54 insertions, 0 deletions
diff --git a/packaging/macos/310-inkscape_test.sh b/packaging/macos/310-inkscape_test.sh
new file mode 100755
index 0000000..fa5237e
--- /dev/null
+++ b/packaging/macos/310-inkscape_test.sh
@@ -0,0 +1,54 @@
+#!/usr/bin/env bash
+#
+# SPDX-FileCopyrightText: 2021 René de Hesselle <dehesselle@web.de>
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+### description ################################################################
+
+# Build and run the test suite.
+
+### shellcheck #################################################################
+
+# Nothing here.
+
+### dependencies ###############################################################
+
+source "$(dirname "${BASH_SOURCE[0]}")"/jhb/etc/jhb.conf.sh
+
+source "$(dirname "${BASH_SOURCE[0]}")"/src/ink.sh
+
+bash_d_include error
+
+### variables ##################################################################
+
+# Nothing here.
+
+### functions ##################################################################
+
+# Nothing here.
+
+### main #######################################################################
+
+error_trace_enable
+
+#----------------------------------------------------------- (re-) configure jhb
+
+# Rerun configuration to adapt to the current system. This will
+# - allow Inkscape to be build against a different SDK than the toolset has
+# been built with
+# - setup ccache
+
+jhb configure
+
+#----------------------------------------------- install additional dependencies
+
+jhb run pip3 install "$PKG_DIR"/lxml*.whl
+
+#--------------------------------------------------------------------- run tests
+
+cd "$INK_BLD_DIR" || exit 1
+
+ninja tests # build tests
+
+ctest -V # run tests