@@ -0,0 +1,1876 @@
+import os%0A%0Afrom oeqa.oetest import oeRuntimeTest%0Afrom oeqa.runtime.case import OERuntimeTestCase%0Afrom oeqa.utils.decorators import skipUnlessPassed%0A%0A%0Aclass SoftwareContainerTest(OERuntimeTestCase):%0A    def test_softwarecontainer_installed(self):%0A        (status, _) = self.target.run('rpm -qa %7C grep softwarecontainer')%0A        self.assertEqual(status, 0, %22softwarecontainer package is not installed%22)%0A%0A    @skipUnlessPassed(%22test_softwarecontainer_installed%22)%0A    def test_softwarecontainer_running(self):%0A        (status, _) = self.target.run('ps -ef %7C grep softwarecontainer-agent')%0A        self.assertEqual(status, 0, msg=%22No softwarecontainer-agent process running, ps output: %25s%22 %25%0A                         self.target.run(oeRuntimeTest.pscmd)%5B1%5D)%0A%0A    @skipUnlessPassed(%22test_softwarecontainer_running%22)%0A    def test_softwarecontainer_restart(self):%0A        (status, output) = self.target.run('systemctl restart softwarecontainer-agent')%0A        self.assertEqual(status, 0, %22Couldn't restart softwarecontainer: %25d %25s%22 %25 (status, output))%0A%0A    @skipUnlessPassed(%22test_softwarecontainer_installed%22)%0A    def test_lib_exists(self):%0A        lib_file = %22/usr/lib/libsoftwarecontainer.so.0%22%0A%0A        status = os.path.isfile(lib_file)%0A        self.assertEqual(status, 0, %22Couldn't find libsoftwarecontainer.so.0%22)%0A%0A        status = os.access(lib_file, os.R_OK)%0A        self.assertEqual(status, 0, %22Couldn't access libsoftwarecontainer.so.0%22)%0A%0A    @skipUnlessPassed(%22test_softwarecontainer_installed%22)%0A    def test_dbus_config_exists(self):%0A        dbus_config_file = %22/etc/dbus-1/system.d/softwarecontainer-agent.conf%22%0A%0A        status = os.path.isfile(dbus_config_file)%0A        self.assertEqual(status, 0, %22Couldn't find %25s%22 %25 dbus_config_file)%0A%0A        status = os.access(dbus_config_file, os.R_OK)%0A        self.assertEqual(status, 0, %22Couldn't access %25s%22 %25 dbus_config_file)%0A

add tests for softwarecontainer