29 lines
566 B
Bash
29 lines
566 B
Bash
|
|
#!/bin/bash
|
||
|
|
set -e
|
||
|
|
|
||
|
|
REPO_ROOT=$(git rev-parse --show-toplevel)
|
||
|
|
CHAT_DIR="$REPO_ROOT/veza-chat-server"
|
||
|
|
STREAM_DIR="$REPO_ROOT/veza-stream-server"
|
||
|
|
|
||
|
|
echo "📍 Services Unit Tests"
|
||
|
|
|
||
|
|
# Chat Server
|
||
|
|
echo "🦀 Testing Chat Server..."
|
||
|
|
if [ -d "$CHAT_DIR" ]; then
|
||
|
|
cd "$CHAT_DIR"
|
||
|
|
cargo test
|
||
|
|
else
|
||
|
|
echo "⚠️ Chat Server directory not found!"
|
||
|
|
fi
|
||
|
|
|
||
|
|
# Stream Server
|
||
|
|
echo "🦀 Testing Stream Server..."
|
||
|
|
if [ -d "$STREAM_DIR" ]; then
|
||
|
|
cd "$STREAM_DIR"
|
||
|
|
cargo test
|
||
|
|
else
|
||
|
|
echo "⚠️ Stream Server directory not found!"
|
||
|
|
fi
|
||
|
|
|
||
|
|
echo "✅ Service tests passed."
|