]> git.proxmox.com Git - ceph.git/blob - ceph/qa/workunits/rgw/run-s3tests.sh
update ceph source to reef 18.1.2
[ceph.git] / ceph / qa / workunits / rgw / run-s3tests.sh
1 #!/usr/bin/env bash
2 set -ex
3
4 # run s3-tests from current directory. assume working
5 # ceph environment (radosgw-admin in path) and rgw on localhost:8000
6 # (the vstart default).
7
8 branch=$1
9 [ -z "$1" ] && branch=master
10 port=$2
11 [ -z "$2" ] && port=8000 # this is vstart's default
12
13 ##
14
15 [ -z "$BUILD_DIR" ] && BUILD_DIR=build
16
17 if [ -e CMakeCache.txt ]; then
18 BIN_PATH=$PWD/bin
19 elif [ -e $root_path/../${BUILD_DIR}/CMakeCache.txt ]; then
20 cd $root_path/../${BUILD_DIR}
21 BIN_PATH=$PWD/bin
22 fi
23 PATH=$PATH:$BIN_PATH
24
25 dir=tmp.s3-tests.$$
26
27 # clone and bootstrap
28 mkdir $dir
29 cd $dir
30 git clone https://github.com/ceph/s3-tests
31 cd s3-tests
32 git checkout ceph-$branch
33 S3TEST_CONF=s3tests.conf.SAMPLE tox -- -m "not fails_on_rgw and not sse_s3 and not lifecycle_expiration and not test_of_sts and not webidentity_test" -v
34
35 cd ../..
36 rm -rf $dir
37
38 echo OK.
39