aboutsummaryrefslogtreecommitdiff
path: root/test_read.sh
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-04-19 17:59:59 +0000
committerAlex Auvolat <alex@adnab.me>2020-04-19 17:59:59 +0000
commitea75564851851b969ef23797537c813ba607b84a (patch)
treed5bdb1a19a546cbbd92e35dbd496acfd16522dd9 /test_read.sh
parente325c7f47a9ad7777358b669f62a7c613f676ecd (diff)
downloadgarage-ea75564851851b969ef23797537c813ba607b84a.tar.gz
garage-ea75564851851b969ef23797537c813ba607b84a.zip
More aggressive sync timings & improve other stuff
Diffstat (limited to 'test_read.sh')
-rwxr-xr-xtest_read.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/test_read.sh b/test_read.sh
new file mode 100755
index 00000000..5ca3fed3
--- /dev/null
+++ b/test_read.sh
@@ -0,0 +1,13 @@
+
+#!/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
+