forked from apache/arrow
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apacheGH-38402: [CI][Integration] Provide wrapper scripts for integra…
…tion testing (apache#38403) ### Rationale for this change It is currently cumbersome to run integration tests from an other repository, as each tested implementation must be built explicitly. See explanatory comment at apache/arrow-rs#4957 (comment) ### What changes are included in this PR? Provide a wrapper script to automate building the implementations being tested. Allow usage of environment variables such as `ARROW_INTEGRATION_CPP`, etc. to selectively disable implementations. ### Are these changes tested? Yes, by construction. ### Are there any user-facing changes? No. * Closes: apache#38402 Authored-by: Antoine Pitrou <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
- Loading branch information
Showing
4 changed files
with
79 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
set -ex | ||
|
||
arrow_dir=${1} | ||
build_dir=${2} | ||
|
||
: ${ARROW_INTEGRATION_CPP:=ON} | ||
: ${ARROW_INTEGRATION_CSHARP:=ON} | ||
: ${ARROW_INTEGRATION_GO:=ON} | ||
: ${ARROW_INTEGRATION_JAVA:=ON} | ||
: ${ARROW_INTEGRATION_JS:=ON} | ||
|
||
${arrow_dir}/ci/scripts/rust_build.sh ${arrow_dir} ${build_dir} | ||
|
||
if [ "${ARROW_INTEGRATION_CPP}" == "ON" ]; then | ||
${arrow_dir}/ci/scripts/cpp_build.sh ${arrow_dir} ${build_dir} | ||
fi | ||
|
||
if [ "${ARROW_INTEGRATION_CSHARP}" == "ON" ]; then | ||
${arrow_dir}/ci/scripts/csharp_build.sh ${arrow_dir} ${build_dir} | ||
fi | ||
|
||
if [ "${ARROW_INTEGRATION_GO}" == "ON" ]; then | ||
${arrow_dir}/ci/scripts/go_build.sh ${arrow_dir} ${build_dir} | ||
fi | ||
|
||
if [ "${ARROW_INTEGRATION_JAVA}" == "ON" ]; then | ||
export ARROW_JAVA_CDATA="ON" | ||
export JAVA_JNI_CMAKE_ARGS="-DARROW_JAVA_JNI_ENABLE_DEFAULT=OFF -DARROW_JAVA_JNI_ENABLE_C=ON" | ||
|
||
${arrow_dir}/ci/scripts/java_jni_build.sh ${arrow_dir} ${ARROW_HOME} ${build_dir} /tmp/dist/java/$(arch) | ||
${arrow_dir}/ci/scripts/java_build.sh ${arrow_dir} ${build_dir} /tmp/dist/java | ||
fi | ||
|
||
if [ "${ARROW_INTEGRATION_JS}" == "ON" ]; then | ||
${arrow_dir}/ci/scripts/js_build.sh ${arrow_dir} ${build_dir} | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters