2021-02-05 10:40:31 -08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2022-05-24 12:10:10 -05:00
|
|
|
if [ -n "$NETWORK_UNSHARE_HELPER" ]; then
|
2022-05-05 15:59:11 -05:00
|
|
|
exec "${NETWORK_UNSHARE_HELPER}" "@builddir@/tests/unit.test" "$@" || exit $?
|
|
|
|
elif [ "${AM_BWRAPPED-}" != "yes" ]; then
|
2022-02-10 15:54:39 -06:00
|
|
|
bwrap_path="$(command -v bwrap)"
|
|
|
|
if [ -n "$bwrap_path" ]; then
|
2022-03-09 12:28:22 -06:00
|
|
|
exec "$bwrap_path" --unshare-net --dev-bind / / "@builddir@/tests/unit.test" "$@"
|
2022-02-10 15:54:39 -06:00
|
|
|
else
|
2022-03-09 12:28:22 -06:00
|
|
|
exec "@builddir@/tests/unit.test" "$@"
|
2022-02-10 15:54:39 -06:00
|
|
|
fi
|
2021-02-05 10:40:31 -08:00
|
|
|
else
|
2022-03-09 12:28:22 -06:00
|
|
|
exec "@builddir@/tests/unit.test" "$@"
|
2021-02-05 10:40:31 -08:00
|
|
|
fi
|