Files
drharness/tests/test_rebase_content_header_comments.sh
hal9000 da919f9f6e Merge origin/master into work branch (issue #169)
Resolved merge conflicts:
- CMakeLists.txt: Added both rebase_engine/utility and base64_util sources
- src/harness.cpp: Combined Content type with proper error handling
- src/main.cpp: Merged includes, test flags, and CLI parsing
  - Renamed conflicting flags: -B→-Z (build_rebase), -T→-W (edit_prompt), -b→-K (base64_decode)
- tests/CMakeLists.txt: Added all test targets from both branches
- src/rebase_engine.cpp: Fixed to use get_content_string() for Content variant type
- Updated test files to use new flag names (-Z, -W, -K)
2026-06-15 22:52:29 +00:00

29 lines
751 B
Bash
Executable File

#!/bin/bash
# test_rebase_content_header_comments.sh - Test header explains pick/edit/drop commands
test_name="header_comments"
json=$(create_messages_json user "test")
OUTPUT=$("${DRHARNESS}" -Z "$json")
if ! echo "$OUTPUT" | grep -q "pick - keep the message unchanged"; then
echo "FAIL: $test_name - missing pick explanation"
echo "Got: $OUTPUT"
exit 1
fi
if ! echo "$OUTPUT" | grep -q "edit - modify the message content and/or role"; then
echo "FAIL: $test_name - missing edit explanation"
echo "Got: $OUTPUT"
exit 1
fi
if ! echo "$OUTPUT" | grep -q "drop - remove the message from history"; then
echo "FAIL: $test_name - missing drop explanation"
echo "Got: $OUTPUT"
exit 1
fi
echo "PASS: $test_name"