Team Ai
Apppublic

KBaba7/llama.cpp

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes
tests.sh24 linesDownload Raw Back to tests
1#!/bin/bash2 3# make sure we are in the right directory4SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )5cd $SCRIPT_DIR6 7set -eu8 9if [[ "${SLOW_TESTS:-0}" == 1 ]]; then10    # Slow tests for tool calls need quite a few models ahead of time to avoid timing out.11    python $SCRIPT_DIR/../../../scripts/fetch_server_test_models.py12fi13 14if [ $# -lt 1 ]15then16    if [[ "${SLOW_TESTS:-0}" == 1 ]]; then17        pytest -v -x18    else19        pytest -v -x -m "not slow"20    fi21else22    pytest "$@"23fi24