2015-03-09 10:33:47 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
2015-09-11 01:25:37 -07:00
|
|
|
#
|
2016-02-05 04:24:13 -08:00
|
|
|
# Test s3fs-fuse file system operations with
|
2015-09-11 01:25:37 -07:00
|
|
|
#
|
|
|
|
|
2015-03-09 10:33:47 -07:00
|
|
|
set -o errexit
|
2019-07-02 22:31:48 -07:00
|
|
|
set -o pipefail
|
2010-11-13 23:59:23 +00:00
|
|
|
|
|
|
|
# Require root
|
|
|
|
REQUIRE_ROOT=require-root.sh
|
2015-01-12 14:46:24 -08:00
|
|
|
#source $REQUIRE_ROOT
|
2015-03-09 10:33:47 -07:00
|
|
|
|
2016-02-05 04:24:13 -08:00
|
|
|
source integration-test-common.sh
|
2015-03-09 10:33:47 -07:00
|
|
|
|
2019-06-12 16:35:26 -07: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 04:24:13 -08:00
|
|
|
start_s3proxy
|
2010-11-13 23:59:23 +00:00
|
|
|
|
2019-06-12 16:35:26 -07: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 16:35:26 -07:00
|
|
|
stop_s3proxy
|
2015-02-24 05:17:59 -08:00
|
|
|
|
2016-02-05 04:24:13 -08:00
|
|
|
echo "$0: tests complete."
|