"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/functions.sh" between
discount-2.2.4.tar.bz2 and discount-2.2.6.tar.bz2

About: Discount is an implementation of the "Markdown" markup language (written in C).

functions.sh  (discount-2.2.4.tar.bz2):functions.sh  (discount-2.2.6.tar.bz2)
skipping to change at line 28 skipping to change at line 28
if [ $__failed -eq 0 ]; then if [ $__failed -eq 0 ]; then
./echo " OK" ./echo " OK"
else else
./echo ./echo
./echo "$1: $__tests tests; $__failed failed/$__passed passed" ./echo "$1: $__tests tests; $__failed failed/$__passed passed"
./echo ./echo
fi fi
fi fi
} }
try_header() {
testcase=`./echo -n " $1" '................................................
........' | ./cols 50`
__tests=`expr $__tests + 1`
test "$VERBOSE" && ./echo -n "$testcase"
}
try() { try() {
unset FLAGS unset FLAGS
while [ "$1" ]; do while [ "$1" ]; do
case "$1" in case "$1" in
-*) FLAGS="$FLAGS $1" -*) FLAGS="$FLAGS $1"
shift ;; shift ;;
*) break ;; *) break ;;
esac esac
done done
testcase=`./echo -n " $1" '................................................ try_header $1
........' | ./cols 50`
__tests=`expr $__tests + 1`
test "$VERBOSE" && ./echo -n "$testcase"
case "$2" in case "$2" in
-t*) Q=`./markdown $FLAGS "$2"` ;; -t*) Q=`./markdown $FLAGS "$2"` ;;
*) Q=`./echo "$2" | ./markdown $FLAGS` ;; *) Q=`./echo "$2" | ./markdown $FLAGS` ;;
esac esac
if [ "$3" = "$Q" ]; then if [ "$3" = "$Q" ]; then
__passed=`expr $__passed + 1` __passed=`expr $__passed + 1`
test $VERBOSE && ./echo " ok" test $VERBOSE && ./echo " ok"
else else
 End of changes. 2 change blocks. 
5 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)