diff --git a/scripts/test_cli.sh b/scripts/test_cli.sh index c23e9995..a0a7bc2c 100755 --- a/scripts/test_cli.sh +++ b/scripts/test_cli.sh @@ -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!"