Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 0 additions & 52 deletions scripts/test_cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,56 +50,4 @@ run_test() {
# Version check
run_test "Version command" "elroy version" '^[0-9]+\.[0-9]+\.[0-9]+([-.][A-Za-z0-9]+)*$'

# Basic chat test
run_test "Basic chat" \
"echo 'This is an installation test. Repeat the following text, and only the following text: \"Hello World!\"' | elroy" \
"Hello World"

# Memory creation and recall tests
echo 'This is an installation test. The secret number is 3928' | elroy remember

run_test "Memory recall" \
"echo 'This is an installation test. What is the secret number? Respond with the secret number and only the secret number' | elroy" \
"3928"

# File-based memory tests
echo "This is an installation test. The secret number is now 2931" > test.txt
elroy remember < test.txt

echo "This is an installation test. What is the secret number? Respond with the secret number and only the secret number" > prompt.txt
run_test "File-based memory recall" \
"elroy < prompt.txt" \
"2931"

# Config tests
run_test "Configuration display" \
"elroy print-config" \
"Python Version"

run_test "Model alias resolution" \
"elroy --sonnet print-config" \
"claude.*sonnet"

# Model listing test
run_test "Model listing" \
"elroy list-models" \
"gpt-5"

# Persona tests
run_test "Default persona display" \
"elroy show-persona" \
"Elroy"

run_test "Setting custom persona" \
"elroy set-persona 'You are a helpful assistant, your name is Jimbo' && elroy show-persona" \
"Jimbo"

run_test "Resetting persona" \
"elroy reset-persona && elroy show-persona" \
"Elroy"

run_test "Executing help" \
"elroy --help" \
"Elroy"

echo "✅ All tests passed successfully!"