aboutsummaryrefslogblamecommitdiff
path: root/test_read.sh
blob: 5ca3fed386020ed56127a9c08a1c425d1bb9de5b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
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