-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_fixes.sh
More file actions
executable file
·62 lines (51 loc) · 1.52 KB
/
test_fixes.sh
File metadata and controls
executable file
·62 lines (51 loc) · 1.52 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
#!/bin/bash
# Simple test script to verify the Linux Manager V2 fixes
cd "$(dirname "$0")"
echo "Testing Linux Manager V2 fixes..."
echo
# Test syntax errors
echo "1. Testing syntax errors..."
if bash -n bin/linux-manager-v2; then
echo " ✅ Main script syntax OK"
else
echo " ❌ Main script syntax ERROR"
exit 1
fi
if bash -n src/core/v2/module_registry.sh; then
echo " ✅ Module registry syntax OK"
else
echo " ❌ Module registry syntax ERROR"
exit 1
fi
if bash -n src/core/v2/config_manager.sh; then
echo " ✅ Config manager syntax OK"
else
echo " ❌ Config manager syntax ERROR"
exit 1
fi
if bash -n src/modules/v2/packages/manager.sh; then
echo " ✅ Packages manager syntax OK"
else
echo " ❌ Packages manager syntax ERROR"
exit 1
fi
echo
echo "2. Testing config key fixes..."
# Test that config keys don't contain dots (which cause arithmetic errors)
if grep -r "get_config.*\." src/modules/v2/ | grep -v "get_config.*\"[A-Z_]*\""; then
echo " ❌ Found config keys with dots that may cause arithmetic errors"
exit 1
else
echo " ✅ No problematic config keys with dots found"
fi
echo
echo "3. Testing show_main_menu function exists..."
if grep -q "show_main_menu()" src/core/v2/ui_system.sh; then
echo " ✅ show_main_menu function exists in V2 UI system"
else
echo " ❌ show_main_menu function missing"
exit 1
fi
echo
echo "🎉 All fixes verified successfully!"
echo "The application should now work without the previous errors."