Skip to content

Commit 91b0bae

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b697397 commit 91b0bae

46 files changed

Lines changed: 1322 additions & 1333 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

scripts/run_enhanced_tests.sh

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,31 +50,31 @@ cd "$BUILD_DIR"
5050
# Function to build tests
5151
build_tests() {
5252
print_status "Building tests..."
53-
53+
5454
# Build system tests
5555
if make -j$(nproc) atom_system.test 2>/dev/null; then
5656
print_success "System tests built successfully"
5757
else
5858
print_warning "Failed to build system tests (may not be configured)"
5959
fi
60-
60+
6161
# Build sysinfo tests
6262
if make -j$(nproc) atom_sysinfo.test 2>/dev/null; then
6363
print_success "Sysinfo tests built successfully"
6464
else
6565
print_warning "Failed to build sysinfo tests (may not be configured)"
6666
fi
67-
67+
6868
# Build individual test targets
6969
print_status "Building individual test targets..."
70-
70+
7171
# Try to build advanced executor tests
7272
if make -j$(nproc) test_advanced_executor_individual 2>/dev/null; then
7373
print_success "Advanced executor tests built successfully"
7474
else
7575
print_warning "Advanced executor tests not built (may need configuration)"
7676
fi
77-
77+
7878
# Try to build enhanced features tests
7979
if make -j$(nproc) test_enhanced_features_test 2>/dev/null; then
8080
print_success "Enhanced features tests built successfully"
@@ -86,11 +86,11 @@ build_tests() {
8686
# Function to run tests
8787
run_tests() {
8888
print_status "Running tests..."
89-
89+
9090
local test_results=()
9191
local total_tests=0
9292
local passed_tests=0
93-
93+
9494
# Run system tests
9595
if [ -f "tests/system/atom_system.test" ]; then
9696
print_status "Running system tests..."
@@ -103,7 +103,7 @@ run_tests() {
103103
fi
104104
((total_tests++))
105105
fi
106-
106+
107107
# Run sysinfo tests
108108
if [ -f "tests/sysinfo/atom_sysinfo.test" ]; then
109109
print_status "Running sysinfo tests..."
@@ -116,7 +116,7 @@ run_tests() {
116116
fi
117117
((total_tests++))
118118
fi
119-
119+
120120
# Run individual tests if available
121121
if [ -f "tests/system/test_advanced_executor_individual" ]; then
122122
print_status "Running advanced executor tests..."
@@ -129,7 +129,7 @@ run_tests() {
129129
fi
130130
((total_tests++))
131131
fi
132-
132+
133133
# Run battery tests if available
134134
if [ -f "tests/battery_tests" ]; then
135135
print_status "Running battery tests..."
@@ -142,23 +142,23 @@ run_tests() {
142142
fi
143143
((total_tests++))
144144
fi
145-
145+
146146
# Print summary
147147
echo
148148
print_status "Test Summary:"
149149
echo "=============="
150150
echo "Total test suites: $total_tests"
151151
echo "Passed: $passed_tests"
152152
echo "Failed: $((total_tests - passed_tests))"
153-
153+
154154
if [ ${#test_results[@]} -gt 0 ]; then
155155
echo
156156
print_error "Failed tests:"
157157
for result in "${test_results[@]}"; do
158158
echo " - $result"
159159
done
160160
fi
161-
161+
162162
if [ $passed_tests -eq $total_tests ]; then
163163
print_success "All tests passed!"
164164
return 0
@@ -171,7 +171,7 @@ run_tests() {
171171
# Function to run specific test categories
172172
run_category_tests() {
173173
local category="$1"
174-
174+
175175
case "$category" in
176176
"system")
177177
print_status "Running system-specific tests..."

0 commit comments

Comments
 (0)