#!/bin/bash
#   Copyright (C) 2026 John Kacur
# SPDX-License-Identifier: GPL-2.0-only
#
# run_tests.sh - Run tuna unit tests
#
# This script runs all unit tests in the tests/ directory using Python's
# unittest framework.

set -e

# Change to repository root
cd "$(dirname "$0")/.."

echo "Running tuna unit tests..."
echo ""

# Run unittest discovery
# -s tests: start directory
# -p "test_*.py": pattern for test files
# -v: verbose output
python3 -m unittest discover -s tests -p "test_*.py" -v

echo ""
echo "All tests passed!"
