Example #1
0
    def test_signatures(self):
        if self.tc.layer['type'] == LayerType.SOFTWARE and \
           not self.tc.test_software_layer_signatures:
            raise unittest.SkipTest("Not testing for signature changes in a software layer %s." \
                     % self.tc.layer['name'])

        curr_sigs, _ = get_signatures(self.td['builddir'], failsafe=True)
        msg = compare_signatures(self.td['sigs'], curr_sigs)
        if msg is not None:
            self.fail('Adding layer %s changed signatures.\n%s' % (self.tc.layer['name'], msg))
Example #2
0
    def test_signatures(self):
        if self.tc.layer['type'] == LayerType.SOFTWARE and \
           not self.tc.test_software_layer_signatures:
            raise unittest.SkipTest("Not testing for signature changes in a software layer %s." \
                     % self.tc.layer['name'])

        curr_sigs, _ = get_signatures(self.td['builddir'], failsafe=True)
        msg = compare_signatures(self.td['sigs'], curr_sigs)
        if msg is not None:
            self.fail('Adding layer %s changed signatures.\n%s' %
                      (self.tc.layer['name'], msg))
Example #3
0
    def test_refkit_conf_signature(self):
        """Ensure that including the refkit config does not change the signature of other layers."""
        old_path = sys.path
        try:
            sys.path = [self.yocto_compat_lib_path] + sys.path
            import compatlayer

            self.add_refkit_layers()

            # Ignore world build errors, some of the non-refkit layers might be broken.
            old_sigs, _ = compatlayer.get_signatures(self.poky_dir, failsafe=True)
            # Now add refkit-conf.inc, without changing the DISTRO_FEATURES.
            self.append_config('require conf/distro/include/refkit-config.inc')
            curr_sigs, _ = compatlayer.get_signatures(self.poky_dir, failsafe=True)
            msg = compatlayer.compare_signatures(old_sigs, curr_sigs)
            if msg is not None:
                self.fail('Including refkit-config.inc changed signatures.\n%s' % msg)
        finally:
            sys.path = old_path
Example #4
0
 def test_signatures(self):
     curr_sigs, _ = get_signatures(self.td['builddir'], failsafe=True)
     msg = compare_signatures(self.td['sigs'], curr_sigs)
     if msg is not None:
         self.fail('Adding layer %s changed signatures.\n%s' %
                   (self.tc.layer['name'], msg))