Changeset 59cd4c2c80e7da6b98ce41a63931e0b76ad9738c

Show
Ignore:
Timestamp:
04/14/06 16:25:26 (2 years ago)
Author:
Clément Stenac <zorglub@videolan.org>
git-committer:
Clément Stenac <zorglub@videolan.org> 1145024726 +0000
git-parent:

[4db506d372bd4dbd6a0223eb66a98f9dacb4dc62]

git-author:
Clément Stenac <zorglub@videolan.org> 1145024726 +0000
Message:

Clean-up test

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • test/native/i18n.c

    r4db506d r59cd4c2  
    2121 
    2222#include "../pyunit.h" 
     23#include <vlc/vlc.h> 
    2324#include "charset.h" 
    2425 
    25  
    26 static PyObject *i18n_atof_test( PyObject *self, PyObject *args ) 
     26PyObject *i18n_atof_test( PyObject *self, PyObject *args ) 
    2727{ 
    2828    const char dot9[] = "999999.999999"; 
  • test/native/init.c

    r4db506d r59cd4c2  
    1  
    2 // TODO: Ugly, split correctly  
    3 #include "libvlc.c" 
    4 #include "stats.c" 
    5 #include "i18n.c" 
    6 #include "url.c" 
     1#include "tests.h" 
    72 
    83static PyMethodDef native_libvlc_test_methods[] = { 
  • test/native/libvlc.c

    r4db506d r59cd4c2  
    22#include <vlc/libvlc.h> 
    33 
    4 static PyObject *exception_test( PyObject *self, PyObject *args ) 
     4 PyObject *exception_test( PyObject *self, PyObject *args ) 
    55{ 
    66     libvlc_exception_t exception; 
     
    2525} 
    2626 
    27 static PyObject *create_destroy( PyObject *self, PyObject *args ) 
     27 PyObject *create_destroy( PyObject *self, PyObject *args ) 
    2828{ 
    2929    libvlc_instance_t *p_instance; 
     
    4646} 
    4747 
    48 static PyObject *playlist_test( PyObject *self, PyObject *args ) 
     48 PyObject *playlist_test( PyObject *self, PyObject *args ) 
    4949{ 
    5050    libvlc_instance_t *p_instance; 
     
    9090} 
    9191 
    92 static PyObject *vlm_test( PyObject *self, PyObject *args ) 
     92 PyObject *vlm_test( PyObject *self, PyObject *args ) 
    9393{ 
    9494    libvlc_instance_t *p_instance; 
  • test/native/stats.c

    r4db506d r59cd4c2  
    22#include <vlc/vlc.h> 
    33 
    4 static PyObject *timers_test( PyObject *self, PyObject *args ) 
     4PyObject *timers_test( PyObject *self, PyObject *args ) 
    55{ 
    66     Py_INCREF( Py_None ); 
  • test/native/url.c

    r4db506d r59cd4c2  
    2020 *****************************************************************************/ 
    2121 
     22#include "../pyunit.h" 
    2223#include <vlc/vlc.h> 
    2324#include "vlc_url.h" 
    2425 
    25 #include <stdio.h> 
    26 #include <stdlib.h> 
    27  
    28 static PyObject * test_decode (const char *in, const char *out) 
     26 PyObject * test_decode (const char *in, const char *out) 
    2927{ 
    3028    char *res; 
     
    4240} 
    4341 
    44 static PyObject *url_decode_test( PyObject *self, PyObject *args ) 
     42 PyObject *url_decode_test( PyObject *self, PyObject *args ) 
    4543{ 
    4644    (void)setvbuf (stdout, NULL, _IONBF, 0); 
  • test/setup.py

    r4db506d r59cd4c2  
    4141# To compile in a local vlc tree 
    4242native_libvlc_test = Extension( 'native_libvlc_test', 
    43                 sources = ['native/init.c'], 
     43                sources = ['native/init.c', 'native/url.c', 'native/i18n.c', 
     44               'native/stats.c', 'native/libvlc.c'], 
    4445                include_dirs = ['../include', '../', '/usr/win32/include' ], 
    4546                extra_objects = [ '../src/.libs/libvlc.so' ],