Did I find the right examples for you? yes no

All Samples(56)  |  Call(0)  |  Derive(29)  |  Import(27)

src/o/e/oe-core-HEAD/meta/lib/oeqa/runtime/rpm.py   oe-core(Download)
import unittest
import os
import fnmatch
from oeqa.oetest import oeRuntimeTest, skipModule
from oeqa.utils.decorators import *
class RpmBasicTest(oeRuntimeTest):
 
    @skipUnlessPassed('test_ssh')
    def test_rpm_help(self):
        (status, output) = self.target.run('rpm --help')
class RpmInstallRemoveTest(oeRuntimeTest):
 
    @classmethod
    def setUpClass(self):
        pkgarch = oeRuntimeTest.tc.d.getVar('TUNE_PKGARCH', True).replace("-", "_")

src/o/e/oe-core-HEAD/meta/lib/oeqa/runtime/syslog.py   oe-core(Download)
import unittest
from oeqa.oetest import oeRuntimeTest, skipModule
from oeqa.utils.decorators import *
 
def setUpModule():
    if not oeRuntimeTest.hasPackage("syslog"):
        skipModule("No syslog package in image")
 
class SyslogTest(oeRuntimeTest):
class SyslogTestConfig(oeRuntimeTest):
 
    @skipUnlessPassed("test_syslog_running")
    def test_syslog_logger(self):
        (status,output) = self.target.run('logger foobar && test -e /var/log/messages && grep foobar /var/log/messages || logread | grep foobar')

src/o/e/oe-core-HEAD/meta/lib/oeqa/runtime/systemd.py   oe-core(Download)
import unittest
import re
from oeqa.oetest import oeRuntimeTest, skipModule
from oeqa.utils.decorators import *
 
class SystemdTest(oeRuntimeTest):
 
    def systemctl(self, action = '', target = '', expected = 0, verbose = False):
        command = 'systemctl %s %s' % (action, target)
        status, output = self.target.run(command)

src/o/e/oe-core-HEAD/meta/lib/oeqa/runtime/xorg.py   oe-core(Download)
import unittest
from oeqa.oetest import oeRuntimeTest, skipModule
from oeqa.utils.decorators import *
 
def setUpModule():
    if not oeRuntimeTest.hasFeature("x11-base"):
            skipModule("target doesn't have x11 in IMAGE_FEATURES")
 
 
class XorgTest(oeRuntimeTest):

src/o/e/oe-core-HEAD/meta/lib/oeqa/runtime/x32lib.py   oe-core(Download)
import unittest
from oeqa.oetest import oeRuntimeTest, skipModule
from oeqa.utils.decorators import *
 
def setUpModule():
class X32libTest(oeRuntimeTest):
 
    @skipUnlessPassed("test_ssh")
    def test_x32_file(self):
        status1 = self.target.run("readelf -h /bin/ls | grep Class | grep ELF32")[0]

src/o/e/oe-core-HEAD/meta/lib/oeqa/runtime/ssh.py   oe-core(Download)
import subprocess
import unittest
import sys
from oeqa.oetest import oeRuntimeTest, skipModule
from oeqa.utils.decorators import *
class SshTest(oeRuntimeTest):
 
    @skipUnlessPassed('test_ping')
    def test_ssh(self):
        (status, output) = self.target.run('uname -a')

src/o/e/oe-core-HEAD/meta/lib/oeqa/runtime/scp.py   oe-core(Download)
import os
from oeqa.oetest import oeRuntimeTest, skipModule
from oeqa.utils.decorators import skipUnlessPassed
 
def setUpModule():
    if not (oeRuntimeTest.hasPackage("dropbear") or oeRuntimeTest.hasPackage("openssh-sshd")):
        skipModule("No ssh package in image")
 
class ScpTest(oeRuntimeTest):

src/o/e/oe-core-HEAD/meta/lib/oeqa/runtime/scanelf.py   oe-core(Download)
import unittest
from oeqa.oetest import oeRuntimeTest, skipModule
from oeqa.utils.decorators import *
 
def setUpModule():
    if not oeRuntimeTest.hasPackage("pax-utils"):
        skipModule("pax-utils package not installed")
 
class ScanelfTest(oeRuntimeTest):

src/o/e/oe-core-HEAD/meta/lib/oeqa/runtime/python.py   oe-core(Download)
import unittest
import os
from oeqa.oetest import oeRuntimeTest, skipModule
from oeqa.utils.decorators import *
 
class PythonTest(oeRuntimeTest):
 
    @classmethod
    def setUpClass(self):
        oeRuntimeTest.tc.target.copy_to(os.path.join(oeRuntimeTest.tc.filesdir, "test.py"), "/tmp/test.py")

src/o/e/oe-core-HEAD/meta/lib/oeqa/runtime/perl.py   oe-core(Download)
import unittest
import os
from oeqa.oetest import oeRuntimeTest, skipModule
from oeqa.utils.decorators import *
 
class PerlTest(oeRuntimeTest):
 
    @classmethod
    def setUpClass(self):
        oeRuntimeTest.tc.target.copy_to(os.path.join(oeRuntimeTest.tc.filesdir, "test.pl"), "/tmp/test.pl")

  1 | 2 | 3  Next