vpnbot-xray-patches/scripts/test-patches.sh
loop-uh 96e9d992f1
All checks were successful
Test and build VPnBot Xray patches / test-and-build (push) Successful in 4m49s
Build VPnBot Xray from official source patches
2026-08-07 15:09:35 +03:00

18 lines
462 B
Shell
Executable file

#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
readonly SCRIPT_DIR
TEMP_DIRECTORY="$(mktemp -d)"
readonly TEMP_DIRECTORY
trap 'rm -rf -- "$TEMP_DIRECTORY"' EXIT HUP INT TERM
"${SCRIPT_DIR}/prepare-source.sh" "${TEMP_DIRECTORY}/xray"
cd "${TEMP_DIRECTORY}/xray"
go test -timeout 30m \
./common \
./proxy/vless/inbound \
./proxy/trojan \
./proxy/vmess/inbound \
./proxy/shadowsocks