Felipe97/llama-cpp-compiled
01.2k
1#!/usr/bin/env bash2 3# make sure we are in the right directory4SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )5cd $SCRIPT_DIR6 7set -eu8 9WORKERS="${PYTEST_WORKERS:-auto}"10 11if [ $# -lt 1 ]12then13 if [[ "${SLOW_TESTS:-0}" == 1 ]]; then14 pytest --durations=30 -v -x -n "${WORKERS}" --dist=worksteal15 else16 pytest --durations=30 -v -x -n "${WORKERS}" --dist=worksteal -m "not slow"17 fi18else19 pytest --durations=30 -n "${WORKERS}" --dist=worksteal "$@"20fi21 