1
0

unit.test.in 456 B

1234567891011121314
  1. #!/bin/sh
  2. if [ -n "$NETWORK_UNSHARE_HELPER" ]; then
  3. exec "${NETWORK_UNSHARE_HELPER}" "@builddir@/tests/unit.test" "$@" || exit $?
  4. elif [ "${AM_BWRAPPED-}" != "yes" ]; then
  5. bwrap_path="$(command -v bwrap)"
  6. if [ -n "$bwrap_path" ]; then
  7. exec "$bwrap_path" --unshare-net --dev-bind / / "@builddir@/tests/unit.test" "$@"
  8. else
  9. exec "@builddir@/tests/unit.test" "$@"
  10. fi
  11. else
  12. exec "@builddir@/tests/unit.test" "$@"
  13. fi