diff options
author | Peter Portante <peter.portante@redhat.com> | 2012-12-19 00:01:13 -0500 |
---|---|---|
committer | Peter Portante <peter.portante@redhat.com> | 2013-04-29 16:35:57 -0400 |
commit | 6fa675ca6efa28705bd6f95729a883735696fc90 (patch) | |
tree | a2e3c0296268fc5e866398c97a63482a56345e5d | |
parent | ad5407e020ec88da0462f82583135d78cfe975cc (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>
-rwxr-xr-x | .unittests | 5 | ||||
-rwxr-xr-x | ufo/unittests.sh (renamed from ufo/.unittests) | 5 |
2 files changed, 3 insertions, 7 deletions
diff --git a/.unittests b/.unittests deleted file mode 100755 index ad2a3a3..0000000 --- a/.unittests +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -cd ufo -./.unittests $@ -cd - diff --git a/ufo/.unittests b/ufo/unittests.sh index 2cee10b..a02be77 100755 --- a/ufo/.unittests +++ b/ufo/unittests.sh @@ -1,6 +1,7 @@ #!/bin/bash -cd test/unit +cd $(dirname $0)/test/unit nosetests --exe --with-coverage --cover-package gluster --cover-erase $@ +saved_status=$? rm -f .coverage -cd - +exit $saved_status |