Skip to content

Commit

Permalink
Test for macos-14
Browse files Browse the repository at this point in the history
  • Loading branch information
ggtakec committed Dec 15, 2024
1 parent b83c285 commit f0fd0d5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ jobs:
# This job doesn't work with GitHub Actions using macOS 11+ because "load_osxfuse" returns
# "exit code = 1".(requires OS reboot)
#
macos-13:
runs-on: macos-13
macos-14:
runs-on: macos-14

steps:
- name: Checkout source code
Expand All @@ -140,7 +140,10 @@ jobs:
- name: Install fuse-t
run: |
HOMEBREW_NO_AUTO_UPDATE=1 brew install fuse-t
# [NOTE]
# Install macfuse to install fuse.h and fuse related headers.
#
HOMEBREW_NO_AUTO_UPDATE=1 brew install macfuse fuse-t
- name: Install brew other packages
run: |
Expand All @@ -158,7 +161,7 @@ jobs:
- name: Build
run: |
./autogen.sh
PKG_CONFIG_PATH=/usr/local/opt/curl/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig ./configure CXXFLAGS='-std=c++11 -DS3FS_PTHREAD_ERRORCHECK=1'
PKG_CONFIG_PATH=/usr/local/opt/curl/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig ./configure CXXFLAGS='-std=c++11 -DS3FS_PTHREAD_ERRORCHECK=1 -I/usr/loval/include/fuse'
make --jobs=$(sysctl -n hw.ncpu)
- name: Cppcheck
Expand Down
11 changes: 7 additions & 4 deletions test/integration-test-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ function start_s3proxy {
S3PROXY_CACERT_FILE=""
fi

"${STDBUF_BIN}" -oL -eL java -jar "${S3PROXY_BINARY}" --properties "${S3PROXY_CONFIG}" &
#"${STDBUF_BIN}" -oL -eL java -jar "${S3PROXY_BINARY}" --properties "${S3PROXY_CONFIG}" &
java -jar "${S3PROXY_BINARY}" --properties "${S3PROXY_CONFIG}" &
S3PROXY_PID=$!

# wait for S3Proxy to start
Expand All @@ -188,7 +189,8 @@ function start_s3proxy {
chmod +x "${CHAOS_HTTP_PROXY_BINARY}"
fi

"${STDBUF_BIN}" -oL -eL java -jar "${CHAOS_HTTP_PROXY_BINARY}" --properties chaos-http-proxy.conf &
#"${STDBUF_BIN}" -oL -eL java -jar "${CHAOS_HTTP_PROXY_BINARY}" --properties chaos-http-proxy.conf &
java -jar "${CHAOS_HTTP_PROXY_BINARY}" --properties chaos-http-proxy.conf &
CHAOS_HTTP_PROXY_PID=$!

# wait for Chaos HTTP Proxy to start
Expand Down Expand Up @@ -294,9 +296,9 @@ function start_s3fs {
# subshell with set -x to log exact invocation of s3fs-fuse
# shellcheck disable=SC2086
(
# ${STDBUF_BIN} -oL -eL \ #
set -x
CURL_CA_BUNDLE="${S3PROXY_CACERT_FILE}" \
${STDBUF_BIN} -oL -eL \
${VALGRIND_EXEC} \
${S3FS} \
${TEST_BUCKET_1} \
Expand All @@ -319,7 +321,8 @@ function start_s3fs {
-f \
"${@}" &
echo $! >&3
) 3>pid | "${STDBUF_BIN}" -oL -eL "${SED_BIN}" "${SED_BUFFER_FLAG}" "s/^/s3fs: /" &
) 3>pid | "${SED_BIN}" "${SED_BUFFER_FLAG}" "s/^/s3fs: /" &
#) 3>pid | "${STDBUF_BIN}" -oL -eL "${SED_BIN}" "${SED_BUFFER_FLAG}" "s/^/s3fs: /" &
sleep 1
S3FS_PID=$(<pid)
export S3FS_PID
Expand Down

0 comments on commit f0fd0d5

Please sign in to comment.