3 # Licensed to the Apache Software Foundation (ASF) under one
4 # or more contributor license agreements. See the NOTICE file
5 # distributed with this work for additional information
6 # regarding copyright ownership. The ASF licenses this file
7 # to you under the Apache License, Version 2.0 (the
8 # "License"); you may not use this file except in compliance
9 # with the License. You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing,
14 # software distributed under the License is distributed on an
15 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 # KIND, either express or implied. See the License for the
17 # specific language governing permissions and limitations
24 if [ "$#" -ne 1 ]; then
25 echo "Usage: $0 <arrow-src-dir>"
33 : ${CHECK_IMPORTS:=ON}
34 : ${CHECK_UNITTESTS:=ON}
35 : ${INSTALL_PYARROW:=ON}
37 export PYARROW_TEST_CYTHON
=OFF
38 export PYARROW_TEST_DATASET
=ON
39 export PYARROW_TEST_FLIGHT
=${ARROW_FLIGHT}
40 export PYARROW_TEST_GANDIVA
=OFF
41 export PYARROW_TEST_HDFS
=ON
42 export PYARROW_TEST_ORC
=ON
43 export PYARROW_TEST_PANDAS
=ON
44 export PYARROW_TEST_PARQUET
=ON
45 export PYARROW_TEST_PLASMA
=ON
46 export PYARROW_TEST_S3
=${ARROW_S3}
47 export PYARROW_TEST_TENSORFLOW
=ON
49 export ARROW_TEST_DATA
=${source_dir}/testing
/data
50 export PARQUET_TEST_DATA
=${source_dir}/submodules
/parquet-testing
/data
52 if [ "${INSTALL_PYARROW}" == "ON" ]; then
53 # Install the built wheels
54 pip
install --force-reinstall ${source_dir}/python
/repaired_wheels
/*.whl
57 if [ "${CHECK_IMPORTS}" == "ON" ]; then
58 # Test that the modules are importable
63 import pyarrow.dataset
67 import pyarrow.parquet
70 if [ "${PYARROW_TEST_S3}" == "ON" ]; then
71 python
-c "import pyarrow._s3fs"
73 if [ "${PYARROW_TEST_FLIGHT}" == "ON" ]; then
74 python
-c "import pyarrow.flight"
78 if [ "${CHECK_UNITTESTS}" == "ON" ]; then
79 # Install testing dependencies
80 pip
install -U -r ${source_dir}/python
/requirements-wheel-test.txt
81 # Execute unittest, test dependencies must be installed
82 python
-c 'import pyarrow; pyarrow.create_library_symlinks()'
83 python
-m pytest
-r s
--pyargs pyarrow