svn commit: r185251 - head/tools/regression/fstest/tests
Pawel Jakub Dawidek
pjd at FreeBSD.org
Mon Nov 24 08:32:39 PST 2008
Author: pjd
Date: Mon Nov 24 16:32:39 2008
New Revision: 185251
URL: http://svn.freebsd.org/changeset/base/185251
Log:
Include TODO messages even if tests succeeds, so we can detect when something
suddenly started to work.
Modified:
head/tools/regression/fstest/tests/misc.sh
Modified: head/tools/regression/fstest/tests/misc.sh
==============================================================================
--- head/tools/regression/fstest/tests/misc.sh Mon Nov 24 11:23:14 2008 (r185250)
+++ head/tools/regression/fstest/tests/misc.sh Mon Nov 24 16:32:39 2008 (r185251)
@@ -25,15 +25,19 @@ expect()
r=`${fstest} $* 2>/dev/null | tail -1`
echo "${r}" | egrep '^'${e}'$' >/dev/null 2>&1
if [ $? -eq 0 ]; then
- echo "ok ${ntest}"
+ if [ -z "${todomsg}" ]; then
+ echo "ok ${ntest}"
+ else
+ echo "ok ${ntest} # TODO ${todomsg}"
+ fi
else
if [ -z "${todomsg}" ]; then
echo "not ok ${ntest} - tried '$*', expected ${e}, got ${r}"
else
echo "not ok ${ntest} # TODO ${todomsg}"
- todomsg=""
fi
fi
+ todomsg=""
ntest=`expr $ntest + 1`
}
@@ -46,30 +50,38 @@ jexpect()
r=`jail -s ${s} / fstest 127.0.0.1 /bin/sh -c "cd ${d} && ${fstest} $* 2>/dev/null" | tail -1`
echo "${r}" | egrep '^'${e}'$' >/dev/null 2>&1
if [ $? -eq 0 ]; then
- echo "ok ${ntest}"
+ if [ -z "${todomsg}" ]; then
+ echo "ok ${ntest}"
+ else
+ echo "ok ${ntest} # TODO ${todomsg}"
+ fi
else
if [ -z "${todomsg}" ]; then
echo "not ok ${ntest} - tried '$*', expected ${e}, got ${r}"
else
echo "not ok ${ntest} # TODO ${todomsg}"
- todomsg=""
fi
fi
+ todomsg=""
ntest=`expr $ntest + 1`
}
test_check()
{
if [ $* ]; then
- echo "ok ${ntest}"
+ if [ -z "${todomsg}" ]; then
+ echo "ok ${ntest}"
+ else
+ echo "ok ${ntest} # TODO ${todomsg}"
+ fi
else
if [ -z "${todomsg}" ]; then
echo "not ok ${ntest}"
else
echo "not ok ${ntest} # TODO ${todomsg}"
- todomsg=""
fi
fi
+ todomsg=""
ntest=`expr $ntest + 1`
}
More information about the svn-src-head
mailing list