mirror of
https://github.com/ceph/ceph
synced 2025-01-03 17:42:36 +00:00
6476517def
Signed-off-by: Sage Weil <sage@redhat.com>
42 lines
869 B
Bash
Executable File
42 lines
869 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -ex
|
|
|
|
# run s3-tests from current directory. assume working
|
|
# ceph environment (radosgw-admin in path) and rgw on localhost:8000
|
|
# (the vstart default).
|
|
|
|
branch=$1
|
|
[ -z "$1" ] && branch=master
|
|
port=$2
|
|
[ -z "$2" ] && port=8000 # this is vstart's default
|
|
|
|
##
|
|
|
|
[ -z "$BUILD_DIR" ] && BUILD_DIR=build
|
|
|
|
if [ -e CMakeCache.txt ]; then
|
|
BIN_PATH=$PWD/bin
|
|
elif [ -e $root_path/../${BUILD_DIR}/CMakeCache.txt ]; then
|
|
cd $root_path/../${BUILD_DIR}
|
|
BIN_PATH=$PWD/bin
|
|
fi
|
|
PATH=$PATH:$BIN_PATH
|
|
|
|
dir=tmp.s3-tests.$$
|
|
|
|
# clone and bootstrap
|
|
mkdir $dir
|
|
cd $dir
|
|
git clone https://github.com/ceph/s3-tests
|
|
cd s3-tests
|
|
git checkout ceph-$branch
|
|
VIRTUALENV_PYTHON=/usr/bin/python3 ./bootstrap
|
|
|
|
S3TEST_CONF=s3tests.conf.SAMPLE virtualenv/bin/python -m nose -a '!fails_on_rgw,!lifecycle_expiration,!fails_strict_rfc2616' -v
|
|
|
|
cd ../..
|
|
rm -rf $dir
|
|
|
|
echo OK.
|
|
|