Permalink
Browse files

Tests now produce *some* output.

It's mainly a confidence thing for me. I don't trust my cobbled-
together tree of scripts enough to really believe it when it says
"All tests passed". So now, all input to the assert() function is
displayed on stderr as well.

Now I trust the results of my tests.
  • Loading branch information...
1 parent be7cf05 commit bdeb15edfa791f6c0c1cb2a89eaf6967c1c427d2 @willdonnelly committed Sep 12, 2009
Showing with 3 additions and 0 deletions.
  1. +1 −0 Tests/basic/runTest.sh
  2. +1 −0 Tests/config-check/runTest.sh
  3. +1 −0 Tests/recompile-relaunch/runTest.sh
View
@@ -8,6 +8,7 @@
# Assert the equality of two strings.
function assert() {
+ echo "$1" >&2
if [ "$1" != "$2" ]; then
echo "Failed test $3";
exit 1;
@@ -5,6 +5,7 @@
# Assert the equality of two strings.
function assert() {
+ echo "$1" >&2
if [ "$1" != "$2" ]; then
echo "Failed test $3";
exit 1;
@@ -5,6 +5,7 @@
# Assert the equality of two strings.
function assert() {
+ echo "$1" >&2
if [ "$1" != "$2" ]; then
echo "Failed test $3";
exit 1;

0 comments on commit bdeb15e

Please sign in to comment.