diff options
author | Rasmus Dahlberg <rasmus@rgdd.se> | 2023-04-03 01:13:24 +0200 |
---|---|---|
committer | Rasmus Dahlberg <rasmus@rgdd.se> | 2023-04-03 01:13:24 +0200 |
commit | b30c794ce8a49b89cf77057719a71bbe9cd54c8d (patch) | |
tree | bf958af8d4f3df8111f463c51e451903ccebb267 /scripts | |
parent | 1a332d0597f8f5413dabad7c0cdce5f35a669f52 (diff) |
Add -r and -m to test script
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/test.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/test.sh b/scripts/test.sh index 30c46d0..7c349d0 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -20,6 +20,8 @@ limits=(\ ) num_workers=16 input_file=example.lst +response_max_mib=8 +metrics_interval=10s ### # Other options @@ -36,6 +38,8 @@ function main() { debug "limits=${#limits[@]} (${limits[@]})" debug "num_workers=$num_workers" debug "input_file=$input_file ($num_sites sites)" + debug "response_max_mib=$response_max_mib" + debug "metrics_interval=$metrics_interval" debug "tmp_dir=$tmp_dir" debug "out_dir=$out_dir" debug "mullvad_wait_s=$mullvad_wait_s" @@ -71,7 +75,8 @@ function main() { shuf -o "$tmp_dir/input.lst" "$input_file" stdout_file=$tmp_dir/$relay-$limit.stdout stderr_file=$tmp_dir/$relay-$limit.stderr - onion-grab -i "$tmp_dir/input.lst" -t "$timeout_s"s -l "$limit" -w "$num_workers" >"$stdout_file" 2>"$stderr_file" + onion-grab -i "$tmp_dir/input.lst" -t "$timeout_s"s -l "$limit" -w "$num_workers"\ + -r "$response_max_mib" -m "$metrics_interval" >"$stdout_file" 2>"$stderr_file" i=$(( $i + 1 )) done |