1*4882a593Smuzhiyunfrom oeqa.runtime.case import OERuntimeTestCase 2*4882a593Smuzhiyunfrom oeqa.core.decorator.depends import OETestDepends 3*4882a593Smuzhiyun 4*4882a593Smuzhiyunclass Selftest(OERuntimeTestCase): 5*4882a593Smuzhiyun 6*4882a593Smuzhiyun @OETestDepends(['ssh.SSHTest.test_ssh']) 7*4882a593Smuzhiyun def test_install_package(self): 8*4882a593Smuzhiyun """ 9*4882a593Smuzhiyun Summary: Check basic package installation functionality. 10*4882a593Smuzhiyun Expected: 1. Before the test socat must be installed using scp. 11*4882a593Smuzhiyun 2. After the test socat must be uninstalled using ssh. 12*4882a593Smuzhiyun This can't be checked in this test. 13*4882a593Smuzhiyun Product: oe-core 14*4882a593Smuzhiyun Author: Mariano Lopez <mariano.lopez@intel.com> 15*4882a593Smuzhiyun """ 16*4882a593Smuzhiyun 17*4882a593Smuzhiyun (status, output) = self.target.run("socat -V") 18*4882a593Smuzhiyun self.assertEqual(status, 0, msg="socat is not installed") 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun @OETestDepends(['selftest.Selftest.test_install_package']) 21*4882a593Smuzhiyun def test_verify_uninstall(self): 22*4882a593Smuzhiyun """ 23*4882a593Smuzhiyun Summary: Check basic package installation functionality. 24*4882a593Smuzhiyun Expected: 1. test_install_package must uninstall socat. 25*4882a593Smuzhiyun This test is just to verify that. 26*4882a593Smuzhiyun Product: oe-core 27*4882a593Smuzhiyun Author: Mariano Lopez <mariano.lopez@intel.com> 28*4882a593Smuzhiyun """ 29*4882a593Smuzhiyun 30*4882a593Smuzhiyun (status, output) = self.target.run("socat -V") 31*4882a593Smuzhiyun self.assertNotEqual(status, 0, msg="socat is still installed") 32