You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
1.1 KiB

  1. #!/usr/bin/env bash
  2. set -ex
  3. killall -9 weed || echo "already stopped"
  4. rm -Rf tmp
  5. mkdir tmp
  6. docker stop s3test-instance || echo "already stopped"
  7. ulimit -n 10000
  8. ../../../weed/weed server -filer -s3 -volume.max 0 -master.volumeSizeLimitMB 5 -dir "$(pwd)/tmp" 1>&2>weed.log &
  9. until $(curl --output /dev/null --silent --head --fail http://127.0.0.1:9333); do
  10. printf '.'
  11. sleep 5
  12. done
  13. sleep 3
  14. rm -Rf logs-full.txt logs-summary.txt
  15. # docker run --name s3test-instance --rm -e S3TEST_CONF=s3tests.conf -v `pwd`/s3tests.conf:/s3-tests/s3tests.conf -it s3tests ./virtualenv/bin/nosetests s3tests_boto3/functional/test_s3.py:test_get_obj_tagging -v -a 'resource=object,!bucket-policy,!versioning,!encryption'
  16. docker run --name s3test-instance --rm -e S3TEST_CONF=s3tests.conf -v `pwd`/s3tests.conf:/s3-tests/s3tests.conf -it s3tests ./virtualenv/bin/nosetests s3tests_boto3/functional/test_s3.py -v -a 'resource=object,!bucket-policy,!versioning,!encryption' | sed -n -e '/botocore.hooks/!p;//q' | tee logs-summary.txt
  17. docker stop s3test-instance || echo "already stopped"
  18. killall -9 weed