Add more scripts to ease Garage's development #17

Merged
lx merged 7 commits from feature/new-script into master 2020-11-20 22:51:28 +00:00
3 changed files with 0 additions and 26 deletions
Showing only changes of commit 8c6961d0f9 - Show all commits

View file

@ -1,6 +0,0 @@
#!/bin/bash
for FILE in $(find target); do
curl localhost:3900/$FILE -X DELETE -H 'Host: garage'
done

View file

@ -1,13 +0,0 @@
#!/bin/bash
for FILE in $(find target/debug/deps); do
SHA2=$(curl localhost:3900/$FILE -H 'Host: garage' 2>/dev/null | sha256sum | cut -d ' ' -f 1)
SHA2REF=$(sha256sum $FILE | cut -d ' ' -f 1)
if [ "$SHA2" = "$SHA2REF" ]; then
echo "OK $FILE"
else
echo "!!!! ERROR $FILE !!!!"
fi
done

View file

@ -1,7 +0,0 @@
#!/bin/bash
for FILE in $(find target/debug/deps); do
echo -n "$FILE "
curl localhost:3900/$FILE -X PUT -H 'Host: garage' -H 'Content-Type: application/blob' --data-binary "@$FILE" || echo "ERROR"
done