[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 05/26: [tests]: Recast check descriptions for clarity.
From: |
G. Branden Robinson |
Subject: |
[groff] 05/26: [tests]: Recast check descriptions for clarity. |
Date: |
Sun, 15 May 2022 05:07:52 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 1cd7b5e1a117bfc29bd1c1f138e7613b67eb31d7
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Thu May 5 11:11:28 2022 -0500
[tests]: Recast check descriptions for clarity.
---
.../refer/tests/report-correct-line-numbers.sh | 23 +++++++++++++---------
1 file changed, 14 insertions(+), 9 deletions(-)
diff --git a/src/preproc/refer/tests/report-correct-line-numbers.sh
b/src/preproc/refer/tests/report-correct-line-numbers.sh
index 3d85aa0e..b952fc54 100755
--- a/src/preproc/refer/tests/report-correct-line-numbers.sh
+++ b/src/preproc/refer/tests/report-correct-line-numbers.sh
@@ -69,40 +69,45 @@ output=$(echo "$input" | "$refer" -e -p
"$artifact_dir"/62124.ref \
# thing to do. If a test failure occurs, ensure the diagnostic message
# text hasn't changed before assuming a deeper logic problem.
-echo "checking detection of invalid character on line 1"
+echo "checking line number of invalid character on bibliography line 1"
count=$(echo "$output" | grep -c "refer:.*/62124.ref:1:.*code 129")
test $count -eq 2 || wail
-echo "checking detection of first invalid character on line 2"
+echo "checking line number of first invalid character on bibliography" \
+ "line 2"
count=$(echo "$output" | grep -c "refer:.*/62124.ref:2:.*code 136")
test $count -eq 2 || wail
-echo "checking detection of second invalid character on line 2"
+echo "checking line number of second invalid character on" \
+ "bibliography line 2"
count=$(echo "$output" | grep -c "refer:.*/62124.ref:2:.*code 137")
test $count -eq 2 || wail
-echo "checking detection of first invalid character on line 3"
+echo "checking line number of first invalid character on" \
+ "bibliography line 3"
count=$(echo "$output" | grep -c "refer:.*/62124.ref:3:.*code 136")
test $count -eq 2 || wail
-echo "checking detection of second invalid character on line 3"
+echo "checking line number of second invalid character on" \
+ "bibliography line 3"
count=$(echo "$output" | grep -c "refer:.*/62124.ref:3:.*code 137")
test $count -eq 2 || wail
# Problems with the input file should also be accurately located.
-echo "checking detection of 1st invalid refer(1) command in input file"
+echo "checking line number of invalid refer(1) command on input line 4"
+echo "$output"
echo "$output" | grep -q "refer:.*:4:.*unknown command" || wail
-echo "checking detection of 2nd invalid refer(1) command in input file"
+echo "checking line number of invalid refer(1) command on input line 9"
+echo "$output"
echo "$output" | grep -q "refer:.*:9:.*unknown command" || wail
# Regression-test Savannah #62391.
output=$(printf '\0201\n' | "$refer" 2>&1 >/dev/null)
-echo "checking detection of invalid input character on first line of" \
- "input file"
+echo "checking line number of invalid input character on input line 1"
echo "$output" | grep -q "refer:.*:1:.*invalid input character" \
|| wail
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 05/26: [tests]: Recast check descriptions for clarity.,
G. Branden Robinson <=