Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions dev_tools/test_libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,27 @@
set -eo pipefail -o errtrace

declare -r usage="Usage: ${0##*/} [-h | --help | help] [bazel options ...]
Run the programs in tests/, and on Linux, also build the programs in apps/.

Invokes Bazel to run the programs in tests/, and on Linux, also build the
sample programs in apps/.

If the first option on the command line is -h, --help, or help, this help text
will be printed and the program will exit. Any other options on the command
line are passed directly to Bazel."
line are passed directly to Bazel.

This script makes use of the Python package 'py-cpuinfo'."

# Exit early if the user requested help.
if [[ "$1" == "-h" || "$1" == "--help" || "$1" == "help" ]]; then
echo "$usage"
exit 0
fi

if ! python -m pip show -qq py-cpuinfo 2>/dev/null; then
echo "Error: missing 'py-cpuinfo'. Please install dev-requirements.txt." >&2
exit 1
fi

# Look for AVX and SSE in the processor's feature flags.
declare features=""
declare filters=""
Expand Down
Loading