summaryrefslogtreecommitdiffstats
path: root/ufo/unittests.sh
diff options
context:
space:
mode:
authorPeter Portante <peter.portante@redhat.com>2012-12-19 00:01:13 -0500
committerAnand Avati <avati@redhat.com>2013-01-17 00:08:44 -0800
commit8b87819b9f374f78d13746878d6ed7a260a8ae9a (patch)
tree78789825063cb34c9900f856b69ade9fe8af7b7e /ufo/unittests.sh
parentcea939a5b11bd035f87232e0f3178d832dcbdf1f (diff)
object-storage: add UFO unit tests
Run the UFO unit tests following the main GlusterFS unit tests. The UFO unit tests run under the Nose unit test running harness, requiring the python-nose package to be installed. These unit tests run fast enough that we could even consider running them on a commit hook run by rfc.sh. Note that they are not functional tests, as they don't require a real Gluster file system to run. Change-Id: I55972890c24be16fc588a6950cb6bfd539287bbe Signed-off-by: Peter Portante <peter.portante@redhat.com> Reviewed-on: http://review.gluster.org/4333 Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Reviewed-by: Anand Avati <avati@redhat.com> Tested-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'ufo/unittests.sh')
-rwxr-xr-xufo/unittests.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/ufo/unittests.sh b/ufo/unittests.sh
new file mode 100755
index 00000000000..a02be77966f
--- /dev/null
+++ b/ufo/unittests.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+cd $(dirname $0)/test/unit
+nosetests --exe --with-coverage --cover-package gluster --cover-erase $@
+saved_status=$?
+rm -f .coverage
+exit $saved_status