mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-18 02:05:13 +00:00
6a8a2e4800
Example command line: S3FS_CREDENTIALS_FILE=keyfile \ TEST_BUCKET_1=somebucket \ S3PROXY_BINARY="" \ URL="http://s3.amazonaws.com" ./small-integration-test.sh
24 lines
654 B
Bash
24 lines
654 B
Bash
#!/bin/bash -e
|
|
set -x
|
|
S3FS=../src/s3fs
|
|
|
|
: ${S3FS_CREDENTIALS_FILE:="passwd-s3fs"}
|
|
|
|
: ${TEST_BUCKET_1:="s3fs-integration-test"}
|
|
TEST_BUCKET_MOUNT_POINT_1=${TEST_BUCKET_1}
|
|
|
|
if [ ! -f "$S3FS_CREDENTIALS_FILE" ]
|
|
then
|
|
echo "Missing credentials file: $S3FS_CREDENTIALS_FILE"
|
|
exit 1
|
|
fi
|
|
chmod 600 "$S3FS_CREDENTIALS_FILE"
|
|
|
|
S3PROXY_VERSION="1.4.0"
|
|
S3PROXY_BINARY=${S3PROXY_BINARY-"s3proxy-${S3PROXY_VERSION}"}
|
|
if [ -n "${S3PROXY_BINARY}" ] && [ ! -e "${S3PROXY_BINARY}" ]; then
|
|
wget "https://github.com/andrewgaul/s3proxy/releases/download/s3proxy-${S3PROXY_VERSION}/s3proxy" \
|
|
--quiet -O "${S3PROXY_BINARY}"
|
|
chmod +x "${S3PROXY_BINARY}"
|
|
fi
|