Add flag to run all tests (#1710)

This allows CI to run the full set of tests while making local
development faster.
This commit is contained in:
Andrew Gaul 2021-07-02 08:41:47 +09:00 committed by GitHub
parent fe44355d25
commit 9cfa177af0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 14 deletions

View File

@ -177,7 +177,7 @@ jobs:
make check -C src
echo "user_allow_other" | sudo tee -a /etc/fuse.conf >/dev/null
if [ -f /Library/Filesystems/osxfusefs.fs/Support/load_osxfusefs ]; then /Library/Filesystems/osxfusefs.fs/Support/load_osxfusefs; elif [ -f /Library/Filesystems/osxfuse.fs/Contents/Resources/load_osxfuse ]; then /Library/Filesystems/osxfuse.fs/Contents/Resources/load_osxfuse; else exit 1; fi
make check -C test || (test/filter-suite-log.sh test/test-suite.log; exit 1)
make ALL_TESTS=1 check -C test || (test/filter-suite-log.sh test/test-suite.log; exit 1)
#
# Local variables:

View File

@ -54,19 +54,25 @@ fi
export CACHE_DIR
export ENSURE_DISKFREE_SIZE
FLAGS=(
"use_cache=${CACHE_DIR} -o ensure_diskfree=${ENSURE_DISKFREE_SIZE}"
enable_content_md5
enable_noobj_cache
max_stat_cache_size=100
nocopyapi
nomultipart
notsup_compat_dir
sigv2
sigv4
singlepart_copy_limit=10 # limit size to exercise multipart code paths
#use_sse # TODO: S3Proxy does not support SSE
)
if [ -n "${ALL_TESTS}" ]; then
FLAGS=(
"use_cache=${CACHE_DIR} -o ensure_diskfree=${ENSURE_DISKFREE_SIZE}"
enable_content_md5
enable_noobj_cache
max_stat_cache_size=100
nocopyapi
nomultipart
notsup_compat_dir
sigv2
sigv4
singlepart_copy_limit=10 # limit size to exercise multipart code paths
#use_sse # TODO: S3Proxy does not support SSE
)
else
FLAGS=(
sigv4
)
fi
start_s3proxy