diff --git a/scripts/test b/scripts/test index dd01dab6fb..19a67663b3 100755 --- a/scripts/test +++ b/scripts/test @@ -12,8 +12,14 @@ cd $(git rev-parse --show-toplevel) # Set env for pybind11 cmake export pybind11_DIR=$(python -m pybind11 --cmakedir) +if [ $(uname) = "Darwin" ]; then + nproc=$(sysctl -n hw.ncpu) +else + nproc=$(nproc) +fi + # Build the tests -cmake --build build/libtiledbsc --target build_tests -j $(nproc) +cmake --build build/libtiledbsc --target build_tests -j $nproc # Run unit tests cd build/libtiledbsc