Skip to main content
Glama
test.shโ€ข1.24 kB
#!/bin/bash # Run the complete test suite for OPNsense MCP Server set -e # Exit on error echo "๐Ÿงช OPNsense MCP Server - Test Suite" echo "====================================" echo "" # Check if we're in the project root if [ ! -f "pytest.ini" ]; then echo "โŒ Error: Must be run from project root directory" exit 1 fi # Check if virtual environment is activated if [ -z "$VIRTUAL_ENV" ]; then echo "โš ๏ธ Warning: No virtual environment detected" echo " It's recommended to activate .venv first:" echo " source .venv/bin/activate" echo "" read -p "Continue anyway? (y/N) " -n 1 -r echo "" if [[ ! $REPLY =~ ^[Yy]$ ]]; then exit 1 fi fi # Install test dependencies if needed echo "๐Ÿ“ฆ Checking dependencies..." python -m pip install -q pytest pytest-asyncio pytest-cov 2>/dev/null || { echo "โŒ Failed to install test dependencies" exit 1 } echo "โœ… Dependencies ready" echo "" # Run tests echo "๐Ÿƒ Running test suite..." echo "" python -m pytest tests/ \ -v \ --tb=short \ "$@" EXIT_CODE=$? echo "" if [ $EXIT_CODE -eq 0 ]; then echo "โœ… All tests passed!" else echo "โŒ Some tests failed (exit code: $EXIT_CODE)" fi exit $EXIT_CODE

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/floriangrousset/opnsense-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server