Esempio n. 1
0
 def test_update_build_deps_append_duplicates(self):
     """
     Test that if a set if multiple items are scraped from the bb file, and
     they are already in the specfile, the resulting set with be the union
     of set 1 and set 2.
     """
     self.specfile.buildreqs = {'gmp-dev', 'ncurses'}
     infile_update_spec.update_build_deps(self.bb_dict, self.specfile)
     self.assertEqual(self.specfile.buildreqs,
                      {'gmp-dev', 'ncurses', 'gettext'})
Esempio n. 2
0
 def test_update_build_deps_append_normal(self):
     """
     Test that if a set if multiple items are scraped from the bb file, and
     they are not already in the specfile, they will be added to the set of
     buildreqs. If the bb depends ends in '-native' that should be removed
     as well.
     """
     self.specfile.buildreqs = {'gmp-dev', 'lua-dev'}
     infile_update_spec.update_build_deps(self.bb_dict, self.specfile)
     self.assertEqual(self.specfile.buildreqs,
                      {'gmp-dev', 'lua-dev', 'ncurses', 'gettext'})