From: Thierry Parmentelat Date: Tue, 19 Oct 2010 14:02:01 +0000 (+0300) Subject: tentatively run SFA unittests X-Git-Tag: tests-5.0-20~7 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=a11e0aa161368bf9422e814811e9e84849fbef8c;p=tests.git tentatively run SFA unittests --- diff --git a/system/TestPlc.py b/system/TestPlc.py index 8e947b9..a48e4f6 100644 --- a/system/TestPlc.py +++ b/system/TestPlc.py @@ -94,6 +94,7 @@ class TestPlc: 'install_sfa', 'configure_sfa', 'cross_configure_sfa', 'import_sfa', 'start_sfa', SEPSFA, 'configure_sfi@1', 'add_user_sfa@1', 'add_sfa@1', 'create_sfa@1', SEPSFA, 'update_user_sfa@1', 'update_sfa@1', 'view_sfa@1', SEPSFA, + 'install_unittest_sfa','unittest_sfa',SEPSFA, # we used to run plcsh_stress_test, and then nodes_ssh_debug and nodes_ssh_boot # but as the stress test might take a while, we sometimes missed the debug mode.. 'nodes_ssh_debug', 'plcsh_stress_test@1', SEP, @@ -1100,6 +1101,17 @@ class TestPlc: self.run_in_guest("rpm -e --noscripts sfa-plc") return True + ### install_sfa_rpm + def install_unittest_sfa(self): + "yum install sfa-tests" + # ignore yum retcod + self.run_in_guest("yum -y install sfa-tests") + return self.run_in_guest("rpm -q sfa-tests")==0 + + def unittest_sfa(self): + "run SFA unittests" + return self.run_in_guest("/usr/share/sfa/tests/testAll.py")==0 + ### def confdir(self): dirname="conf.%s"%self.plc_spec['name']