def setUp(self):
     self.config = DummyConfig()
     self.tmp = tempfile.mkdtemp()
     self.config.prefix = self.tmp
     self.store =  create_store(self.config)
     self.package = self.store.get_package('gstreamer-runtime')
     self.packager = DistTarball(self.config, self.package, self.store)
     add_files(self.tmp)
 def setUp(self):
     self.config = DummyConfig()
     self.tmp = tempfile.mkdtemp()
     self.config.prefix = self.tmp
     self.store = create_store(self.config)
     self.package = self.store.get_package("gstreamer-runtime")
     self.packager = DistTarball(self.config, self.package, self.store)
     add_files(self.tmp)
 def testDistFiles(self):
     win32files = self.winlib + self.winbin + self.winmisc
     linuxfiles = self.linuxlib + self.linuxbin + self.linuxmisc
     add_files(self.tmp)
     self.assertEqual(self.win32recipe.dist_files_list(),
                      sorted(win32files))
     self.assertEqual(self.linuxrecipe.dist_files_list(),
                      sorted(linuxfiles))
Beispiel #4
0
 def setUp(self):
     self.config = DummyConfig()
     self.tmp = tempfile.mkdtemp()
     self.config.prefix = self.tmp
     self.store = create_store(self.config)
     self.package = self.store.get_package('gstreamer-runtime')
     self.packager = DistArchive(self.config, self.package, self.store,
                                 ArchiveType.TARBALL)
     add_files(self.tmp)
 def setUp(self):
     self.config = DummyConfig()
     self.tmp = tempfile.mkdtemp()
     self.config.prefix = self.tmp
     self.store =  create_store(self.config)
     self.package = self.store.get_package('gstreamer-runtime')
     self.packager = DistArchive(self.config, self.package, self.store,
                                 ArchiveType.TARBALL)
     add_files(self.tmp)
Beispiel #6
0
    def testFilesList(self):
        add_files(self.tmp)
        winfiles = ['README', 'bin/gst-launch.exe', 'bin/libgstreamer-win32.dll',
                'bin/libgstreamer-0.10.dll', 'bin/windows.exe',
                'libexec/gstreamer-0.10/pluginsloader.exe',
                'windows', 'bin/libtest.dll']
        linuxfiles = ['README', 'bin/gst-launch', 'bin/linux',
                'lib/libgstreamer-x11.so.1', 'lib/libgstreamer-0.10.so.1',
                'libexec/gstreamer-0.10/pluginsloader', 'linux']

        self.assertEqual(sorted(winfiles),
            sorted(self.win32package.files_list()))
        self.assertEqual(sorted(linuxfiles),
            sorted(self.linuxpackage.files_list()))
Beispiel #7
0
    def testDevelFilesList(self):
        add_files(self.tmp)
        devfiles = ['lib/libgstreamer-0.10.a', 'lib/libgstreamer-0.10.la']
        linuxdevfiles = devfiles + ['lib/libgstreamer-0.10.so',
            'lib/libgstreamer-x11.a', 'lib/libgstreamer-x11.la',
            'lib/libgstreamer-x11.so']
        windevfiles = devfiles + ['lib/libgstreamer-win32.a',
            'lib/libgstreamer-win32.dll.a', 'lib/libgstreamer-win32.la',
            'lib/libgstreamer-win32.def', 'lib/gstreamer-win32.lib',
            'lib/libtest.a', 'lib/libtest.dll.a', 'lib/libtest.la',
            'lib/libtest.def', 'lib/test.lib', 'lib/libgstreamer-0.10.dll.a',
            'lib/libgstreamer-0.10.def', 'lib/gstreamer-0.10.lib']

        self.assertEqual(sorted(windevfiles), self.win32package.devel_files_list())
        self.assertEqual(sorted(linuxdevfiles), self.linuxpackage.devel_files_list())
 def testListLibraries(self):
     add_files(self.tmp)
     self.assertEqual(self.win32recipe.files_list_by_category('libs'),
                      sorted(self.winlib))
     self.assertEqual(self.linuxrecipe.files_list_by_category('libs'),
                      sorted(self.linuxlib))
 def testGetAllFiles(self):
     win32files = self.winlib + self.winbin + self.winmisc + self.windevfiles
     linuxfiles = self.linuxlib + self.linuxbin + self.linuxmisc + self.lindevfiles
     add_files(self.tmp)
     self.assertEqual(self.win32recipe.files_list(), sorted(win32files))
     self.assertEqual(self.linuxrecipe.files_list(), sorted(linuxfiles))
 def testDevelFiles(self):
     add_files(self.tmp)
     self.assertEqual(self.win32recipe.devel_files_list(),
                      sorted(self.windevfiles))
     self.assertEqual(self.linuxrecipe.devel_files_list(),
                      sorted(self.lindevfiles))
 def testDevelFiles(self):
     add_files(self.tmp)
     self.assertEquals(self.win32recipe.devel_files_list(),
             sorted(self.windevfiles))
     self.assertEquals(self.linuxrecipe.devel_files_list(),
             sorted(self.lindevfiles))
 def testListLibraries(self):
     add_files(self.tmp)
     self.assertEquals(self.win32recipe.files_list_by_category('libs'),
             sorted(self.winlib))
     self.assertEquals(self.linuxrecipe.files_list_by_category('libs'),
             sorted(self.linuxlib))
 def testGetAllFiles(self):
     win32files = self.winlib + self.winbin + self.winmisc + self.windevfiles
     linuxfiles = self.linuxlib + self.linuxbin + self.linuxmisc + self.lindevfiles
     add_files(self.tmp)
     self.assertEquals(self.win32recipe.files_list(), sorted(win32files))
     self.assertEquals(self.linuxrecipe.files_list(), sorted(linuxfiles))
 def testDistFiles(self):
     win32files = self.winlib + self.winbin + self.winmisc
     linuxfiles = self.linuxlib + self.linuxbin + self.linuxmisc
     add_files(self.tmp)
     self.assertEquals(self.win32recipe.dist_files_list(), sorted(win32files))
     self.assertEquals(self.linuxrecipe.dist_files_list(), sorted(linuxfiles))