summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2009-11-30 19:01:31 +0000
committerDaniel P. Berrange <berrange@redhat.com>2010-01-15 16:28:05 +0000
commite8ac4a79f17b741e46980d1db8ca8815b060d39e (patch)
treeb01b037087ac7a3ee20202bff88222057b9c4417 /tests/virsh-all
parentFix compilation of virt-aa-helper.c (diff)
downloadlibvirt-e8ac4a79f17b741e46980d1db8ca8815b060d39e.tar.gz
libvirt-e8ac4a79f17b741e46980d1db8ca8815b060d39e.tar.bz2
libvirt-e8ac4a79f17b741e46980d1db8ca8815b060d39e.zip
Make test suite output less verbose
Only print out '.' for each test case, full test output can be re-enabled with VIR_TEST_VERBOSE=1, or VIR_TEST_DEBUG=XXXX Sample output now looks like TEST: statstest ........................................ 40 ................................... 75 OK PASS: statstest TEST: qparamtest ................................ 32 OK PASS: qparamtest TEST: ............ 12 OK
Diffstat (limited to 'tests/virsh-all')
-rwxr-xr-xtests/virsh-all25
1 files changed, 16 insertions, 9 deletions
diff --git a/tests/virsh-all b/tests/virsh-all
index 81b3e5751..f1eb82cd7 100755
--- a/tests/virsh-all
+++ b/tests/virsh-all
@@ -17,13 +17,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
test -z "$srcdir" && srcdir=$(pwd)
-test -z "$abs_top_srcdir" && abs_top_srcdir=$(pwd)/..
-test -z "$abs_top_builddir" && abs_top_builddir=$(pwd)/..
-
-if test "$VERBOSE" = yes; then
- set -x
- $abs_top_builddir/tools/virsh --version
-fi
. "$srcdir/test-lib.sh"
@@ -35,10 +28,24 @@ $abs_top_builddir/tools/virsh -c $test_url help > cmds || framework_failure
cmds=$(sed -n 's/^ \([^ ][^ ]*\) .*/\1/p' cmds) || framework_failure
test -n "$cmds" || framework_failure
+test_intro "virsh-all"
+
+counter=0
for i in $cmds; do
- echo testing $i... 1>&2
- # For now, just run the command and ignore output and exit status.
+ counter=`eval "expr $counter + 1"`
+
+ # For now, just run the command and ignore output
$abs_top_builddir/tools/virsh -c $test_url $i < /dev/null > /dev/null 2>&1
+ # Temporarily ignoring exit status
+ #status=$?
+ status=0
+ test_result $counter $i $status
+
+ if test "$status" = "1" ; then
+ fail=1
+ fi
done
+test_final $counter $fail
+
(exit $fail); exit $fail