|
4 | 4 | set -e # Exit on any error |
5 | 5 |
|
6 | 6 | # Create directories for logs |
7 | | -mkdir -p logs |
| 7 | +# mkdir -p logs |
8 | 8 |
|
| 9 | +echo "================================================" |
9 | 10 | echo "Running basic command tests..." |
| 11 | +echo "================================================" |
10 | 12 |
|
11 | | -# Test version command |
| 13 | +echo "================================================" |
12 | 14 | echo "Testing version command..." |
13 | | -code-agent --version |
| 15 | +echo "================================================" |
| 16 | +uv run code-agent --version |
14 | 17 |
|
15 | | -# Test basic run command |
16 | | -echo "Testing basic run command..." |
17 | | -code-agent run "What is your name?" |
| 18 | +# echo "================================================" |
| 19 | +# echo "Testing config command..." |
| 20 | +# echo "================================================" |
| 21 | +# uv run code-agent config show |
18 | 22 |
|
19 | | -# Test config command |
20 | | -echo "Testing config command..." |
21 | | -code-agent config show |
22 | | - |
23 | | -# Test memory integration |
| 23 | +echo "================================================" |
24 | 24 | echo "Testing memory integration..." |
25 | | -python tests/integration/test_memory_integration.py |
| 25 | +echo "================================================" |
| 26 | +uv run python tests/integration/test_memory_integration.py |
| 27 | + |
| 28 | +echo "================================================" |
| 29 | +echo "Testing basic chat command with CLI..." |
| 30 | +echo "================================================" |
| 31 | +echo 'What is your name?' | uv run code-agent chat |
| 32 | + |
| 33 | +echo "================================================" |
| 34 | +echo "Testing basic chat command with ADK..." |
| 35 | +echo "================================================" |
| 36 | +echo 'What is your name?\exit' | uv run adk run code_agent/agent/software_engineer/software_engineer || true |
| 37 | +# echo 'What is your name?\nexit' | uvx --from git+https://github.com/google/adk-python.git@main adk run code_agent/agent/software_engineer/software_engineer |
| 38 | + |
| 39 | +echo "================================================" |
| 40 | +echo "Testing file creation command with ADK..." |
| 41 | +echo "================================================" |
| 42 | +echo "Can you create a file called test.txt and write 'Hello, world!' to it? I approve the the shell command.\nexit" | uv run adk run code_agent/agent/software_engineer/software_engineer || true |
| 43 | + |
| 44 | +echo "================================================" |
| 45 | +echo "Testing file deletion command with ADK..." |
| 46 | +echo "================================================" |
| 47 | +echo "Delete the file called test.txt? I approve the the shell command.\nexit" | uv run adk run code_agent/agent/software_engineer/software_engineer || true |
| 48 | + |
26 | 49 |
|
27 | 50 | echo "All end-to-end tests completed successfully!" |
0 commit comments