Skip to contentSkip to conversation

master - python-lvm: Improve unit test case(s)

PATCH tasleson 1 participant 1 message Jul 2, 2013

lore
Share & tools
lore

tasleson

author
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=04efe869a440590d99a886cda74aaf259b8067d7
Commit:        04efe869a440590d99a886cda74aaf259b8067d7
Parent:        50db109e2068d8d5645bd4117b6022acf4b7f8ba
Author:        Tony Asleson <[email protected]>
AuthorDate:    Mon Jul 1 17:01:48 2013 -0400
Committer:     Tony Asleson <[email protected]>
CommitterDate: Tue Jul 2 14:24:34 2013 -0500

python-lvm: Improve unit test case(s)

Create/remove PV
Create/remove snapshots (old type & thin)
PV lookups based on name and UUID
PV resize

---
 test/api/pytest.sh          |    7 +-
 test/api/python_lvm_unit.py |  332 +++++++++++++++++++++++++++++++++----------
 2 files changed, 259 insertions(+), 80 deletions(-)
test/api/pytest.sh +4 -3
index ad99624..a1a3cb4 100644
@@ -13,15 +13,16 @@
 
 . lib/test
 
-aux prepare_vg 1
-lvcreate -n test -l 5 $vg
+#If you change this change the unit test case too.
+aux prepare_pvs 6
 
 #Locate the python binding library to use.
 python_lib=`find $abs_top_builddir -name lvm.so`
 if [ "$python_lib" != "" ]
 then
 	export PYTHONPATH=`dirname $python_lib`:$PYTHONPATH
-	python_lvm_unit.py
+	python_lvm_unit.py -v
+	#nemiver python ../api/python_lvm_unit.py -v -f
 else
 	echo "Unable to test python bindings as library not available"
 fi
test/api/python_lvm_unit.py +255 -77

447 lines not on this page · raw message