diff options
author | Quentin <quentin@deuxfleurs.fr> | 2020-12-06 09:13:47 +0100 |
---|---|---|
committer | Quentin <quentin@deuxfleurs.fr> | 2020-12-06 09:13:47 +0100 |
commit | 28055b708fd27ed7407193eacdd5294b1192b067 (patch) | |
tree | b8c623de381b1d7e01b8789649aae2b93b1310ed /script | |
parent | 132c54b8077422b611d6cf130592f32194ab53cd (diff) | |
download | garage-28055b708fd27ed7407193eacdd5294b1192b067.tar.gz garage-28055b708fd27ed7407193eacdd5294b1192b067.zip |
Improve README, add more tests
Diffstat (limited to 'script')
-rw-r--r-- | script/dev-env.sh | 1 | ||||
-rwxr-xr-x | script/test-smoke.sh | 14 |
2 files changed, 9 insertions, 6 deletions
diff --git a/script/dev-env.sh b/script/dev-env.sh index 4c52568a..15f08e2e 100644 --- a/script/dev-env.sh +++ b/script/dev-env.sh @@ -11,5 +11,4 @@ export AWS_SECRET_ACCESS_KEY=`cat /tmp/garage.s3 |cut -d' ' -f2` export AWS_DEFAULT_REGION='garage' alias s3grg="aws s3 \ - --debug \ --endpoint-url http://127.0.0.1:3911" 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" |