Exemplo n.º 1
0
 def __init__(self):
     super().__init__()
     self.checked_subpackages = [tc.DEVEL]
     for suffix in tc.get_debug_suffixes():
         for subpkg in self.checked_subpackages.copy():
             self.checked_subpackages.append(subpkg + suffix)
     self.missing_manpages = ["jdeprscan", "jimage", "jlink", "jmod", "jshell", "jfr"]
Exemplo n.º 2
0
 def _get_binaries_as_dict(self):
     dict = {tc.DEFAULT: self.DEFAULT_BINARIES,
             tc.DEVEL: self.DEVEL_BINARIES,
             tc.HEADLESS: self.HEADLESS_BINARIES}
     for suffix in tc.get_debug_suffixes():
         for subpkg in [tc.DEFAULT, tc.DEVEL, tc.HEADLESS]:
             dict[subpkg + suffix] = dict[subpkg]
     return dict
Exemplo n.º 3
0
 def getRpmWholeName(self, pkg, arch):
     defaultrpm = "nonexistent"
     for rpm in self.getPackagesByArch(arch):
         if ns.get_subpackage_only(rpm) == "":
             defaultrpm = rpm
         for suffix in tc.get_debug_suffixes():
             if pkg in rpm and not pkg + suffix in rpm:
                 return rpm
     return defaultrpm.replace("rpms/", "")
Exemplo n.º 4
0
 def _clean_debug_subpackages(self, bins):
     devel_bins = []
     ManpageTests.instance.log("Original debug " + SDK_BINARIES + ": " + ", ".join(bins[self._get_subpackages()[3]]),
                               vc.Verbosity.TEST)
     for b in bins[self._get_subpackages()[3]]:
         if b not in bins[self._get_subpackages()[2]]:
             devel_bins.append(b)
     for suffix in tc.get_debug_suffixes():
         bins[tc.DEVEL + suffix] = copy.copy(devel_bins)
     return
 def _get_hardcoded_ghosts(self, file):
     ghosts = super(Ojdk11JIT, self)._get_hardcoded_ghosts(file)
     arch = ns.get_arch(file)
     if "headless" in file and not "info" in file:
         nvra = ns.get_nvra(file)
         archinstall = ns.get_arch_install(file)
         debugsuffix = ""
         for suffix in tc.get_debug_suffixes():
             if suffix in file:
                 debugsuffix = suffix
                 break
         if arch == "i686" or arch == "armv7hl":
             nvra = nvra.replace(arch, archinstall)
         ghosts.add("/usr/lib/jvm/" + nvra + debugsuffix +
                    "/lib/server/classes.jsa")
     return ghosts
Exemplo n.º 6
0
    def all_jre_in_sdk_check(self, args=None):
        jre_subpackages = self._get_jre_subpackage()
        sdk_subpackages = self._get_sdk_subpackage()
        self._document(
            "Jre binaries must be present in {} subpackages. Jre slaves are in {} subpackages. "
            "Sdk binaries must be present in {} subpackages. Sdk slaves are in {} "
            "subpackages. ".format(
                " and ".join(jre_subpackages + sdk_subpackages),
                " and ".join(jre_subpackages), " and ".join(sdk_subpackages),
                " and ".join(sdk_subpackages)))
        current_subpkg = ""
        for subpkg in jre_subpackages:
            for sdk_subpkg in sdk_subpackages:
                cont = False
                for suffix in tc.get_debug_suffixes():
                    try:
                        if suffix in subpkg and suffix in sdk_subpkg:
                            current_subpkg = subpkg
                            jre = self.installed_binaries[current_subpkg]
                            current_subpkg = sdk_subpkg
                            sdk = self.installed_binaries[current_subpkg]
                            break
                        elif suffix not in subpkg and suffix not in sdk_subpkg:
                            current_subpkg = sdk_subpkg
                            sdk = self.installed_binaries[current_subpkg]
                            current_subpkg = subpkg
                            jre = self.installed_binaries[current_subpkg]
                        else:
                            cont = True
                            break
                    except KeyError:
                        la.LoggingAccess().log(
                            "Subpkg " + current_subpkg +
                            " not containing binaries and is probably "
                            "missing. This is being reported in subpkg test.")
                if cont:
                    continue

                for j in jre:
                    try:
                        sdk.remove(j)
                        tu.passed_or_failed(self, True, "")
                    except ValueError:
                        tu.passed_or_failed(
                            self, False, "Binary " + j +
                            " is present in JRE, but is missing in SDK.")
        return
