@@ -42,43 +42,50 @@ if [ -z "${ARROW_DEBUG_MEMORY_POOL}" ]; then
4242 export ARROW_DEBUG_MEMORY_POOL=trap
4343fi
4444
45+ exclude_tests=()
4546ctest_options=()
47+ if ! type azurite > /dev/null 2>&1 ; then
48+ exclude_tests+=(" arrow-azurefs-test" )
49+ fi
4650case " $( uname) " in
4751 Linux)
4852 n_jobs=$( nproc)
4953 ;;
5054 Darwin)
5155 n_jobs=$( sysctl -n hw.ncpu)
5256 # TODO: https://github.com/apache/arrow/issues/40410
53- exclude_tests=" arrow-s3fs-test"
54- ctest_options+=(--exclude-regex " ${exclude_tests} " )
57+ exclude_tests+=(" arrow-s3fs-test" )
5558 ;;
5659 MINGW* )
5760 n_jobs=${NUMBER_OF_PROCESSORS:- 1}
5861 # TODO: Enable these crashed tests.
5962 # https://issues.apache.org/jira/browse/ARROW-9072
60- exclude_tests=" gandiva-binary-test"
61- exclude_tests=" ${exclude_tests} |gandiva-boolean-expr-test"
62- exclude_tests=" ${exclude_tests} |gandiva-date-time-test"
63- exclude_tests=" ${exclude_tests} |gandiva-decimal-single-test"
64- exclude_tests=" ${exclude_tests} |gandiva-decimal-test"
65- exclude_tests=" ${exclude_tests} |gandiva-filter-project-test"
66- exclude_tests=" ${exclude_tests} |gandiva-filter-test"
67- exclude_tests=" ${exclude_tests} |gandiva-hash-test"
68- exclude_tests=" ${exclude_tests} |gandiva-if-expr-test"
69- exclude_tests=" ${exclude_tests} |gandiva-in-expr-test"
70- exclude_tests=" ${exclude_tests} |gandiva-internals-test"
71- exclude_tests=" ${exclude_tests} |gandiva-literal-test"
72- exclude_tests=" ${exclude_tests} |gandiva-null-validity-test"
73- exclude_tests=" ${exclude_tests} |gandiva-precompiled-test"
74- exclude_tests=" ${exclude_tests} |gandiva-projector-test"
75- exclude_tests=" ${exclude_tests} |gandiva-utf8-test"
76- ctest_options+=(--exclude-regex " ${exclude_tests} " )
63+ exclude_tests+=(" gandiva-binary-test" )
64+ exclude_tests+=(" gandiva-boolean-expr-test" )
65+ exclude_tests+=(" gandiva-date-time-test" )
66+ exclude_tests+=(" gandiva-decimal-single-test" )
67+ exclude_tests+=(" gandiva-decimal-test" )
68+ exclude_tests+=(" gandiva-filter-project-test" )
69+ exclude_tests+=(" gandiva-filter-test" )
70+ exclude_tests+=(" gandiva-hash-test" )
71+ exclude_tests+=(" gandiva-if-expr-test" )
72+ exclude_tests+=(" gandiva-in-expr-test" )
73+ exclude_tests+=(" gandiva-internals-test" )
74+ exclude_tests+=(" gandiva-literal-test" )
75+ exclude_tests+=(" gandiva-null-validity-test" )
76+ exclude_tests+=(" gandiva-precompiled-test" )
77+ exclude_tests+=(" gandiva-projector-test" )
78+ exclude_tests+=(" gandiva-utf8-test" )
7779 ;;
7880 * )
7981 n_jobs=${NPROC:- 1}
8082 ;;
8183esac
84+ if [ " ${# exclude_tests[@]} " -gt 0 ]; then
85+ IFS=" |"
86+ ctest_options+=(--exclude-regex " ${exclude_tests[*]} " )
87+ unset IFS
88+ fi
8289
8390if [ " ${ARROW_EMSCRIPTEN:- OFF} " = " ON" ]; then
8491 n_jobs=1 # avoid spurious fails on emscripten due to loading too many big executables
0 commit comments