Skip to content

Commit c365260

Browse files
committed
Restore run tests code
1 parent 6e43798 commit c365260

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

ci/scripts/jni_macos_build.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,21 @@ cmake \
100100
-GNinja
101101
cmake --build "${build_dir}/cpp" --target install
102102

103+
if [ "${ARROW_RUN_TESTS:-}" == "ON" ]; then
104+
# MinIO is required
105+
exclude_tests="arrow-s3fs-test"
106+
# unstable
107+
exclude_tests="${exclude_tests}|arrow-acero-asof-join-node-test"
108+
exclude_tests="${exclude_tests}|arrow-acero-hash-join-node-test"
109+
ctest \
110+
--exclude-regex "${exclude_tests}" \
111+
--label-regex unittest \
112+
--output-on-failure \
113+
--parallel "$(sysctl -n hw.ncpu)" \
114+
--test-dir "${build_dir}/cpp" \
115+
--timeout 300
116+
fi
117+
103118
export JAVA_JNI_CMAKE_ARGS="-DProtobuf_ROOT=${build_dir}/cpp/protobuf_ep-install"
104119
"${source_dir}/ci/scripts/jni_build.sh" \
105120
"${source_dir}" \

ci/scripts/jni_manylinux_build.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,34 @@ cmake \
120120
cmake --build "${build_dir}/cpp"
121121
cmake --install "${build_dir}/cpp"
122122

123+
if [ "${ARROW_RUN_TESTS:-OFF}" = "ON" ]; then
124+
# MinIO is required
125+
exclude_tests="arrow-s3fs-test"
126+
case $(arch) in
127+
aarch64)
128+
# GCS testbench is crashed on aarch64:
129+
# ImportError: ../grpc/_cython/cygrpc.cpython-38-aarch64-linux-gnu.so:
130+
# undefined symbol: vtable for std::__cxx11::basic_ostringstream<
131+
# char, std::char_traits<char>, std::allocator<char> >
132+
exclude_tests="${exclude_tests}|arrow-gcsfs-test"
133+
;;
134+
esac
135+
# unstable
136+
exclude_tests="${exclude_tests}|arrow-acero-asof-join-node-test"
137+
exclude_tests="${exclude_tests}|arrow-acero-hash-join-node-test"
138+
# external dependency
139+
exclude_tests="${exclude_tests}|arrow-gcsfs-test"
140+
# strptime
141+
exclude_tests="${exclude_tests}|arrow-utility-test"
142+
ctest \
143+
--exclude-regex "${exclude_tests}" \
144+
--label-regex unittest \
145+
--output-on-failure \
146+
--parallel "$(nproc)" \
147+
--test-dir "${build_dir}/cpp" \
148+
--timeout 300
149+
fi
150+
123151
JAVA_JNI_CMAKE_ARGS="-DCMAKE_TOOLCHAIN_FILE=${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
124152
JAVA_JNI_CMAKE_ARGS="${JAVA_JNI_CMAKE_ARGS} -DVCPKG_TARGET_TRIPLET=${VCPKG_TARGET_TRIPLET}"
125153
export JAVA_JNI_CMAKE_ARGS

0 commit comments

Comments
 (0)