mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
add bulk testing script
This commit is contained in:
parent
d84d55f533
commit
b9c5cc97f5
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
Loading…
x
Reference in New Issue
Block a user