mongo-python-driver/.evergreen/run-tests.sh
Steven Silvester eaae22c63b
PYTHON-5151 Convert kms tests to use python scripts (#2158)
Co-authored-by: Noah Stapp <noah@noahstapp.com>
2025-02-25 16:31:02 -06:00

39 lines
839 B
Bash
Executable File

#!/bin/bash
set -eu
SCRIPT_DIR=$(dirname ${BASH_SOURCE:-$0})
SCRIPT_DIR="$( cd -- "$SCRIPT_DIR" > /dev/null 2>&1 && pwd )"
ROOT_DIR="$(dirname $SCRIPT_DIR)"
pushd $ROOT_DIR
# Try to source the env file.
if [ -f $SCRIPT_DIR/scripts/env.sh ]; then
echo "Sourcing env inputs"
. $SCRIPT_DIR/scripts/env.sh
else
echo "Not sourcing env inputs"
fi
# Handle test inputs.
if [ -f $SCRIPT_DIR/scripts/test-env.sh ]; then
echo "Sourcing test inputs"
. $SCRIPT_DIR/scripts/test-env.sh
else
echo "Missing test inputs, please run 'just setup-tests'"
exit 1
fi
# Source the local secrets export file if available.
if [ -f "./secrets-export.sh" ]; then
. "./secrets-export.sh"
fi
# List the packages.
PIP_QUIET=0 uv run ${UV_ARGS} --with pip pip list
# Start the test runner.
uv run ${UV_ARGS} .evergreen/scripts/run_tests.py
popd