示例#1
0
 def test_c(self):
     c_plug = CPlugin()
     c_plug.patched(self.test_project_dir, self.spec, self.sack)
     expected = set(['/usr/include', '/usr/include/bits',
                     '/usr/include/gnu', '/usr/include/sys'])
     self.assertEqual(self.spec.required_files, expected)
     self.assertEqual(self.spec.build_required_files, expected)
示例#2
0
 def test_c(self):
     c_plug = CPlugin()
     c_plug.patched(self.test_project_dir, self.spec, self.sack)
     expected = ['/usr/include', '/usr/include/bits',
                 '/usr/include/gnu', '/usr/include/sys']
     expected.sort()
     self.spec.Requires.sort()
     self.spec.BuildRequires.sort()
     self.assertEqual(self.spec.Requires, expected)
     self.assertEqual(self.spec.BuildRequires, expected)
示例#3
0
 def test_c(self):
     c_plug = CPlugin()
     c_plug.patched(self.test_project_dir, self.spec, self.sack)
     expected = set([
         "/usr/include/stdlib.h",
         "/usr/include/stdio.h",
     ])
     self.assertTrue([ele for ele in self.spec.required_files
                      if ele in expected])
     self.assertTrue([ele for ele in self.spec.build_required_files
                      if ele in expected])
示例#4
0
 def test_c(self):
     c_plug = CPlugin()
     c_plug.patched(self.test_project_dir, self.spec, self.sack)
     expected = set([
         "/usr/include/stdlib.h",
         "/usr/include/stdio.h",
     ])
     self.assertTrue(
         [ele for ele in self.spec.required_files if ele in expected])
     self.assertTrue(
         [ele for ele in self.spec.build_required_files if ele in expected])
示例#5
0
 def test_c(self):
     c_plug = CPlugin()
     c_plug.patched(self.test_project_dir, self.spec, self.sack)
     self.assertEqual(self.spec.Requires.sort(),
                      ['/usr/include/gnu', '/usr/include/sys',
                       '/usr/include', '/usr/include/bits'].sort())