Добавь интерактивный выбор модулей VPN
This commit is contained in:
22
tests/smoke.sh
Executable file
22
tests/smoke.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
TMP_DIR="$(mktemp -d)"
|
||||
trap 'rm -rf "$TMP_DIR"' EXIT INT TERM
|
||||
|
||||
export HOME="$TMP_DIR/home"
|
||||
export LEMANA_VPN_BIN_DIR="$HOME/bin"
|
||||
export LEMANA_VPN_CONFIG_DIR="$HOME/.config/lemana-vpn"
|
||||
export OPENCONNECT_LITE_CONFIG_DIR="$HOME/.config/openconnect-lite"
|
||||
mkdir -p "$HOME"
|
||||
|
||||
output="$(cd "$ROOT" && sh install.sh --dry-run --non-interactive --minimal)"
|
||||
|
||||
printf '%s\n' "$output" | grep -q 'Detected state:'
|
||||
printf '%s\n' "$output" | grep -q 'Interactive prompts: off'
|
||||
printf '%s\n' "$output" | grep -q 'Modules: bitwarden=0 touchid=0 sudoers=1 shell=1'
|
||||
printf '%s\n' "$output" | grep -q 'sudo install -d -m 755 -o root -g wheel /usr/local/sbin'
|
||||
|
||||
printf 'smoke ok\n'
|
||||
|
||||
Reference in New Issue
Block a user