mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-27 18:50:41 +00:00
Add a test runner and 2 very simple tests for agents
This commit is contained in:
parent
543222ac39
commit
abb43936ab
9 changed files with 243 additions and 5 deletions
16
llama_stack/scripts/run_tests.sh
Normal file
16
llama_stack/scripts/run_tests.sh
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This source code is licensed under the terms described in the LICENSE file in
|
||||
# the root directory of this source tree.
|
||||
|
||||
THIS_DIR="$(cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")" && pwd)"
|
||||
|
||||
set -euo pipefail
|
||||
set -x
|
||||
|
||||
stack_dir=$(dirname $THIS_DIR)
|
||||
models_dir=$(dirname $(dirname $stack_dir))/llama-models
|
||||
PYTHONPATH=$models_dir:$stack_dir pytest -p no:warnings --asyncio-mode auto --tb=short
|
Loading…
Add table
Add a link
Reference in a new issue