Hey Shu,
Personally when I run specific unit test I prefer to run it without installing 
vdsm package, means locally from my development directory.
I develop on my major machine and install the package on testing environments 
for verification, so during the development if I write some uts, I want to be 
able to run them fast and easy and continue. Using installed vdsm is more for 
functional tests in my opinion.

By the way, currently the tests can run both in installed and uninstalled 
environment.. and I agree about the trickiness of hackVDSM

Maybe running only after install is better practice but I'm not sure, we need 
more opinions about that issue..

----- Original Message -----
From: "Shu Ming" <shum...@linux.vnet.ibm.com>
To: "VDSM Project Development" <vdsm-devel@lists.fedorahosted.org>
Sent: Thursday, March 7, 2013 8:18:35 AM
Subject: [vdsm] VDSM test unit running path


Now, The VDSM test unit is expected to run in a un-installed enviornment
and use hackVDSM() to fake modules importing. hackVDSM() is pretty
tricky for other modules to be added because of the dependency order. I
would propose to run the VDSM unit tests in a installed VDSM path which
is the same path as other VDSM runnable binaries. By this way, we can
abandon hackVDSM() and run the unit test normally. On the other hand,
the VDSM building script installs the VDSM files to <home>/builder by
default, it is reasonable to start the VDSM unit test after all parts of
the building script finishes. Any comments about this idea?

舒明 Shu Ming
Open Virtualization Engineerning; CSTL, IBM Corp.
Tel: 86-10-82451626  Tieline: 9051626 E-mail: shum...@cn.ibm.com or 
Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District, 
Beijing 100193, PRC

vdsm-devel mailing list
vdsm-devel mailing list

Reply via email to