aboutsummaryrefslogtreecommitdiff
path: root/test_read.sh
diff options
context:
space:
mode:
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
+