kikocis/llama-stack public
| 1 | #!/bin/bash |
| 2 | |
| 3 | # Copyright (c) Meta Platforms, Inc. and affiliates. |
| 4 | # All rights reserved. |
| 5 | # |
| 6 | # This source code is licensed under the terms described in the LICENSE file in |
| 7 | # the root directory of this source tree. |
| 8 | |
| 9 | THIS_DIR="$(cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")" && pwd)" |
| 10 | |
| 11 | set -euo pipefail |
| 12 | set -x |
| 13 | |
| 14 | stack_dir=$(dirname $(dirname $THIS_DIR)) |
| 15 | models_dir=$(dirname $stack_dir)/llama-models |
| 16 | PYTHONPATH=$models_dir:$stack_dir pytest -p no:warnings --asyncio-mode auto --tb=short |