Changeset 59cd4c2c80e7da6b98ce41a63931e0b76ad9738c
- 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
| r4db506d |
r59cd4c2 |
|
| 21 | 21 | |
|---|
| 22 | 22 | #include "../pyunit.h" |
|---|
| | 23 | #include <vlc/vlc.h> |
|---|
| 23 | 24 | #include "charset.h" |
|---|
| 24 | 25 | |
|---|
| 25 | | |
|---|
| 26 | | static PyObject *i18n_atof_test( PyObject *self, PyObject *args ) |
|---|
| | 26 | PyObject *i18n_atof_test( PyObject *self, PyObject *args ) |
|---|
| 27 | 27 | { |
|---|
| 28 | 28 | const char dot9[] = "999999.999999"; |
|---|
| 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" |
|---|
| 7 | 2 | |
|---|
| 8 | 3 | static PyMethodDef native_libvlc_test_methods[] = { |
|---|
| r4db506d |
r59cd4c2 |
|
| 2 | 2 | #include <vlc/libvlc.h> |
|---|
| 3 | 3 | |
|---|
| 4 | | static PyObject *exception_test( PyObject *self, PyObject *args ) |
|---|
| | 4 | PyObject *exception_test( PyObject *self, PyObject *args ) |
|---|
| 5 | 5 | { |
|---|
| 6 | 6 | libvlc_exception_t exception; |
|---|
| … | … | |
| 25 | 25 | } |
|---|
| 26 | 26 | |
|---|
| 27 | | static PyObject *create_destroy( PyObject *self, PyObject *args ) |
|---|
| | 27 | PyObject *create_destroy( PyObject *self, PyObject *args ) |
|---|
| 28 | 28 | { |
|---|
| 29 | 29 | libvlc_instance_t *p_instance; |
|---|
| … | … | |
| 46 | 46 | } |
|---|
| 47 | 47 | |
|---|
| 48 | | static PyObject *playlist_test( PyObject *self, PyObject *args ) |
|---|
| | 48 | PyObject *playlist_test( PyObject *self, PyObject *args ) |
|---|
| 49 | 49 | { |
|---|
| 50 | 50 | libvlc_instance_t *p_instance; |
|---|
| … | … | |
| 90 | 90 | } |
|---|
| 91 | 91 | |
|---|
| 92 | | static PyObject *vlm_test( PyObject *self, PyObject *args ) |
|---|
| | 92 | PyObject *vlm_test( PyObject *self, PyObject *args ) |
|---|
| 93 | 93 | { |
|---|
| 94 | 94 | libvlc_instance_t *p_instance; |
|---|
| r4db506d |
r59cd4c2 |
|
| 2 | 2 | #include <vlc/vlc.h> |
|---|
| 3 | 3 | |
|---|
| 4 | | static PyObject *timers_test( PyObject *self, PyObject *args ) |
|---|
| | 4 | PyObject *timers_test( PyObject *self, PyObject *args ) |
|---|
| 5 | 5 | { |
|---|
| 6 | 6 | Py_INCREF( Py_None ); |
|---|
| r4db506d |
r59cd4c2 |
|
| 20 | 20 | *****************************************************************************/ |
|---|
| 21 | 21 | |
|---|
| | 22 | #include "../pyunit.h" |
|---|
| 22 | 23 | #include <vlc/vlc.h> |
|---|
| 23 | 24 | #include "vlc_url.h" |
|---|
| 24 | 25 | |
|---|
| 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) |
|---|
| 29 | 27 | { |
|---|
| 30 | 28 | char *res; |
|---|
| … | … | |
| 42 | 40 | } |
|---|
| 43 | 41 | |
|---|
| 44 | | static PyObject *url_decode_test( PyObject *self, PyObject *args ) |
|---|
| | 42 | PyObject *url_decode_test( PyObject *self, PyObject *args ) |
|---|
| 45 | 43 | { |
|---|
| 46 | 44 | (void)setvbuf (stdout, NULL, _IONBF, 0); |
|---|
| r4db506d |
r59cd4c2 |
|
| 41 | 41 | # To compile in a local vlc tree |
|---|
| 42 | 42 | native_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'], |
|---|
| 44 | 45 | include_dirs = ['../include', '../', '/usr/win32/include' ], |
|---|
| 45 | 46 | extra_objects = [ '../src/.libs/libvlc.so' ], |
|---|