-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_tests.sh
More file actions
executable file
·40 lines (32 loc) · 877 Bytes
/
run_tests.sh
File metadata and controls
executable file
·40 lines (32 loc) · 877 Bytes
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
#!/bin/bash
# State of Mika SDK Test Runner
#
# This script runs the test suite for the State of Mika SDK
# Set to exit on error
set -e
echo "State of Mika SDK Test Runner"
echo "============================"
# Activate virtual environment if it exists
if [ -d "venv" ]; then
echo "Activating virtual environment..."
source venv/bin/activate
fi
# Ensure we're in the project root
if [ -d "state_of_mika" ]; then
echo "Running tests from project root..."
else
echo "Error: Please run this script from the project root directory."
exit 1
fi
# Make sure the tests directory exists
if [ ! -d "tests" ]; then
echo "Creating tests directory..."
mkdir -p tests
fi
# Make the test script executable
chmod +x tests/run_tests.py
# Run the tests
echo "Running test suite..."
python tests/run_tests.py
# Exit with success
echo "Test runner completed."