Format pacsort and vercmp testsuite output

Make the output into a single block and add separators at the end
so that they do not merge into each other.

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Allan McRae 2011-10-07 16:40:43 +10:00 committed by Dan McGee
parent 9168977b3b
commit cc13f47532
2 changed files with 8 additions and 4 deletions

View file

@ -40,10 +40,11 @@ runtest() {
if ! type -p "$bin"; then if ! type -p "$bin"; then
echo "pacsort binary ($bin) could not be located" echo "pacsort binary ($bin) could not be located"
echo
exit 1 exit 1
fi fi
echo "Beginning pacsort tests" echo "Running pacsort tests..."
# BEGIN TESTS # BEGIN TESTS
@ -93,11 +94,12 @@ runtest "$separator" "$separator_reverse" "really long input, sort key, separato
#END TESTS #END TESTS
echo
if [[ $failure -eq 0 ]]; then if [[ $failure -eq 0 ]]; then
echo "All $total tests successful" echo "All $total tests successful"
echo
exit 0 exit 0
fi fi
echo "$failure of $total tests failed" echo "$failure of $total tests failed"
echo
exit 1 exit 1

View file

@ -64,10 +64,11 @@ runtest() {
if ! type -p "$bin"; then if ! type -p "$bin"; then
echo "vercmp binary ($bin) could not be located" echo "vercmp binary ($bin) could not be located"
echo
exit 1 exit 1
fi fi
echo "Beginning vercmp tests" echo "Running vercmp tests..."
# BEGIN TESTS # BEGIN TESTS
@ -145,11 +146,12 @@ runtest 1:1.1 1.1 1
#END TESTS #END TESTS
echo
if [[ $failure -eq 0 ]]; then if [[ $failure -eq 0 ]]; then
echo "All $total tests successful" echo "All $total tests successful"
echo
exit 0 exit 0
fi fi
echo "$failure of $total tests failed" echo "$failure of $total tests failed"
echo
exit 1 exit 1