18 lines
351 B
Bash
Executable File
18 lines
351 B
Bash
Executable File
#!/bin/bash
|
|
# test_rebase_parser_only_comments.sh - Only comments produces 0 lines
|
|
|
|
test_name="only_comments"
|
|
|
|
content="# comment 1
|
|
# comment 2"
|
|
|
|
OUTPUT=$("${DRHARNESS}" -z 3 "$content")
|
|
|
|
count=$(rebase_line_count "$OUTPUT")
|
|
if [ "$count" -ne 0 ]; then
|
|
echo "FAIL: $test_name - expected 0 lines, got $count"
|
|
exit 1
|
|
fi
|
|
|
|
echo "PASS: $test_name"
|