mirror of
https://github.com/azures04/crafatar.git
synced 2026-05-06 11:00:39 +02:00
add bulk testing script
This commit is contained in:
8
test/bulk.sh
Executable file
8
test/bulk.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
rm -f "$dir/../skins/"*.png || exit 1
|
||||
for uuid in `cat "$dir/uuids.txt"`; do
|
||||
uuid=`echo "$uuid" | tr -d '\r'`
|
||||
size=$(( ((RANDOM<<15)|RANDOM) % 514 - 1 )) # random number from -1 to 513
|
||||
curl -sS -o /dev/null -w "%{url_effective} %{http_code} %{time_total}s\\n" "http://127.0.0.1:3000/avatars/$uuid/$size"
|
||||
done
|
||||
4427
test/uuids.txt
Normal file
4427
test/uuids.txt
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user