init.c 1.16 KB
Newer Older
1
#include "../pyunit.h"
Clément Stenac's avatar
Clément Stenac committed
2
#include "tests.h"
3

4 5 6 7 8 9 10
PyObject *init( PyObject *self, PyObject *args )
{
    (void)setvbuf (stdout, NULL, _IONBF, 0);
    Py_INCREF( Py_None );
    return Py_None;
}

11
static PyMethodDef native_libvlc_test_methods[] = {
12
   DEF_METHOD( init, "Init some stuff" )
13 14 15 16 17 18
   DEF_METHOD( create_destroy, "Create and destroy" )
   DEF_METHOD( exception_test, "Test Exception handling" )
   DEF_METHOD( playlist_test, "Test Playlist interaction" )
   DEF_METHOD( vlm_test, "Test VLM" )
   DEF_METHOD( timers_test, "Test timers" )
   DEF_METHOD( i18n_atof_test, "Test i18n_atof" )
19
   DEF_METHOD( url_test, "URL decoding" )
20 21 22
   DEF_METHOD( chains_test, "Test building of chains" )
   DEF_METHOD( gui_chains_test, "Test interactions between chains and GUI" )
   DEF_METHOD( psz_chains_test, "Test building of chain strings" )
23
   DEF_METHOD( arrays_test, "Test arrays")
24 25 26
   DEF_METHOD( bsearch_direct_test, "Test Bsearch without structure" )
   DEF_METHOD( bsearch_member_test, "Test Bsearch with structure" )
   DEF_METHOD( dict_test, "Test dictionnaries" )
27
   DEF_METHOD( threadvar_test, "Test TLS" )
28 29 30
   { NULL, NULL, 0, NULL }
};

31 32
asserts =0;

33
DECLARE_MODULE( native_libvlc_test )