2015-03-09 17:33:47 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2015-09-11 08:25:37 +00:00
|
|
|
#
|
2016-02-05 12:24:13 +00:00
|
|
|
# Test s3fs-fuse file system operations with
|
2015-09-11 08:25:37 +00:00
|
|
|
#
|
|
|
|
|
2015-03-09 17:33:47 +00:00
|
|
|
set -o errexit
|
2019-07-03 05:31:48 +00:00
|
|
|
set -o pipefail
|
2010-11-13 23:59:23 +00:00
|
|
|
|
|
|
|
# Require root
|
|
|
|
REQUIRE_ROOT=require-root.sh
|
2015-01-12 22:46:24 +00:00
|
|
|
#source $REQUIRE_ROOT
|
2015-03-09 17:33:47 +00:00
|
|
|
|
2016-02-05 12:24:13 +00:00
|
|
|
source integration-test-common.sh
|
2015-03-09 17:33:47 +00:00
|
|
|
|
2019-06-12 23:35:26 +00:00
|
|
|
CACHE_DIR="/tmp/s3fs-cache"
|
|
|
|
rm -rf "${CACHE_DIR}"
|
|
|
|
mkdir "${CACHE_DIR}"
|
|
|
|
|
|
|
|
FLAGS=(
|
|
|
|
enable_content_md5
|
|
|
|
nocopyapi
|
|
|
|
nomultipart
|
|
|
|
notsup_compat_dir
|
|
|
|
sigv2
|
|
|
|
singlepart_copy_limit=$((10 * 1024)) # limit size to exercise multipart code paths
|
|
|
|
use_cache="${CACHE_DIR}"
|
|
|
|
#use_sse # TODO: S3Proxy does not support SSE
|
|
|
|
)
|
|
|
|
|
2016-02-05 12:24:13 +00:00
|
|
|
start_s3proxy
|
2010-11-13 23:59:23 +00:00
|
|
|
|
2019-06-12 23:35:26 +00:00
|
|
|
for flag in ${FLAGS[*]}; do
|
|
|
|
echo "testing s3fs flag: $flag"
|
|
|
|
|
|
|
|
start_s3fs -o $flag
|
|
|
|
|
|
|
|
./integration-test-main.sh
|
|
|
|
|
|
|
|
stop_s3fs
|
|
|
|
done
|
2010-12-20 05:26:27 +00:00
|
|
|
|
2019-06-12 23:35:26 +00:00
|
|
|
stop_s3proxy
|
2015-02-24 13:17:59 +00:00
|
|
|
|
2016-02-05 12:24:13 +00:00
|
|
|
echo "$0: tests complete."
|