-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_test.sh
More file actions
executable file
·54 lines (41 loc) · 1.12 KB
/
Copy pathrun_test.sh
File metadata and controls
executable file
·54 lines (41 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
# Quick test script for fleet optimization
echo "🚀 Fleet Optimization - Quick Test"
echo "=================================="
echo ""
# Check if Python is available
if ! command -v python &> /dev/null; then
echo "❌ Python not found. Please install Python 3.13+"
exit 1
fi
# Check Python version
python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
echo "✓ Python version: $python_version"
# Check if data directory exists
if [ ! -d "data" ]; then
echo "❌ Data directory not found!"
exit 1
fi
echo "✓ Data directory found"
# Check if config exists
if [ ! -f "algorithm_config.json" ]; then
echo "❌ algorithm_config.json not found!"
exit 1
fi
echo "✓ Configuration file found"
echo ""
# Run quick test
echo "Running quick test with 1000 routes..."
echo ""
cd "$(dirname "$0")"
python src/main.py test 1000
exit_code=$?
if [ $exit_code -eq 0 ]; then
echo ""
echo "✅ Test completed successfully!"
echo "📁 Check the output/ directory for results"
else
echo ""
echo "❌ Test failed with exit code $exit_code"
fi
exit $exit_code