#!/bin/sh # for makefile use PWD as it is safe to assume location of execution if [ "$MAKELEVEL" != "" ]; then DIRNAME=$PWD; else DIRNAME="$(dirname "$0")/.."; fi bwrap_path="$(command -v bwrap)" if [ -n "$bwrap_path" ]; then exec "$bwrap_path" --unshare-net --dev-bind / / "$DIRNAME/tests/unit.test" "$@" else exec "$DIRNAME/tests/unit.test" "$@" fi