-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-ai-v3.sh
More file actions
executable file
·89 lines (80 loc) · 3.03 KB
/
test-ai-v3.sh
File metadata and controls
executable file
·89 lines (80 loc) · 3.03 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#!/bin/bash
#
# NullSec AI v3.0 Test Suite v1.1
# Test NULLSEC AI v3.0
# Repository: https://github.com/bad-antics/nullsec
#
echo "═══════════════════════════════════════════════════════════════════════"
echo " NULLSEC AI v3.0 - COMPREHENSIVE TEST"
echo "═══════════════════════════════════════════════════════════════════════"
echo ""
# Test 1: File exists
if [ -f "nullsec-ai.py" ]; then
echo "✓ nullsec-ai.py exists"
else
echo "✗ nullsec-ai.py missing"
exit 1
fi
# Test 2: Executable
if [ -x "nullsec-ai.py" ]; then
echo "✓ nullsec-ai.py is executable"
else
echo "✗ nullsec-ai.py not executable"
chmod +x nullsec-ai.py
echo " → Made executable"
fi
# Test 3: Python syntax
if python3 -m py_compile nullsec-ai.py 2>/dev/null; then
echo "✓ Python syntax valid"
else
echo "✗ Python syntax error"
exit 1
fi
# Test 4: Can import
if python3 -c "import sys; sys.path.insert(0, '.'); exec(open('nullsec-ai.py').read().split('if __name__')[0])" 2>/dev/null; then
echo "✓ Module imports successfully"
else
echo "⚠ Import test skipped (dependencies may be missing)"
fi
# Test 5: Installation script exists
if [ -f "install-ai.sh" ]; then
echo "✓ install-ai.sh exists"
else
echo "✗ install-ai.sh missing"
fi
# Test 6: Documentation exists
if [ -f "NULLSEC_AI_V3_GUIDE.md" ]; then
echo "✓ Documentation exists"
else
echo "✗ Documentation missing"
fi
# Test 7: Backup of old version
if [ -f "nullsec-ai-v2.py" ]; then
echo "✓ v2 backup exists"
else
echo "⚠ v2 backup not found (may not be needed)"
fi
echo ""
echo "═══════════════════════════════════════════════════════════════════════"
echo " TEST SUMMARY"
echo "═══════════════════════════════════════════════════════════════════════"
echo ""
echo "Core Files:"
echo " • nullsec-ai.py - Main AI script"
echo " • install-ai.sh - Installation wizard"
echo " • NULLSEC_AI_V3_GUIDE.md - User guide"
echo ""
echo "Features:"
echo " ✓ NO API keys required"
echo " ✓ Works 100% offline"
echo " ✓ 10+ AI models supported"
echo " ✓ Rule-based expert system fallback"
echo " ✓ Knowledge base with SQLite"
echo ""
echo "To use:"
echo " python3 nullsec-ai.py"
echo ""
echo "To install AI models:"
echo " bash install-ai.sh"
echo ""
echo "═══════════════════════════════════════════════════════════════════════"