-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_commands.py
More file actions
49 lines (39 loc) · 1.18 KB
/
test_commands.py
File metadata and controls
49 lines (39 loc) · 1.18 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
"""
Quick test script to verify Vecna fixes
"""
import sys
import os
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
from vecna import CommandProcessor, SystemController, SpeechEngine, Memory, Intelligence
def test_commands():
print("Testing Vecna command processing...")
# Initialize components
speech_engine = SpeechEngine()
system = SystemController()
memory = Memory()
intelligence = Intelligence(memory)
# Create command processor
processor = CommandProcessor(speech_engine, system, memory, intelligence)
# Test commands
test_cases = [
"take screenshot",
"what time is it",
"system info",
"screenshot",
"time",
"joke",
"volume up",
"volume down"
]
print("\nTesting commands:")
print("=" * 50)
for command in test_cases:
try:
response, action = processor.process_command(command)
print(f"✓ '{command}' -> {response}")
except Exception as e:
print(f"✗ '{command}' -> ERROR: {e}")
print("\n" + "=" * 50)
print("Test complete!")
if __name__ == "__main__":
test_commands()