-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun_all_tests.sh
More file actions
executable file
·64 lines (56 loc) · 1.65 KB
/
run_all_tests.sh
File metadata and controls
executable file
·64 lines (56 loc) · 1.65 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
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash
# SQL CLI Complete Test Suite Runner
# Runs both Rust and Python tests
set -e # Exit on error
echo "========================================="
echo "SQL CLI Complete Test Suite"
echo "========================================="
echo ""
# Track overall success
all_passed=true
# Run Rust tests
echo "1. Running Rust tests..."
echo "-----------------------------------------"
if cargo test --quiet; then
echo "✅ Rust tests passed"
else
echo "❌ Rust tests failed"
all_passed=false
fi
echo ""
# Run Python tests
echo "2. Running Python tests..."
echo "-----------------------------------------"
if ./run_python_tests.sh > /tmp/python_test_output.txt 2>&1; then
tail -5 /tmp/python_test_output.txt
echo "✅ Python tests passed"
else
cat /tmp/python_test_output.txt
echo "❌ Python tests failed"
all_passed=false
fi
echo ""
# Run SQL example tests (Python-based with formal/smoke test modes)
echo "3. Running SQL example tests..."
echo "-----------------------------------------"
if uv run python tests/integration/test_examples.py > /tmp/example_test_output.txt 2>&1; then
# Show summary (last 10 lines include test counts and results)
tail -10 /tmp/example_test_output.txt
echo "✅ SQL example tests passed"
else
cat /tmp/example_test_output.txt
echo "❌ SQL example tests failed"
all_passed=false
fi
echo ""
# Summary
echo "========================================="
echo "Test Summary"
echo "========================================="
if [ "$all_passed" = true ]; then
echo "✅ All tests passed successfully!"
exit 0
else
echo "❌ Some tests failed. Please review the output above."
exit 1
fi