def setUpModule(): if not oeRuntimeTest.hasFeature("package-management"): skipModule( "rpm module skipped: target doesn't have package-management in IMAGE_FEATURES" ) if "package_rpm" != oeRuntimeTest.tc.d.getVar("PACKAGE_CLASSES", True).split()[0]: skipModule( "rpm module skipped: target doesn't have rpm as primary package manager" )
def setUpModule(): if not oeRuntimeTest.hasFeature("package-management"): skipModule("Image doesn't have package management feature") if not oeRuntimeTest.hasPackage("smart"): skipModule("Image doesn't have smart installed") if "package_rpm" != oeRuntimeTest.tc.d.getVar("PACKAGE_CLASSES", True).split()[0]: skipModule("Rpm is not the primary package manager")
def setUpModule(): if not oeSDKTest.hasPackage("gtk\+"): skipModule("Image doesn't have gtk+ in manifest")
def setUpModule(): if not oeRuntimeTest.hasFeature("package-management"): skipModule("rpm module skipped: target doesn't have package-management in IMAGE_FEATURES") if "package_rpm" != oeRuntimeTest.tc.d.getVar("PACKAGE_CLASSES").split()[0]: skipModule("rpm module skipped: target doesn't have rpm as primary package manager")
def setUpModule(): if not oeRuntimeTest.hasFeature("x11-base"): skipModule("target doesn't have x11 in IMAGE_FEATURES")
def setUpModule(): multilibs = oeRuntimeTest.tc.d.getVar("MULTILIBS", True) or "" if "multilib:lib32" not in multilibs: skipModule("this isn't a multilib:lib32 image")
def setUpModule(): if not oeRuntimeTest.hasPackage("connman"): skipModule("No connman package in image")
def setUpModule(): if not oeRuntimeTest.hasPackage("service"): skipModule("No service package in image")
def setUpModule(): if not (oeRuntimeTest.hasPackage("busybox-syslog") or oeRuntimeTest.hasPackage("sysklogd")): skipModule("No syslog package in image")
def setUpModule(): if not oeRuntimeTest.hasFeature('smack'): skipModule("smack module skipped: " "target doesn't have smack in DISTRO_FEATURES")
def setUpModule(): #check if DEFAULTTUNE is set and it's value is: x86-64-x32 defaulttune = oeRuntimeTest.tc.d.getVar("DEFAULTTUNE") if "x86-64-x32" not in defaulttune: skipModule("DEFAULTTUNE is not set to x86-64-x32")
def setUpModule(): if not oeRuntimeTest.hasPackage("pax-utils"): skipModule("pax-utils package not installed")
def setUpModule(): if not oeRuntimeTest.hasPackage('security-manager'): skipModule( "security-manager module skipped: " "target doesn't have security-manager installed")
def setUpModule(): if not oeSDKTest.hasHostPackage("nativesdk-python"): skipModule("No python package in the SDK")
def setUpModule(): if not oeRuntimeTest.hasPackage("perl"): skipModule("No perl package in the image")
def setUpModule(): if not (oeSDKTest.hasPackage("gtk+3") or oeSDKTest.hasPackage("libgtk-3.0")): skipModule("Image doesn't have gtk+3 in manifest")
def setUpModule(): if not oeRuntimeTest.hasFeature("tools-sdk"): skipModule("Image doesn't have tools-sdk in IMAGE_FEATURES")
def setUpModule(): if not oeRuntimeTest.hasPackage("syslog"): skipModule("No syslog package in image")
def setUpModule(): machine = oeSDKTest.tc.d.getVar("MACHINE", True) if not oeSDKTest.hasHostPackage("packagegroup-cross-canadian-" + machine): skipModule("SDK doesn't contain a cross-canadian toolchain")
def setUpModule(): if not oeRuntimeTest.hasPackage("python-core"): skipModule("No python package in the image")
def setUpModule(): if not (oeRuntimeTest.hasPackage("dropbear") or oeRuntimeTest.hasPackage("openssh-sshd")): skipModule("No ssh package in image")
def setUpModule(): if not oeRuntimeTest.hasPackage("logrotate"): skipModule("No logrotate package in image")
def setUpModule(): if not oeRuntimeTest.hasFeature("pam"): skipModule("target doesn't have 'pam' in DISTRO_FEATURES")
def setUpModule(): #check if DEFAULTTUNE is set and it's value is: x86-64-x32 defaulttune = oeRuntimeTest.tc.d.getVar("DEFAULTTUNE", True) if "x86-64-x32" not in defaulttune: skipModule("DEFAULTTUNE is not set to x86-64-x32")
def setUpModule(): if not oeRuntimeTest.hasPackage("python"): skipModule("No python package in the image")
def setUpModule(): if not oeRuntimeTest.hasFeature('smack'): skipModule( "smack module skipped: " "target doesn't have smack in DISTRO_FEATURES")
def setUpModule(): if not oeRuntimeTest.hasFeature('flatpak'): skipModule("flatpak not enabled, tests skipped")
def setUpModule(): if not oeRuntimeTest.hasFeature("systemd"): skipModule("target doesn't have systemd in DISTRO_FEATURES") if "systemd" != oeRuntimeTest.tc.d.getVar("VIRTUAL-RUNTIME_init_manager"): skipModule("systemd is not the init manager for this image")
def setUpModule(): if not oeRuntimeTest.hasPackage('security-manager'): skipModule("security-manager module skipped: " "target doesn't have security-manager installed")
def setUpModule(): if not oeSDKTest.hasPackage("gtk+"): skipModule("Image doesn't have gtk+ in manifest")