diff --git a/test/TestPropagation/compileandtest b/test/TestPropagation/compileandtest index 031af8b..89d7be3 100755 --- a/test/TestPropagation/compileandtest +++ b/test/TestPropagation/compileandtest @@ -1,5 +1,9 @@ #!/bin/bash -ncores=`nproc` +if [[ "$(uname)" == "Darwin" ]]; then + ncores=`sysctl -n hw.ncpu` +else + ncores=`nproc` +fi make -j "$ncores" test diff --git a/test/TestVarField/compileandrun b/test/TestVarField/compileandrun index 031af8b..89d7be3 100755 --- a/test/TestVarField/compileandrun +++ b/test/TestVarField/compileandrun @@ -1,5 +1,9 @@ #!/bin/bash -ncores=`nproc` +if [[ "$(uname)" == "Darwin" ]]; then + ncores=`sysctl -n hw.ncpu` +else + ncores=`nproc` +fi make -j "$ncores" test