forked from sourcegit-scm/sourcegit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_tests.sh
More file actions
executable file
·49 lines (43 loc) · 1.13 KB
/
run_tests.sh
File metadata and controls
executable file
·49 lines (43 loc) · 1.13 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
#!/bin/bash
# Test runner script for SourceGit
echo "========================================"
echo "SourceGit Test Suite"
echo "========================================"
echo ""
# Build in Debug mode
echo "Building Debug configuration..."
dotnet build -c Debug --verbosity quiet
if [ $? -ne 0 ]; then
echo "❌ Debug build failed!"
exit 1
fi
echo "✅ Debug build succeeded"
echo ""
# Run tests in Debug mode
echo "Running tests (Debug)..."
dotnet test -c Debug --no-build --verbosity minimal
if [ $? -ne 0 ]; then
echo "❌ Debug tests failed!"
exit 1
fi
echo ""
# Build in Release mode
echo "Building Release configuration..."
dotnet build -c Release --verbosity quiet
if [ $? -ne 0 ]; then
echo "❌ Release build failed!"
exit 1
fi
echo "✅ Release build succeeded"
echo ""
# Run tests in Release mode
echo "Running tests (Release)..."
dotnet test -c Release --no-build --verbosity minimal
if [ $? -ne 0 ]; then
echo "❌ Release tests failed!"
exit 1
fi
echo ""
echo "========================================"
echo "✅ All builds and tests passed successfully!"
echo "========================================"