mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-26 18:32:20 +01:00
unit.test: add bwrap wrapper script at scripts/unit.test.
This commit is contained in:
@@ -84,6 +84,8 @@ if BUILD_OCSP
|
||||
dist_noinst_SCRIPTS+= scripts/ocsp.test
|
||||
endif
|
||||
|
||||
dist_noinst_SCRIPTS+= scripts/unit.test
|
||||
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
9
scripts/unit.test
Executable file
9
scripts/unit.test
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
DIRNAME="$(dirname "$0")"
|
||||
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
|
||||
Reference in New Issue
Block a user