aboutsummaryrefslogtreecommitdiff
path: root/script/test-smoke.sh
diff options
context:
space:
mode:
authorQuentin <quentin@deuxfleurs.fr>2020-12-06 09:13:47 +0100
committerQuentin <quentin@deuxfleurs.fr>2020-12-06 09:13:47 +0100
commit28055b708fd27ed7407193eacdd5294b1192b067 (patch)
treeb8c623de381b1d7e01b8789649aae2b93b1310ed /script/test-smoke.sh
parent132c54b8077422b611d6cf130592f32194ab53cd (diff)
downloadgarage-28055b708fd27ed7407193eacdd5294b1192b067.tar.gz
garage-28055b708fd27ed7407193eacdd5294b1192b067.zip
Improve README, add more tests
Diffstat (limited to 'script/test-smoke.sh')
-rwxr-xr-xscript/test-smoke.sh14
1 files changed, 9 insertions, 5 deletions
diff --git a/script/test-smoke.sh b/script/test-smoke.sh
index 800836b0..eaf1556b 100755
--- a/script/test-smoke.sh
+++ b/script/test-smoke.sh
@@ -13,11 +13,15 @@ ${SCRIPT_FOLDER}/dev-configure.sh
${SCRIPT_FOLDER}/dev-bucket.sh
source ${SCRIPT_FOLDER}/dev-env.sh
-dd if=/dev/urandom of=/tmp/garage.rnd bs=1M count=10
+dd if=/dev/urandom of=/tmp/garage.1.rnd bs=512k count=1
+dd if=/dev/urandom of=/tmp/garage.2.rnd bs=1M count=5
+dd if=/dev/urandom of=/tmp/garage.3.rnd bs=1M count=10
-s3grg cp /tmp/garage.rnd s3://eprouvette/
-s3grg ls s3://eprouvette
-s3grg cp s3://eprouvette/garage.rnd /tmp/garage.dl
+for idx in $(seq 1 3); do
+ s3grg cp /tmp/garage.$idx.rnd s3://eprouvette/
+ s3grg ls s3://eprouvette
+ s3grg cp s3://eprouvette/garage.$idx.rnd /tmp/garage.$idx.dl
+ diff /tmp/garage.$idx.rnd /tmp/garage.$idx.dl
+done
-diff /tmp/garage.rnd /tmp/garage.dl
echo "success"