mic~ proxy for JA4-TLS fingerprinting evasion |
| git clone https://github.com/djnnvx/mic.git |
| log | files | refs | archive | README | LICENSE |
run_integration_tests.sh (885B)
1 #!/usr/bin/env bash 2 # run_integration_tests.sh — run the integration test suite. 3 # 4 # Integration tests spin up in-process TLS servers and do not require an 5 # external proxy instance. They exercise the full round-trip: 6 # 7 # client-front: client → TCP CONNECT → proxy → uTLS(Chrome120) → target 8 # server-front: client → TLS → proxy (terminates) → uTLS(Chrome120) → backend 9 # 10 # Usage: 11 # scripts/run_integration_tests.sh # all packages 12 # scripts/run_integration_tests.sh ./proxy/ # single package 13 set -euo pipefail 14 15 SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" 16 ROOT_DIR="$(dirname "$SCRIPT_DIR")" 17 18 PACKAGES="${1:-./...}" 19 TIMEOUT="${INTEGRATION_TIMEOUT:-60s}" 20 21 echo "[+] Running integration tests (timeout: $TIMEOUT)..." 22 echo "" 23 24 (cd "$ROOT_DIR" && go test -tags integration -v -timeout "$TIMEOUT" "$PACKAGES") 25 26 echo "" 27 echo "[+] Done."