Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
59cd4c2c
Commit
59cd4c2c
authored
Apr 14, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean-up test
parent
4db506d3
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
25 additions
and
19 deletions
+25
-19
test/native/i18n.c
test/native/i18n.c
+2
-2
test/native/init.c
test/native/init.c
+1
-6
test/native/libvlc.c
test/native/libvlc.c
+4
-4
test/native/stats.c
test/native/stats.c
+1
-1
test/native/tests.h
test/native/tests.h
+12
-0
test/native/url.c
test/native/url.c
+3
-5
test/setup.py
test/setup.py
+2
-1
No files found.
test/native/i18n.c
View file @
59cd4c2c
...
...
@@ -20,10 +20,10 @@
*****************************************************************************/
#include "../pyunit.h"
#include <vlc/vlc.h>
#include "charset.h"
static
PyObject
*
i18n_atof_test
(
PyObject
*
self
,
PyObject
*
args
)
PyObject
*
i18n_atof_test
(
PyObject
*
self
,
PyObject
*
args
)
{
const
char
dot9
[]
=
"999999.999999"
;
const
char
comma9
[]
=
"999999,999999"
;
...
...
test/native/init.c
View file @
59cd4c2c
// TODO: Ugly, split correctly
#include "libvlc.c"
#include "stats.c"
#include "i18n.c"
#include "url.c"
#include "tests.h"
static
PyMethodDef
native_libvlc_test_methods
[]
=
{
DEF_METHOD
(
create_destroy
,
"Create and destroy"
)
...
...
test/native/libvlc.c
View file @
59cd4c2c
#include "../pyunit.h"
#include <vlc/libvlc.h>
static
PyObject
*
exception_test
(
PyObject
*
self
,
PyObject
*
args
)
PyObject
*
exception_test
(
PyObject
*
self
,
PyObject
*
args
)
{
libvlc_exception_t
exception
;
...
...
@@ -24,7 +24,7 @@ static PyObject *exception_test( PyObject *self, PyObject *args )
return
Py_None
;
}
static
PyObject
*
create_destroy
(
PyObject
*
self
,
PyObject
*
args
)
PyObject
*
create_destroy
(
PyObject
*
self
,
PyObject
*
args
)
{
libvlc_instance_t
*
p_instance
;
char
*
argv
[]
=
{
"vlc"
,
"--quiet"
};
...
...
@@ -45,7 +45,7 @@ static PyObject *create_destroy( PyObject *self, PyObject *args )
return
Py_None
;
}
static
PyObject
*
playlist_test
(
PyObject
*
self
,
PyObject
*
args
)
PyObject
*
playlist_test
(
PyObject
*
self
,
PyObject
*
args
)
{
libvlc_instance_t
*
p_instance
;
char
*
argv
[]
=
{
"vlc"
,
"--quiet"
};
...
...
@@ -89,7 +89,7 @@ static PyObject *playlist_test( PyObject *self, PyObject *args )
return
Py_None
;
}
static
PyObject
*
vlm_test
(
PyObject
*
self
,
PyObject
*
args
)
PyObject
*
vlm_test
(
PyObject
*
self
,
PyObject
*
args
)
{
libvlc_instance_t
*
p_instance
;
char
*
argv
[]
=
{
"vlc"
,
"--quiet"
};
...
...
test/native/stats.c
View file @
59cd4c2c
#include "../pyunit.h"
#include <vlc/vlc.h>
static
PyObject
*
timers_test
(
PyObject
*
self
,
PyObject
*
args
)
PyObject
*
timers_test
(
PyObject
*
self
,
PyObject
*
args
)
{
Py_INCREF
(
Py_None
);
return
Py_None
;
...
...
test/native/tests.h
0 → 100644
View file @
59cd4c2c
#include "../pyunit.h"
PyObject
*
exception_test
(
PyObject
*
self
,
PyObject
*
args
);
PyObject
*
create_destroy
(
PyObject
*
self
,
PyObject
*
args
);
PyObject
*
playlist_test
(
PyObject
*
self
,
PyObject
*
args
);
PyObject
*
vlm_test
(
PyObject
*
self
,
PyObject
*
args
);
PyObject
*
timers_test
(
PyObject
*
self
,
PyObject
*
args
);
PyObject
*
url_decode_test
(
PyObject
*
self
,
PyObject
*
args
);
PyObject
*
i18n_atof_test
(
PyObject
*
self
,
PyObject
*
args
);
test/native/url.c
View file @
59cd4c2c
...
...
@@ -19,13 +19,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include "../pyunit.h"
#include <vlc/vlc.h>
#include "vlc_url.h"
#include <stdio.h>
#include <stdlib.h>
static
PyObject
*
test_decode
(
const
char
*
in
,
const
char
*
out
)
PyObject
*
test_decode
(
const
char
*
in
,
const
char
*
out
)
{
char
*
res
;
...
...
@@ -41,7 +39,7 @@ static PyObject * test_decode (const char *in, const char *out)
return
Py_None
;
}
static
PyObject
*
url_decode_test
(
PyObject
*
self
,
PyObject
*
args
)
PyObject
*
url_decode_test
(
PyObject
*
self
,
PyObject
*
args
)
{
(
void
)
setvbuf
(
stdout
,
NULL
,
_IONBF
,
0
);
if
(
!
test_decode
(
"this_should_not_be_modified_1234"
,
...
...
test/setup.py
View file @
59cd4c2c
...
...
@@ -40,7 +40,8 @@ def get_ldflags():
# To compile in a local vlc tree
native_libvlc_test
=
Extension
(
'native_libvlc_test'
,
sources
=
[
'native/init.c'
],
sources
=
[
'native/init.c'
,
'native/url.c'
,
'native/i18n.c'
,
'native/stats.c'
,
'native/libvlc.c'
],
include_dirs
=
[
'../include'
,
'../'
,
'/usr/win32/include'
],
extra_objects
=
[
'../src/.libs/libvlc.so'
],
extra_compile_args
=
get_cflags
(),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment