Skip to content

Commit

Permalink
Apply #104 to scripts/test
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl committed Sep 1, 2022
1 parent fba678e commit af11d45
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit af11d45

Please sign in to comment.