[svn r408] Some typo erros on gmyth_transcode.h were fixed; added more regression tests to the tests directory ('make check').
1.1 --- a/gmyth/tests/Makefile.am Thu Mar 08 15:53:58 2007 +0000
1.2 +++ b/gmyth/tests/Makefile.am Thu Mar 08 18:39:03 2007 +0000
1.3 @@ -18,14 +18,24 @@
1.4 check_PROGRAMS = \
1.5 test \
1.6 gmyth_test_connection \
1.7 + gmyth_test_epg \
1.8 + gmyth_test_recorder \
1.9 + gmyth_test_recordings \
1.10 + gmyth_test_transcode \
1.11 + gmyth_test_vlc \
1.12 gmyth_test_http
1.13
1.14 TESTS = \
1.15 test \
1.16 gmyth_test_connection \
1.17 + gmyth_test_epg \
1.18 + gmyth_test_recorder \
1.19 + gmyth_test_recordings \
1.20 + gmyth_test_transcode \
1.21 + gmyth_test_vlc \
1.22 gmyth_test_http
1.23
1.24 -TESTS_ENVIRONMENT = top_srcdir=$(top_srcdir)
1.25 +#TESTS_ENVIRONMENT = top_srcdir=$(top_srcdir)
1.26
1.27 test_SOURCES = \
1.28 main.c
1.29 @@ -36,3 +46,18 @@
1.30 gmyth_test_http_SOURCES = \
1.31 gmyth_test_http.c
1.32
1.33 +gmyth_test_epg_SOURCES = \
1.34 + gmyth_test_epg.c
1.35 +
1.36 +gmyth_test_recorder_SOURCES = \
1.37 + gmyth_test_recorder.c
1.38 +
1.39 +gmyth_test_recordings_SOURCES = \
1.40 + gmyth_test_recordings.c
1.41 +
1.42 +gmyth_test_vlc_SOURCES = \
1.43 + gmyth_test_vlc.c
1.44 +
1.45 +gmyth_test_transcode_SOURCES = \
1.46 + gmyth_test_transcode.c
1.47 +
2.1 --- a/gmyth/tests/gmyth_test_epg.c Thu Mar 08 15:53:58 2007 +0000
2.2 +++ b/gmyth/tests/gmyth_test_epg.c Thu Mar 08 18:39:03 2007 +0000
2.3 @@ -48,7 +48,7 @@
2.4
2.5 GMythBackendInfo *backend_info;
2.6 g_type_init ();
2.7 - g_thread_init (NULL);
2.8 + //g_thread_init (NULL);
2.9
2.10 backend_info = gmyth_backend_info_new_with_uri (argv[1]);
2.11
3.1 --- a/gmyth/tests/gmyth_test_http.c Thu Mar 08 15:53:58 2007 +0000
3.2 +++ b/gmyth/tests/gmyth_test_http.c Thu Mar 08 18:39:03 2007 +0000
3.3 @@ -15,10 +15,10 @@
3.4 gmyth_backend_info_set_port (backend_info, 6543);
3.5 gmyth_backend_info_set_status_port (backend_info, 6544);
3.6
3.7 - GTimeVal* start = gmyth_util_string_to_time_val("2006-01-01T00:00");
3.8 - GTimeVal* end = gmyth_util_string_to_time_val("2007-03-10T00:00");
3.9 + GTimeVal* start = gmyth_util_string_to_time_val("2006-01-01T00:00:00");
3.10 + GTimeVal* end = gmyth_util_string_to_time_val("2007-03-10T00:00:00");
3.11 GMythEpg epg;
3.12 - epg = gmyth_http_retrieve_epg(backend_info, start, end, 1000, 1000, "True");
3.13 + epg = gmyth_http_retrieve_epg(backend_info, start, end, 1000, 10000, "1");
3.14
3.15 if ( NULL == epg.channelList || g_slist_length( epg.channelList ) <= 0 )
3.16 printf( "Channel list is empty!!!" );
4.1 --- a/gmyth/tests/gmyth_test_recorder.c Thu Mar 08 15:53:58 2007 +0000
4.2 +++ b/gmyth/tests/gmyth_test_recorder.c Thu Mar 08 18:39:03 2007 +0000
4.3 @@ -106,7 +106,7 @@
4.4
4.5 GMythBackendInfo *backend_info;
4.6 g_type_init ();
4.7 - g_thread_init (NULL);
4.8 + //g_thread_init (NULL);
4.9
4.10 backend_info = gmyth_backend_info_new_with_uri (argv[1]);
4.11
5.1 --- a/gmyth/tests/gmyth_test_transcode.c Thu Mar 08 15:53:58 2007 +0000
5.2 +++ b/gmyth/tests/gmyth_test_transcode.c Thu Mar 08 18:39:03 2007 +0000
5.3 @@ -1,29 +1,30 @@
5.4 -#include "gmyth_transcode.h"
5.5 -#include "gmyth_uri.h"
5.6 -#include "gmyth_backendinfo.h"
5.7 -#include "gmyth_socket.h"
5.8 -#include "gmyth_query.h"
5.9 +#include <gmyth/gmyth_transcoder.h>
5.10 +#include <gmyth/gmyth_jobqueue.h>
5.11 +#include <gmyth/gmyth_uri.h>
5.12 +#include <gmyth/gmyth_backendinfo.h>
5.13 +#include <gmyth/gmyth_socket.h>
5.14 +#include <gmyth/gmyth_query.h>
5.15
5.16 int
5.17 main (int args, const char **argv)
5.18 {
5.19 GMythBackendInfo *backend_info;
5.20 - GMythTranscode *transcode;
5.21 + GMythTranscoder *transcode;
5.22 g_type_init ();
5.23 - g_thread_init (NULL);
5.24 + //g_thread_init (NULL);
5.25
5.26 backend_info = gmyth_backend_info_new ();
5.27 gmyth_backend_info_set_hostname (backend_info, "192.168.3.165");
5.28 gmyth_backend_info_set_port (backend_info, 6543);
5.29 gmyth_backend_info_set_status_port (backend_info, 6544);
5.30
5.31 - transcode = gmyth_transcode_new();
5.32 + transcode = gmyth_transcoder_new(backend_info);
5.33
5.34 transcode->backend_info = backend_info;
5.35 transcode->cutlist = TRUE;
5.36
5.37 - gmyth_transcode_set_output (transcode, TRUE, "/tmp/teste.mp4");
5.38 - gmyth_transcode_set_filename (transcode, "1000_20061207123000.nuv");
5.39 + gmyth_transcoder_set_output (transcode, TRUE, "/tmp/teste.mp4");
5.40 + gmyth_transcoder_set_filename (transcode, "1000_20061207123000.nuv");
5.41
5.42 int teste = gmyth_jobqueue_add_job(transcode, "JOB_TRANSCODE");
5.43