practracker: Wrap long lines in the test script

This commit is contained in:
teor 2020-01-14 17:24:11 +10:00
parent fa038e5617
commit b910ae8cd1
No known key found for this signature in database
GPG Key ID: 10FEAA0E7075672A

View File

@ -60,18 +60,24 @@ echo "unit tests:"
echo "ex0:"
run_practracker --exceptions "${DATA}/ex0.txt" > "${TMPDIR}/ex0-received.txt" 2>&1
run_practracker --exceptions "${DATA}/ex0.txt" \
> "${TMPDIR}/ex0-received.txt" 2>&1
compare "${TMPDIR}/ex0-received.txt" "${DATA}/ex0-expected.txt"
compare "${TMPDIR}/ex0-received.txt" \
"${DATA}/ex0-expected.txt"
echo "ex1:"
run_practracker --exceptions "${DATA}/ex1.txt" > "${TMPDIR}/ex1-received.txt" 2>&1
run_practracker --exceptions "${DATA}/ex1.txt" \
> "${TMPDIR}/ex1-received.txt" 2>&1
compare "${TMPDIR}/ex1-received.txt" "${DATA}/ex1-expected.txt"
compare "${TMPDIR}/ex1-received.txt" \
"${DATA}/ex1-expected.txt"
echo "ex1.overbroad:"
run_practracker --exceptions "${DATA}/ex1.txt" --list-overbroad > "${TMPDIR}/ex1-overbroad-received.txt" 2>&1
run_practracker --exceptions "${DATA}/ex1.txt" --list-overbroad \
> "${TMPDIR}/ex1-overbroad-received.txt" 2>&1
compare "${TMPDIR}/ex1-overbroad-received.txt" "${DATA}/ex1-overbroad-expected.txt"
compare "${TMPDIR}/ex1-overbroad-received.txt" \
"${DATA}/ex1-overbroad-expected.txt"