Exemplo n.º 7
0
 def _get_jre_subpackage(self):
     subpkgs = []
     for suffix in tc.get_debug_suffixes():
         subpkgs.extend([tc.HEADLESS + suffix])
     return super()._get_jre_subpackage() + subpkgs
Exemplo n.º 8
0
 def _policytool_slave_subpackages(self):
     subpkgs = []
     for suffix in tc.get_debug_suffixes():
         subpkgs.extend([tc.HEADLESS + suffix])
     return super()._policytool_slave_subpackages() + subpkgs
Exemplo n.º 9
0
 def _get_subpackages_with_binaries(self):
     subpkgs = []
     for suffix in tc.get_debug_suffixes():
         subpkgs.extend([tc.HEADLESS + suffix, tc.DEVEL + suffix, tc.DEFAULT + suffix])
     return super()._get_subpackages_with_binaries() + subpkgs
Exemplo n.º 10
0
 def _get_subpackages_with_binaries(self):
     subpackages = super()._get_subpackages_with_binaries()
     subpackages.remove(tc.DEFAULT)
     for suffix in tc.get_debug_suffixes():
         subpackages.remove(tc.DEFAULT + suffix)
     return subpackages
Exemplo n.º 11
0
 def _policytool_binary_subpackages(self):
     subpkgs = []
     for suffix in tc.get_debug_suffixes():
         subpkgs.extend([tc.DEVEL + suffix, tc.DEFAULT + suffix])
     return super()._policytool_binary_subpackages() + subpkgs
Exemplo n.º 12
0
 def _get_jre_subpackage(self):
     return super()._get_jre_subpackage() + [tc.HEADLESS + suffix for suffix in tc.get_debug_suffixes()]
Exemplo n.º 13
0
 def _get_sdk_subpackage(self):
     return super()._get_sdk_subpackage() + [tc.DEVEL + suffix for suffix in tc.get_debug_suffixes()]
Exemplo n.º 14
0
 def _policytool_binary_subpackages(self):
     return super()._policytool_binary_subpackages() + [tc.DEFAULT + suffix for suffix in tc.get_debug_suffixes()]
Exemplo n.º 15
0
 def _policytool_slave_subpackages(self):
     return super()._policytool_slave_subpackages() + [tc.HEADLESS + suffix for suffix in tc.get_debug_suffixes()]
Exemplo n.º 16
0
 def _extract_suffix_from_subpkg(self, subpkg):
     for suffix in tc.get_debug_suffixes():
         if suffix in subpkg:
             return suffix
     return ""
Exemplo n.º 17
0
 def _get_binary_directory_path(self, name):
     for suffix in tc.get_debug_suffixes():
         if suffix in name:
             return tc.JVM_DIR + "/" + tu.get_32bit_id_in_nvra(pkgsplit.get_nvra(name)) + suffix + tc.SDK_DIRECTORY
     return super()._get_binary_directory_path(name)
Exemplo n.º 18
0
 def _get_sdk_subpackage(self):
     subpkgs = []
     for suffix in tc.get_debug_suffixes():
         subpkgs.extend([tc.DEVEL + suffix])
     return super()._get_sdk_subpackage() + subpkgs
Exemplo n.º 19
0
 def manpages_file_debug_subpackages_doc(self, args):
     if tc.get_debug_suffixes():
         self._document(" For debug subpackages, man page file is suffixed "
                        "with {}.".format(tu.replace_archs_with_general_arch((self._get_manpage_suffixes(tc.get_debug_suffixes())),
                                                                          self._get_arch())[FILE]))
     return
Exemplo n.º 20
0
 def _get_manpage_suffixes(self, subpackage):
     for suffix in tc.get_debug_suffixes():
         if suffix in subpackage:
             return [MANPAGE_SUFFIX, "-" + self.rpms.getNvr() + "." + self._get_arch() + suffix + MANPAGE_SUFFIX]
     else:
         return super()._get_manpage_suffixes(subpackage)
Exemplo n.º 21
0
 def _get_subpackages(self):
     subpkgs = [tc.HEADLESS, tc.DEVEL]
     for suffix in tc.get_debug_suffixes():
         for subpkg in subpkgs.copy():
             subpkgs.append(subpkg + suffix)
     return subpkgs
Exemplo n.º 22
0
 def __init__(self):
     super().__init__()
     for suffix in tc.get_debug_suffixes():
         self.checked_subpackages.append(tc.DEVEL + suffix)