# HG changeset patch # User rosfran # Date 1173379143 0 # Node ID 89cd1cc77cd12494578dcc989fb5ed254cc01a4e # Parent 74c9ba2e13ec8dff30df4a8f1a41913a578c93d9 [svn r408] Some typo erros on gmyth_transcode.h were fixed; added more regression tests to the tests directory ('make check'). diff -r 74c9ba2e13ec -r 89cd1cc77cd1 gmyth/tests/Makefile.am --- a/gmyth/tests/Makefile.am Thu Mar 08 15:53:58 2007 +0000 +++ b/gmyth/tests/Makefile.am Thu Mar 08 18:39:03 2007 +0000 @@ -18,14 +18,24 @@ check_PROGRAMS = \ test \ gmyth_test_connection \ + gmyth_test_epg \ + gmyth_test_recorder \ + gmyth_test_recordings \ + gmyth_test_transcode \ + gmyth_test_vlc \ gmyth_test_http TESTS = \ test \ gmyth_test_connection \ + gmyth_test_epg \ + gmyth_test_recorder \ + gmyth_test_recordings \ + gmyth_test_transcode \ + gmyth_test_vlc \ gmyth_test_http -TESTS_ENVIRONMENT = top_srcdir=$(top_srcdir) +#TESTS_ENVIRONMENT = top_srcdir=$(top_srcdir) test_SOURCES = \ main.c @@ -36,3 +46,18 @@ gmyth_test_http_SOURCES = \ gmyth_test_http.c +gmyth_test_epg_SOURCES = \ + gmyth_test_epg.c + +gmyth_test_recorder_SOURCES = \ + gmyth_test_recorder.c + +gmyth_test_recordings_SOURCES = \ + gmyth_test_recordings.c + +gmyth_test_vlc_SOURCES = \ + gmyth_test_vlc.c + +gmyth_test_transcode_SOURCES = \ + gmyth_test_transcode.c + diff -r 74c9ba2e13ec -r 89cd1cc77cd1 gmyth/tests/gmyth_test_epg.c --- a/gmyth/tests/gmyth_test_epg.c Thu Mar 08 15:53:58 2007 +0000 +++ b/gmyth/tests/gmyth_test_epg.c Thu Mar 08 18:39:03 2007 +0000 @@ -48,7 +48,7 @@ GMythBackendInfo *backend_info; g_type_init (); - g_thread_init (NULL); + //g_thread_init (NULL); backend_info = gmyth_backend_info_new_with_uri (argv[1]); diff -r 74c9ba2e13ec -r 89cd1cc77cd1 gmyth/tests/gmyth_test_http.c --- a/gmyth/tests/gmyth_test_http.c Thu Mar 08 15:53:58 2007 +0000 +++ b/gmyth/tests/gmyth_test_http.c Thu Mar 08 18:39:03 2007 +0000 @@ -15,10 +15,10 @@ gmyth_backend_info_set_port (backend_info, 6543); gmyth_backend_info_set_status_port (backend_info, 6544); - GTimeVal* start = gmyth_util_string_to_time_val("2006-01-01T00:00"); - GTimeVal* end = gmyth_util_string_to_time_val("2007-03-10T00:00"); + GTimeVal* start = gmyth_util_string_to_time_val("2006-01-01T00:00:00"); + GTimeVal* end = gmyth_util_string_to_time_val("2007-03-10T00:00:00"); GMythEpg epg; - epg = gmyth_http_retrieve_epg(backend_info, start, end, 1000, 1000, "True"); + epg = gmyth_http_retrieve_epg(backend_info, start, end, 1000, 10000, "1"); if ( NULL == epg.channelList || g_slist_length( epg.channelList ) <= 0 ) printf( "Channel list is empty!!!" ); diff -r 74c9ba2e13ec -r 89cd1cc77cd1 gmyth/tests/gmyth_test_recorder.c --- a/gmyth/tests/gmyth_test_recorder.c Thu Mar 08 15:53:58 2007 +0000 +++ b/gmyth/tests/gmyth_test_recorder.c Thu Mar 08 18:39:03 2007 +0000 @@ -106,7 +106,7 @@ GMythBackendInfo *backend_info; g_type_init (); - g_thread_init (NULL); + //g_thread_init (NULL); backend_info = gmyth_backend_info_new_with_uri (argv[1]); diff -r 74c9ba2e13ec -r 89cd1cc77cd1 gmyth/tests/gmyth_test_transcode.c --- a/gmyth/tests/gmyth_test_transcode.c Thu Mar 08 15:53:58 2007 +0000 +++ b/gmyth/tests/gmyth_test_transcode.c Thu Mar 08 18:39:03 2007 +0000 @@ -1,29 +1,30 @@ -#include "gmyth_transcode.h" -#include "gmyth_uri.h" -#include "gmyth_backendinfo.h" -#include "gmyth_socket.h" -#include "gmyth_query.h" +#include +#include +#include +#include +#include +#include int main (int args, const char **argv) { GMythBackendInfo *backend_info; - GMythTranscode *transcode; + GMythTranscoder *transcode; g_type_init (); - g_thread_init (NULL); + //g_thread_init (NULL); backend_info = gmyth_backend_info_new (); gmyth_backend_info_set_hostname (backend_info, "192.168.3.165"); gmyth_backend_info_set_port (backend_info, 6543); gmyth_backend_info_set_status_port (backend_info, 6544); - transcode = gmyth_transcode_new(); + transcode = gmyth_transcoder_new(backend_info); transcode->backend_info = backend_info; transcode->cutlist = TRUE; - gmyth_transcode_set_output (transcode, TRUE, "/tmp/teste.mp4"); - gmyth_transcode_set_filename (transcode, "1000_20061207123000.nuv"); + gmyth_transcoder_set_output (transcode, TRUE, "/tmp/teste.mp4"); + gmyth_transcoder_set_filename (transcode, "1000_20061207123000.nuv"); int teste = gmyth_jobqueue_add_job(transcode, "JOB_TRANSCODE");