-import vlc
-import unittest
+#import vlc
+#import unittest
# FIXME: How to avoid creating / killing vlc for each test method ?
-class VariablesTestCase( unittest.TestCase ):
- """[PyMC] Test misc variables interaction"""
- def setUp( self ):
- self.mc = vlc.MediaControl( [ '--quiet'] )
-
- def tearDown( self ):
- self.mc.exit()
-
- def testSimple( self ):
- """[PyMC] Check simple add"""
- assert len( self.mc.playlist_get_list() ) == 0
-# self.mc.playlist_add_item( "test" )
-# assert len( self.mc.playlist_get_list() ) == 1
+#class VariablesTestCase( unittest.TestCase ):
+# """[PyMC] Test misc variables interaction"""
+# def setUp( self ):
+# self.mc = vlc.MediaControl( [ '--quiet'] )
+#
+#" def tearDown( self ):
+# self.mc.exit()
+#
+# def testSimple( self ):
+# """[PyMC] Check simple add"""
+# assert len( self.mc.playlist_get_list() ) == 0
+## self.mc.playlist_add_item( "test" )
+## assert len( self.mc.playlist_get_list() ) == 1
-import vlc
-import unittest
-
-# FIXME: Always segfault
-
-class VariablesTestCase( unittest.TestCase ):
- """[PyMC] Test misc variables interaction"""
- def setUp( self ):
- print "broken"
-# self.mc = vlc.MediaControl( [ '--quiet'] )
- # FIXME ! - Get this through children test
-# self.libvlc = vlc.Object(1)
-# self.playlist = vlc.Object(268)
-
- def tearDown( self ):
- print "broken"
-# self.playlist.release()
-# self.libvlc.release()
-# self.mc.exit()
-
- # The Python binding can't create variables, so just get default ones
- def testInt( self ):
- """[PyMC] Get/Set integer variable"""
- print "broken"
-# assert self.libvlc.get( "width" ) == 0
-# self.libvlc.set( "width", 42 )
-# assert self.libvlc.get( 'width' ) == 42
-
- # FIXME: Python binding should listen to return value and raise exception
- def testInvalidInt( self ):
- """[PyMC] Get/Set invalid integer"""
- print "broken"
-# self.libvlc.set( "width" , 5 )
-# self.libvlc.set( "width", "foo" )
-# assert self.libvlc.get( "width" ) == -1
-
- def testString( self ):
- """[PyMC] Get/Set string variable"""
- print "broken"
-# assert self.libvlc.get( "open" ) == ''
-# self.libvlc.set( "open", "foo" )
-# assert self.libvlc.get( "open" ) == "foo"
-
+#import vlc
+#import unittest
+#
+## FIXME: Always segfault
+#
+#class VariablesTestCase( unittest.TestCase ):
+# """[PyMC] Test misc variables interaction"""
+# def setUp( self ):
+# print "broken"
+## self.mc = vlc.MediaControl( [ '--quiet'] )
+# # FIXME ! - Get this through children test
+## self.libvlc = vlc.Object(1)
+## self.playlist = vlc.Object(268)
+#
+# def tearDown( self ):
+# print "broken"
+## self.playlist.release()
+## self.libvlc.release()
+## self.mc.exit()
+#
+# # The Python binding can't create variables, so just get default ones
+# def testInt( self ):
+# """[PyMC] Get/Set integer variable"""
+# print "broken"
+## assert self.libvlc.get( "width" ) == 0
+## self.libvlc.set( "width", 42 )
+## assert self.libvlc.get( 'width' ) == 42
+#
+# # FIXME: Python binding should listen to return value and raise exception
+# def testInvalidInt( self ):
+# """[PyMC] Get/Set invalid integer"""
+# print "broken"
+## self.libvlc.set( "width" , 5 )
+## self.libvlc.set( "width", "foo" )
+## assert self.libvlc.get( "width" ) == -1
+#
+# def testString( self ):
+# """[PyMC] Get/Set string variable"""
+# print "broken"
+## assert self.libvlc.get( "open" ) == ''
+## self.libvlc.set( "open", "foo" )
+## assert self.libvlc.get( "open" ) == "foo"
+#
ldflags = []
if os.sys.platform == 'darwin':
ldflags = "-read_only_relocs warning".split()
- ldflags.extend(os.popen('%s --libs vlc pic builtin' % vlcconfig, 'r').readline().rstrip().split())
+ ldflags.extend(os.popen('%s --libs vlc builtin' % vlcconfig, 'r').readline().rstrip().split())
if os.sys.platform == 'darwin':
ldflags.append('-lstdc++')
return ldflags
native_libvlc_test = Extension( 'native_libvlc_test',
sources = ['native/libvlc.c'],
include_dirs = ['../include', '../', '/usr/win32/include' ],
- extra_objects = [ '../lib/libvlc_pic.a' ],
+ extra_objects = [ '../src/libvlc.a' ],
extra_compile_args = get_cflags(),
extra_link_args = [ '-L../..' ] + get_ldflags(),
)
native_stats_test = Extension( 'native_stats_test',
sources = ['native/stats.c'],
include_dirs = ['../include', '../', '/usr/win32/include' ],
- extra_objects = [ '../lib/libvlc_pic.a' ],
+ extra_objects = [ '../src/libvlc.a' ],
extra_compile_args = get_cflags(),
extra_link_args = [ '-L../..' ] + get_ldflags(),
)