
in scripts/ocsp.test, don't call ping.test when $AM_BWRAPPED = yes (ping is setuid, so fails under bwrap); in scripts/unit.test.in, don't bwrap if $AM_BWRAPPED = yes (double-bwrapping always fails); in testsuite/testsuite.c testsuite_test(), build tempName using tempDir, and try to assign tempDir from XGETENV("TMPDIR"), fallback to hardcoded "/tmp".
13 lines
309 B
Bash
13 lines
309 B
Bash
#!/bin/sh
|
|
|
|
if [ "${AM_BWRAPPED-}" != "yes" ]; then
|
|
bwrap_path="$(command -v bwrap)"
|
|
if [ -n "$bwrap_path" ]; then
|
|
exec "$bwrap_path" --unshare-net --dev-bind / / "@builddir@/tests/unit.test" "$@"
|
|
else
|
|
exec "@builddir@/tests/unit.test" "$@"
|
|
fi
|
|
else
|
|
exec "@builddir@/tests/unit.test" "$@"
|
|
fi
|