mirror of
https://github.com/Orc/discount.git
synced 2026-09-25 04:10:00 +03:00
which gives me the ability to do verbose and nonverbose test suite running (`VERBOSE=1 make test` is the traditional output now, and `make test` just gives pass/fail on each .t file)
49 lines
481 B
Perl
49 lines
481 B
Perl
. tests/functions.sh
|
|
|
|
rc=0
|
|
unset MARKDOWN_FLAGS
|
|
unset MKD_TABSTOP
|
|
|
|
eval `./markdown -V | tr ' ' '\n' | grep TAB`
|
|
|
|
if [ "${TAB:-4}" -eq 8 ]; then
|
|
title "dealing with tabstop derangement"
|
|
|
|
LIST='
|
|
* A
|
|
* B
|
|
* C'
|
|
|
|
try 'markdown with TAB=8' \
|
|
"$LIST" \
|
|
'<ul>
|
|
<li>A
|
|
|
|
<ul>
|
|
<li>B
|
|
|
|
<ul>
|
|
<li>C</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>'
|
|
|
|
try -F0x0200 'markdown with TAB=4' \
|
|
"$LIST" \
|
|
'<ul>
|
|
<li>A
|
|
|
|
<ul>
|
|
<li>B</li>
|
|
<li>C</li>
|
|
</ul>
|
|
</li>
|
|
</ul>'
|
|
|
|
fi
|
|
|
|
summary $0
|
|
exit $rc
|