Commit a9f3b34a authored by Cecylia Bocovich's avatar Cecylia Bocovich
Browse files

Pass in test type to bridgetest.sh

parent 142e1ad4
......@@ -2,9 +2,21 @@
set -e
SITE="${1:?}"
CASE="${1:?}"
SITE="${2:?}"
if ! [[ "$CASE" =~ ^(obfs4)$ ]]; then
echo 'Error, please choose a valid test type from [obfs4]'
exit 1
fi
dirname="$PWD"
logdirname="log/$SITE/$(date -u +%Y%m%d-%H%M)"
logdirname="log/$CASE/$SITE/$(date -u +%Y%m%d-%H%M)"
mkdir -p "$logdirname"
cd "$logdirname" && "$dirname/bridgetest" "$dirname/bridge_lines.txt"
cd "$logdirname"
case $CASE in
'obfs4')
"$dirname/obfs4test" "$dirname/bridge_lines.txt"
;;
esac
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment