mirror of
https://github.com/flatpak/flatpak.git
synced 2026-06-26 09:17:00 -04:00
tests: Skip seccomp tests when seccomp is unavailable
Fixes the testsuite with `-Dseccomp=disabled`.
This commit is contained in:
@@ -631,6 +631,12 @@ skip_without_libsystemd () {
|
||||
fi
|
||||
}
|
||||
|
||||
skip_without_seccomp () {
|
||||
if [ "${HAVE_SECCOMP:-0}" != "1" ]; then
|
||||
skip "seccomp support disabled"
|
||||
fi
|
||||
}
|
||||
|
||||
FLATPAK_SYSTEM_CERTS_D=$(pwd)/certs.d
|
||||
export FLATPAK_SYSTEM_CERTS_D
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ tests_environment = {
|
||||
'G_TEST_SRCDIR' : meson.current_source_dir(),
|
||||
'FLATPAK_BWRAP' : env_flatpak_bwrap,
|
||||
'FLATPAK_DBUSPROXY' : env_flatpak_dbusproxy,
|
||||
'HAVE_SECCOMP' : libseccomp_dep.found() ? '1' : '0',
|
||||
}
|
||||
|
||||
tests_environment_prepend = {
|
||||
|
||||
@@ -6,6 +6,7 @@ set -euo pipefail
|
||||
|
||||
. $(dirname $0)/libtest.sh
|
||||
|
||||
skip_without_seccomp
|
||||
skip_without_bwrap
|
||||
|
||||
echo "1..18"
|
||||
|
||||
Reference in New Issue
Block a user