Add a test runner and 2 very simple tests for agents

This commit is contained in:
Ashwin Bharambe 2024-09-19 12:05:36 -07:00
parent 543222ac39
commit abb43936ab
9 changed files with 243 additions and 5 deletions

View 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