#!/usr/bin/env bash ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd) # Determine how many parallel jobs to use for make based on the number of cores unamestr="$(uname)" if [[ "$unamestr" == "Linux" ]]; then PARALLEL=$(nproc) elif [[ "$unamestr" == "Darwin" ]]; then PARALLEL=$(sysctl -n hw.ncpu) else echo "Unrecognized platform." exit 1 fi pushd "$ROOT_DIR/src/common" make make test popd pushd "$ROOT_DIR/src/plasma" make make test popd pushd "$ROOT_DIR/src/photon" make popd