diff options
author | Rasmus Dahlberg <rasmus@rgdd.se> | 2023-04-01 20:44:28 +0200 |
---|---|---|
committer | Rasmus Dahlberg <rasmus@rgdd.se> | 2023-04-01 20:44:28 +0200 |
commit | 3d145dc54b46310228b170bf10eb7262400131aa (patch) | |
tree | 099894edf24c966832ce23c5460de76fbece978f | |
parent | e5dfe9c91e7a260926009f3230c6d5d74e7a759f (diff) |
Add shuf to test
-rwxr-xr-x | scripts/test.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/test.sh b/scripts/test.sh index 82cdbfa..a57c74c 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -65,9 +65,10 @@ function main() { ip=$(curl -s https://am.i.mullvad.net) debug "working on test $i/$num_test at relay $relay ($ip) with limit $limit sites/s" + 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 $input_file -t $timeout -l $limit -w $num_workers >$stdout_file 2>$stderr_file + onion-grab -i $tmp_dir/input.lst -t $timeout -l $limit -w $num_workers >$stdout_file 2>$stderr_file i=$(( $i + 1 )) done |