Allow disabling bubblewrap tests
Thanks for the new fontconfig release!
Would it be possible to provide a config option / environment variable / whatever that allows disabling the bubblewrap (bwrap
) tests/invocation in run-tests.sh
?
Calling sandboxing tools can be problematic for distributions because we're often already running builds & test suites within a sandbox, so when something tries to do a bunch of the isolation stuff, it often throws up a bunch of warnings or outright fails.
For example, within Gentoo's sandbox, I get this in test-suite.log
if bwrap
is installed (and the test fails if it's not installed, although skipping only if we can't find the binary isn't sufficient for us anyway):
FAIL: run-test
==============
/usr/bin/bwrap --bind / / --bind "/var/tmp/portage/media-libs/fontconfig-2.14.0/temp/fontconfig.vwRe3gWl/cache.dir" "/var/tmp/portage/media-libs/fontconfig-2.14.0/temp/fontconfig.CRvKqytB"/cache.dir --bind "/var/tmp/portage/media-libs/fontconfig-2.14.0/temp/fontconfig.vwRe3gWl/fonts" "/var/tmp/portage/media-libs/fontconfig-2.14.0/temp/fontconfig.CRvKqytB"/fonts --bind .. "/var/tmp/portage/media-libs/fontconfig-2.14.0/temp/fontconfig.CRvKqytB"/build --dev-bind /dev /dev --setenv FONTCONFIG_FILE "/var/tmp/portage/media-libs/fontconfig-2.14.0/temp/fontconfig.CRvKqytB"/build/test/bind-fonts.conf "/var/tmp/portage/media-libs/fontconfig-2.14.0/temp/fontconfig.CRvKqytB"/build/fc-match/fc-match"" -f "%{file}
" ":foundry=Misc" > xxx
CACHEDIR.TAG
af2d3dc81e1d51fc5d84d703e657f236-le32d4.cache-8
4x6.pcf
8x16.pcf
bwrap: setting up uid map: Permission denied
Aborting from 'Basic functionality with the bind-mounted cache dir' with the exit code 1
FAIL run-test.sh (exit status: 1)
(I've not looked at what the tests do but it might be possible to just allow running them outside of your own sandbox if we opt-in. Not sure.)