From: Kangho Hur Date: Wed, 22 Aug 2012 02:53:52 +0000 (+0900) Subject: Remove unnecessary files X-Git-Tag: 2.0_alpha~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1d93a3cc215fc9a12e943eed15aef260db9337c1;p=platform%2Fcore%2Fapi%2Fplayer.git Remove unnecessary files --- diff --git a/TC/_export_env.sh b/TC/_export_env.sh deleted file mode 100755 index 72a11ec..0000000 --- a/TC/_export_env.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -. ./config -export TET_INSTALL_PATH=$TET_INSTALL_HOST_PATH # tetware root path -export TET_TARGET_PATH=$TET_INSTALL_PATH/tetware-target # tetware target path -export PATH=$TET_TARGET_PATH/bin:$PATH -export LD_LIBRARY_PATH=$TET_TARGET_PATH/lib/tet3:$LD_LIBRARY_PATH -export TET_ROOT=$TET_TARGET_PATH diff --git a/TC/_export_target_env.sh b/TC/_export_target_env.sh deleted file mode 100755 index 5ddaa53..0000000 --- a/TC/_export_target_env.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -. ./config -export TET_INSTALL_PATH=$TET_INSTALL_TARGET_PATH # path to path -export TET_TARGET_PATH=$TET_INSTALL_PATH/tetware-target -export PATH=$TET_TARGET_PATH/bin:$PATH -export LD_LIBRARY_PATH=$TET_TARGET_PATH/lib/tet3:$LD_LIBRARY_PATH -export TET_ROOT=$TET_TARGET_PATH diff --git a/TC/build.sh b/TC/build.sh deleted file mode 100755 index 72aad6c..0000000 --- a/TC/build.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -. ./_export_env.sh # setting environment variables - -export TET_SUITE_ROOT=`pwd` -FILE_NAME_EXTENSION=`date +%s` - -RESULT_DIR=results -HTML_RESULT=$RESULT_DIR/build-tar-result-$FILE_NAME_EXTENSION.html -JOURNAL_RESULT=$RESULT_DIR/build-tar-result-$FILE_NAME_EXTENSION.journal - -mkdir -p $RESULT_DIR - -tcc -c -p ./ -tcc -b -j $JOURNAL_RESULT -p ./ -grw -c 7 -f chtml -o $HTML_RESULT $JOURNAL_RESULT diff --git a/TC/clean.sh b/TC/clean.sh deleted file mode 100755 index 29743e0..0000000 --- a/TC/clean.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -. ./_export_env.sh # setting environment variables - -export TET_SUITE_ROOT=`pwd` -RESULT_DIR=results - -tcc -c -p ./ # executing tcc, with clean option (-c) -rm -r $RESULT_DIR -rm -r tet_tmp_dir -rm testcase/tet_captured diff --git a/TC/config b/TC/config deleted file mode 100644 index 04684f0..0000000 --- a/TC/config +++ /dev/null @@ -1,2 +0,0 @@ -TET_INSTALL_HOST_PATH=/home/rookiejava/dts_tool/TETware -TET_INSTALL_TARGET_PATH=/mnt/nfs/dts_tool/TETware diff --git a/TC/execute.sh b/TC/execute.sh deleted file mode 100755 index a4f6095..0000000 --- a/TC/execute.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -. ./_export_target_env.sh # setting environment variables - -export TET_SUITE_ROOT=`pwd` -FILE_NAME_EXTENSION=`date +%s` - -RESULT_DIR=results -HTML_RESULT=$RESULT_DIR/exec-tar-result-$FILE_NAME_EXTENSION.html -JOURNAL_RESULT=$RESULT_DIR/exec-tar-result-$FILE_NAME_EXTENSION.journal - -mkdir -p $RESULT_DIR - -tcc -e -j $JOURNAL_RESULT -p ./ -grw -c 3 -f chtml -o $HTML_RESULT $JOURNAL_RESULT diff --git a/TC/media_samsung.mp4 b/TC/media_samsung.mp4 deleted file mode 100644 index 983f6ac..0000000 Binary files a/TC/media_samsung.mp4 and /dev/null differ diff --git a/TC/testcase/Makefile b/TC/testcase/Makefile deleted file mode 100755 index 7718bc5..0000000 --- a/TC/testcase/Makefile +++ /dev/null @@ -1,25 +0,0 @@ -CC ?= gcc - -C_FILES = $(shell ls *.c) - -PKGS = capi-media-player dlog glib-2.0 gthread-2.0 - -LDFLAGS = `pkg-config --libs $(PKGS)` -LDFLAGS += $(TET_ROOT)/lib/tet3/tcm_s.o -LDFLAGS += -L$(TET_ROOT)/lib/tet3 -ltcm_s -LDFLAGS += -L$(TET_ROOT)/lib/tet3 -lapi_s - -CFLAGS = -I. `pkg-config --cflags $(PKGS)` -CFLAGS += -I$(TET_ROOT)/inc/tet3 -CFLAGS += -Wall - -#TARGETS = $(C_FILES:%.c=tc-%) -TCS := $(shell ls -1 *.c | cut -d. -f1) - -all: $(TCS) - -%: %.c - $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS) - -clean: - rm -f $(TCS) diff --git a/TC/testcase/tslist b/TC/testcase/tslist deleted file mode 100644 index c39d0e9..0000000 --- a/TC/testcase/tslist +++ /dev/null @@ -1,3 +0,0 @@ -/testcase/utc_media_player -/testcase/utc_media_player_callback -/testcase/utc_media_player_lifecycle \ No newline at end of file diff --git a/TC/testcase/utc_media_player.c b/TC/testcase/utc_media_player.c deleted file mode 100644 index 87fd305..0000000 --- a/TC/testcase/utc_media_player.c +++ /dev/null @@ -1,1044 +0,0 @@ -/* -* Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -#include -#include -#include - -#define MEDIA_PATH "/mnt/nfs/workspace/capi/media/player/TC/media_samsung.mp4" - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -//keeping ret and player global, since using startup function for all -player_h player; -int sRet; - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_media_player_get_duration_p(void); -static void utc_media_player_get_duration_n(void); -static void utc_media_player_set_position_p(void); -static void utc_media_player_set_position_n(void); -static void utc_media_player_get_position_p(void); -static void utc_media_player_get_position_n(void); -static void utc_media_player_set_position_ratio_p(void); -static void utc_media_player_set_position_ratio_n(void); -static void utc_media_player_get_position_ratio_p(void); -static void utc_media_player_get_position_ratio_n(void); -static void utc_media_player_get_state_p(void); -static void utc_media_player_get_state_n(void); -static void utc_media_player_get_video_size_p(void); -static void utc_media_player_get_video_size_n(void); -static void utc_media_player_set_looping_p(void); -static void utc_media_player_set_looping_n(void); -static void utc_media_player_is_looping_p(void); -static void utc_media_player_is_looping_n(void); -static void utc_media_player_set_mute_p(void); -static void utc_media_player_set_mute_n(void); -static void utc_media_player_is_muted_p(void); -static void utc_media_player_is_muted_n(void); -static void utc_media_player_set_display_p(void); -static void utc_media_player_set_display_n(void); -static void utc_media_player_set_memory_buffer_p(void); -static void utc_media_player_set_memory_buffer_n(void); -static void utc_media_player_set_volume_p(void); -static void utc_media_player_set_volume_n(void); -static void utc_media_player_get_volume_p(void); -static void utc_media_player_get_volume_n(void); -static void utc_media_player_set_sound_type_p(void); -static void utc_media_player_set_sound_type_n(void); -static void utc_media_player_set_subtitle_path_p(void); -static void utc_media_player_set_subtitle_path_n(void); -static void utc_media_player_set_x11_display_visible_p(void); -static void utc_media_player_set_x11_display_visible_n(void); -static void utc_media_player_is_x11_display_visible_p(void); -static void utc_media_player_is_x11_display_visible_n(void); -static void utc_media_player_set_x11_display_rotation_p(void); -static void utc_media_player_set_x11_display_rotation_n(void); -static void utc_media_player_get_x11_display_rotation_p(void); -static void utc_media_player_get_x11_display_rotation_n(void); -static void utc_media_player_set_display_mode_p(void); -static void utc_media_player_set_display_mode_n(void); -static void utc_media_player_get_display_mode_p(void); -static void utc_media_player_get_display_mode_n(void); -static void utc_media_player_capture_video_p(void); -static void utc_media_player_capture_video_n(void); - -struct tet_testlist tet_testlist[] = { - { utc_media_player_get_duration_p , POSITIVE_TC_IDX }, - { utc_media_player_get_duration_n , NEGATIVE_TC_IDX }, - { utc_media_player_set_position_p , POSITIVE_TC_IDX }, - { utc_media_player_set_position_n , NEGATIVE_TC_IDX }, - { utc_media_player_get_position_p , POSITIVE_TC_IDX }, - { utc_media_player_get_position_n , NEGATIVE_TC_IDX }, - { utc_media_player_set_position_ratio_p , POSITIVE_TC_IDX }, - { utc_media_player_set_position_ratio_n , NEGATIVE_TC_IDX }, - { utc_media_player_get_position_ratio_p , POSITIVE_TC_IDX }, - { utc_media_player_get_position_ratio_n , NEGATIVE_TC_IDX }, - { utc_media_player_get_state_p , POSITIVE_TC_IDX }, - { utc_media_player_get_state_n , NEGATIVE_TC_IDX }, - { utc_media_player_get_video_size_p , POSITIVE_TC_IDX }, - { utc_media_player_get_video_size_n , NEGATIVE_TC_IDX }, - { utc_media_player_set_looping_p , POSITIVE_TC_IDX }, - { utc_media_player_set_looping_n , NEGATIVE_TC_IDX }, - { utc_media_player_is_looping_p , POSITIVE_TC_IDX }, - { utc_media_player_is_looping_n , NEGATIVE_TC_IDX }, - { utc_media_player_set_mute_p , POSITIVE_TC_IDX }, - { utc_media_player_set_mute_n , NEGATIVE_TC_IDX }, - { utc_media_player_is_muted_p , POSITIVE_TC_IDX }, - { utc_media_player_is_muted_n , NEGATIVE_TC_IDX }, - { utc_media_player_set_display_p , POSITIVE_TC_IDX }, - { utc_media_player_set_display_n , NEGATIVE_TC_IDX }, - { utc_media_player_set_memory_buffer_p , POSITIVE_TC_IDX }, - { utc_media_player_set_memory_buffer_n, NEGATIVE_TC_IDX }, - { utc_media_player_set_volume_p , POSITIVE_TC_IDX }, - { utc_media_player_set_volume_n , NEGATIVE_TC_IDX }, - { utc_media_player_get_volume_p , POSITIVE_TC_IDX }, - { utc_media_player_get_volume_n , NEGATIVE_TC_IDX }, - { utc_media_player_set_sound_type_p , POSITIVE_TC_IDX }, - { utc_media_player_set_sound_type_n , NEGATIVE_TC_IDX }, - { utc_media_player_set_subtitle_path_p , POSITIVE_TC_IDX }, - { utc_media_player_set_subtitle_path_n , NEGATIVE_TC_IDX }, - { utc_media_player_set_x11_display_visible_p , POSITIVE_TC_IDX }, - { utc_media_player_set_x11_display_visible_n , NEGATIVE_TC_IDX }, - { utc_media_player_is_x11_display_visible_p , POSITIVE_TC_IDX }, - { utc_media_player_is_x11_display_visible_n , NEGATIVE_TC_IDX }, - { utc_media_player_set_x11_display_rotation_p , POSITIVE_TC_IDX }, - { utc_media_player_set_x11_display_rotation_n , NEGATIVE_TC_IDX }, - { utc_media_player_get_x11_display_rotation_p , POSITIVE_TC_IDX }, - { utc_media_player_get_x11_display_rotation_n , NEGATIVE_TC_IDX }, - { utc_media_player_set_display_mode_p , POSITIVE_TC_IDX }, - { utc_media_player_set_display_mode_n , NEGATIVE_TC_IDX }, - { utc_media_player_get_display_mode_p , POSITIVE_TC_IDX }, - { utc_media_player_get_display_mode_n , NEGATIVE_TC_IDX }, - { utc_media_player_capture_video_p , POSITIVE_TC_IDX }, - { utc_media_player_capture_video_n , NEGATIVE_TC_IDX }, - { NULL, 0 }, -}; - -static GMainLoop *g_mainloop = NULL; -static GThread *event_thread; - -gpointer GmainThread(gpointer data){ - g_mainloop = g_main_loop_new (NULL, 0); - g_main_loop_run (g_mainloop); - - return NULL; -} - -static void startup(void) -{ - if( !g_thread_supported() ) - { - g_thread_init(NULL); - } - - GError *gerr = NULL; - event_thread = g_thread_create(GmainThread, NULL, 1, &gerr); - - if ((sRet = player_create(&player)) == PLAYER_ERROR_NONE) - { - sRet = player_set_uri(player, MEDIA_PATH); - } -} - -static void cleanup(void) -{ - player_destroy(player); - g_main_loop_quit (g_mainloop); - g_thread_join(event_thread); -} - -static void player_video_capture_cb(unsigned char *data, int width, int height, unsigned int size, void *user_data) -{ - dts_message("Player", "player_video_capture_cb!!!"); -} - -static void reset(void) -{ - if ((sRet = player_unprepare(player)) == PLAYER_ERROR_NONE) - { - sRet = player_set_uri(player, MEDIA_PATH); - } -} - -static void utc_media_player_get_duration_p(void) -{ - char* api_name = "player_get_duration"; - int ret; - int duration; - if (sRet == PLAYER_ERROR_NONE) - { - player_prepare(player); - { - if ((ret = player_start(player)) == PLAYER_ERROR_NONE) - { - sleep(3); - if ((ret = player_get_duration(player, &duration)) == PLAYER_ERROR_NONE) - { - player_stop(player); - reset(); - dts_pass(api_name); - } - if ((sRet = player_stop(player)) == PLAYER_ERROR_NONE) - { - dts_message(api_name, "Call log: %d %d", sRet, ret); - } - } - reset(); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_get_duration_n(void) -{ - char* api_name = "player_get_duration"; - int ret; - int duration; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_get_duration(player, &duration)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_position_p(void) -{ - char* api_name = "utc_media_player_set_position_p"; - int ret; - int position = 10000; - if (sRet == PLAYER_ERROR_NONE) - { - player_prepare(player); - { - if ((ret = player_set_position(player, position,NULL,NULL)) == PLAYER_ERROR_NONE) - { - reset(); - dts_pass(api_name); - } - } - reset(); - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_position_n(void) -{ - char* api_name = "utc_media_player_set_position_n"; - int ret; - int position = 10000; - player_h player1 = NULL; - if ((ret = player_set_position(player1, position,NULL,NULL)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_get_position_p(void) -{ - char* api_name = "player_get_position"; - int ret; - int position; - if (sRet == PLAYER_ERROR_NONE) - { - player_prepare(player); - { - if ((ret = player_get_position(player, &position)) == PLAYER_ERROR_NONE) - { - reset(); - dts_pass(api_name); - } - } - reset(); - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_get_position_n(void) -{ - char* api_name = "player_get_position"; - int ret; - int position; - player_h player1 = NULL; - if ((ret = player_get_position(player1, &position)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_position_ratio_p(void) -{ - char* api_name = "utc_media_player_set_position_ratio_p"; - int ret; - int pos_ratio = 10; - - if (sRet == PLAYER_ERROR_NONE) - { - player_prepare(player); - { - if ((ret = player_set_position_ratio(player, pos_ratio,NULL,NULL)) == PLAYER_ERROR_NONE) - { - reset(); - dts_pass(api_name); - } - } - reset(); - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_position_ratio_n(void) -{ - char* api_name = "utc_media_player_set_position_ratio_n"; - int ret; - int pos_ratio = 10; - player_h player1 = NULL; - if ((ret = player_get_position_ratio(player1, pos_ratio)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_get_position_ratio_p(void) -{ - char* api_name = "player_get_position_ratio"; - int ret; - int pos_ratio; - - if (sRet == PLAYER_ERROR_NONE) - { - player_prepare(player); - { - if ((ret = player_get_position_ratio(player, &pos_ratio)) == PLAYER_ERROR_NONE) - { - reset(); - dts_pass(api_name); - } - } - reset(); - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_get_position_ratio_n(void) -{ - char* api_name = "player_get_position_ratio"; - int ret; - int pos_ratio; - player_h player1 = NULL; - if ((ret = player_get_position_ratio(player1, &pos_ratio)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_get_state_p(void) -{ - char* api_name = "player_get_state"; - int ret; - player_state_e cur_state; - if (sRet == PLAYER_ERROR_NONE) - { - player_prepare(player); - { - if ((ret = player_get_state(player, &cur_state)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_get_state_n(void) -{ - char* api_name = "player_get_state"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_get_state(player, NULL)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_get_video_size_p(void) -{ - char* api_name = "player_get_video_size"; - int ret; - int width, height; - if (sRet == PLAYER_ERROR_NONE) - { - player_prepare(player); - if ((ret = player_get_video_size(player, &width, &height)) == PLAYER_ERROR_NONE) - { - reset(); - dts_pass(api_name); - } - if ((sRet = player_unprepare(player)) == PLAYER_ERROR_NONE) - { - sRet = player_set_uri(player, MEDIA_PATH); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_get_video_size_n(void) -{ - char* api_name = "player_get_video_size"; - int ret; - int width, height; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_get_video_size(player, &width, &height)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_looping_p(void) -{ - char* api_name = "player_set_looping"; - int ret; - bool looping = true; - if (sRet == PLAYER_ERROR_NONE) - { - player_prepare(player); - { - if ((ret = player_set_looping(player, looping)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_looping_n(void) -{ - char* api_name = "player_set_looping"; - int ret; - bool looping = true; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_looping(NULL, looping)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_is_looping_p(void) -{ - char* api_name = "player_is_looping"; - int ret; - bool looping; - if (sRet == PLAYER_ERROR_NONE) - { - player_prepare(player); - { - if ((ret = player_is_looping(player, &looping)) == PLAYER_ERROR_NONE) - { - reset(); - dts_pass(api_name); - } - reset(); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_is_looping_n(void) -{ - char* api_name = "player_is_looping"; - int ret; - bool looping; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_is_looping(NULL, &looping)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_mute_p(void) -{ - char* api_name = "utc_media_player_set_mute_p"; - int ret; - bool muted=false; - if (sRet == PLAYER_ERROR_NONE) - { - player_prepare(player); - { - if ((ret = player_set_mute(player, muted)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_mute_n(void) -{ - char* api_name = "utc_media_player_set_mute_n"; - int ret; - player_h player1 = NULL; - bool muted = false; - if ((ret = player_set_mute(player1, muted)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - - - -static void utc_media_player_is_muted_p(void) -{ - char* api_name = "player_is_muted"; - int ret; - bool muted; - if (sRet == PLAYER_ERROR_NONE) - { - player_prepare(player); - if ((ret = player_is_muted(player, &muted)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_is_muted_n(void) -{ - char* api_name = "player_is_muted"; - int ret; - player_h player1 = NULL; - bool muted; - if ((ret = player_is_muted(player1, &muted)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_display_p(void) -{ - char* api_name = "player_set_display"; - int ret; - reset(); - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_display(player, PLAYER_DISPLAY_TYPE_X11,0)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_display_n(void) -{ - char* api_name = "player_set_display"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - player_prepare(player); - { - if ((ret = player_set_display(player,PLAYER_DISPLAY_TYPE_X11, 0)) != PLAYER_ERROR_NONE) - { - reset(); - dts_pass(api_name); - } - reset(); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_memory_buffer_p(void) -{ - char* api_name = "utc_media_player_set_memory_buffer_p"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - reset(); - GMappedFile *file; - gsize file_size; - guint8* g_media_mem = NULL; - - file = g_mapped_file_new (MEDIA_PATH, FALSE,NULL); - file_size = g_mapped_file_get_length (file); - g_media_mem = (guint8 *) g_mapped_file_get_contents (file); - - if ((ret = player_set_memory_buffer(player, (void*)g_media_mem ,file_size)) == PLAYER_ERROR_NONE) - { - player_prepare(player); - reset(); - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_memory_buffer_n(void) -{ - char* api_name = "utc_media_player_set_memory_buffer_n"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_memory_buffer(player, NULL, 0)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_volume_p(void) -{ - char* api_name = "utc_media_player_set_volume_p"; - int ret; - float left, right = 1.0f; - { - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_volume(player, left, right)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_volume_n(void) -{ - char* api_name = "utc_media_player_set_volume_n"; - int ret; - float left, right = 1.0f; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_volume(NULL, left, right)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_get_volume_p(void) -{ - char* api_name = "player_get_volume"; - int ret; - float left, right; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_get_volume(player, &left, &right)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_get_volume_n(void) -{ - char* api_name = "player_get_volume"; - int ret; - float left, right; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_get_volume(player, &left, NULL)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_sound_type_p(void) -{ - char* api_name = "utc_media_player_set_sound_type_p"; - int ret; - sound_type_e sound_type = SOUND_TYPE_MEDIA; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_sound_type(player,sound_type)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_sound_type_n(void) -{ - char* api_name = "utc_media_player_set_sound_type_n"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_sound_type(NULL, SOUND_TYPE_MEDIA)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_subtitle_path_p(void) -{ - char* api_name = "utc_media_player_set_subtitle_path_p"; - int ret; - sound_type_e sound_type = SOUND_TYPE_MEDIA; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_subtitle_path(player,MEDIA_PATH)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_subtitle_path_n(void) -{ - char* api_name = "utc_media_player_set_subtitle_path_n"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_subtitle_path(NULL, NULL)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_x11_display_visible_p(void) -{ - char* api_name = "utc_media_player_set_x11_display_visible_p"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_display(player, PLAYER_DISPLAY_TYPE_X11,0)) == PLAYER_ERROR_NONE) - { - if ((ret = player_set_x11_display_visible(player, true)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_x11_display_visible_n(void) -{ - char* api_name = "utc_media_player_set_x11_display_visible_n"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_display(player, PLAYER_DISPLAY_TYPE_X11,0)) == PLAYER_ERROR_NONE) - { - if ((ret = player_set_x11_display_visible(NULL, true)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_is_x11_display_visible_p(void) -{ - char* api_name = "utc_media_player_is_x11_display_visible_p"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_display(player, PLAYER_DISPLAY_TYPE_X11,0)) == PLAYER_ERROR_NONE) - { - bool isVisible; - if ((ret = player_is_x11_display_visible(player, &isVisible)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_is_x11_display_visible_n(void) -{ - char* api_name = "utc_media_player_is_x11_display_visible_n"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_display(player, PLAYER_DISPLAY_TYPE_X11,0)) == PLAYER_ERROR_NONE) - { - if ((ret = player_is_x11_display_visible(NULL, NULL)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_x11_display_rotation_p(void) -{ - char* api_name = "utc_media_player_set_x11_display_rotation_p"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_display(player, PLAYER_DISPLAY_TYPE_X11,0)) == PLAYER_ERROR_NONE) - { - if ((ret = player_set_x11_display_rotation(player, PLAYER_DISPLAY_ROTATION_180)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_x11_display_rotation_n(void) -{ - char* api_name = "utc_media_player_set_x11_display_rotation_n"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_display(player, PLAYER_DISPLAY_TYPE_X11,0)) == PLAYER_ERROR_NONE) - { - if ((ret = player_set_x11_display_rotation(NULL, PLAYER_DISPLAY_ROTATION_180)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_get_x11_display_rotation_p(void) -{ - char* api_name = "utc_media_player_get_x11_display_rotation_p"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_display(player, PLAYER_DISPLAY_TYPE_X11,0)) == PLAYER_ERROR_NONE) - { - player_display_rotation_e rotation; - if ((ret = player_get_x11_display_rotation(player, &rotation)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_get_x11_display_rotation_n(void) -{ - char* api_name = "utc_media_player_get_x11_display_rotation_n"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_get_x11_display_rotation(NULL, PLAYER_DISPLAY_ROTATION_180)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_display_mode_p(void) -{ - char* api_name = "utc_media_player_set_display_mode_p"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_display(player, PLAYER_DISPLAY_TYPE_X11,0)) == PLAYER_ERROR_NONE) - { - if ((ret = player_set_display_mode(player, PLAYER_DISPLAY_MODE_FULL_SCREEN)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_display_mode_n(void) -{ - char* api_name = "utc_media_player_set_display_mode_n"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_display(player, PLAYER_DISPLAY_TYPE_X11,0)) == PLAYER_ERROR_NONE) - { - if ((ret = player_set_display_mode(NULL, PLAYER_DISPLAY_MODE_FULL_SCREEN)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_get_display_mode_p(void) -{ - char* api_name = "utc_media_player_get_display_mode_p"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_display(player, PLAYER_DISPLAY_TYPE_X11,0)) == PLAYER_ERROR_NONE) - { - player_display_mode_e mode; - if ((ret = player_get_display_mode(player, &mode)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_get_display_mode_n(void) -{ - char* api_name = "utc_media_player_get_display_mode_n"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_get_display_mode(NULL, PLAYER_DISPLAY_MODE_FULL_SCREEN)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_capture_video_p(void) -{ - char* api_name = "utc_media_player_capture_video_p"; - int ret; - - if (sRet == PLAYER_ERROR_NONE) - { - player_prepare(player); - { - if ((ret = player_start(player)) == PLAYER_ERROR_NONE) - { - sleep(3); - if ((ret = player_capture_video(player,player_video_capture_cb ,NULL)) == PLAYER_ERROR_NONE) - { - player_stop(player); - reset(); - dts_pass(api_name); - } - if ((sRet = player_stop(player)) == PLAYER_ERROR_NONE) - { - dts_message(api_name, "Call log: %d %d", sRet, ret); - } - } - reset(); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_capture_video_n(void) -{ - char* api_name = "utc_media_player_capture_video_n"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_capture_video(NULL,player_video_capture_cb ,NULL)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} \ No newline at end of file diff --git a/TC/testcase/utc_media_player_callback.c b/TC/testcase/utc_media_player_callback.c deleted file mode 100644 index 656e1d0..0000000 --- a/TC/testcase/utc_media_player_callback.c +++ /dev/null @@ -1,577 +0,0 @@ -/* -* Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -#include -#include -#include - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -//keeping ret and player global, since using startup function for all -player_h player; -int sRet; - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_media_player_set_started_callback_p(void); -static void utc_media_player_set_started_callback_n(void); -static void utc_media_player_unset_started_callback_p(void); -static void utc_media_player_unset_started_callback_n(void); -static void utc_media_player_set_buffering_callback_p(void); -static void utc_media_player_set_buffering_callback_n(void); -static void utc_media_player_unset_buffering_callback_p(void); -static void utc_media_player_unset_buffering_callback_n(void); -static void utc_media_player_set_complete_callback_p(void); -static void utc_media_player_set_complete_callback_n(void); -static void utc_media_player_unset_complete_callback_p(void); -static void utc_media_player_unset_complete_callback_n(void); -static void utc_media_player_set_error_callback_p(void); -static void utc_media_player_set_error_callback_n(void); -static void utc_media_player_unset_error_callback_p(void); -static void utc_media_player_unset_error_callback_n(void); -static void utc_media_player_set_interrupt_callback_p(void); -static void utc_media_player_set_interrupt_callback_n(void); -static void utc_media_player_unset_interrupt_callback_p(void); -static void utc_media_player_unset_interrupt_callback_n(void); -static void utc_media_player_set_paused_callback_p(void); -static void utc_media_player_set_paused_callback_n(void); -static void utc_media_player_unset_paused_callback_p(void); -static void utc_media_player_unset_paused_callback_n(void); -static void utc_media_player_set_subtitle_updated_callback_p(void); -static void utc_media_player_set_subtitle_updated_callback_n(void); -static void utc_media_player_unset_subtitle_updated_callback_p(void); -static void utc_media_player_unset_subtitle_updated_callback_n(void); - -struct tet_testlist tet_testlist[] = { - { utc_media_player_set_started_callback_p, POSITIVE_TC_IDX }, - { utc_media_player_set_started_callback_n, NEGATIVE_TC_IDX }, - { utc_media_player_unset_started_callback_p, POSITIVE_TC_IDX }, - { utc_media_player_unset_started_callback_n, NEGATIVE_TC_IDX }, - { utc_media_player_set_buffering_callback_p, POSITIVE_TC_IDX }, - { utc_media_player_set_buffering_callback_n, NEGATIVE_TC_IDX }, - { utc_media_player_unset_buffering_callback_p, POSITIVE_TC_IDX }, - { utc_media_player_unset_buffering_callback_n, NEGATIVE_TC_IDX }, - { utc_media_player_set_complete_callback_p, POSITIVE_TC_IDX }, - { utc_media_player_set_complete_callback_n, NEGATIVE_TC_IDX }, - { utc_media_player_unset_complete_callback_p, POSITIVE_TC_IDX }, - { utc_media_player_unset_complete_callback_n, NEGATIVE_TC_IDX }, - { utc_media_player_set_error_callback_p, POSITIVE_TC_IDX }, - { utc_media_player_set_error_callback_n, NEGATIVE_TC_IDX }, - { utc_media_player_unset_error_callback_p, POSITIVE_TC_IDX }, - { utc_media_player_unset_error_callback_n, NEGATIVE_TC_IDX }, - { utc_media_player_set_interrupt_callback_p, POSITIVE_TC_IDX }, - { utc_media_player_set_interrupt_callback_n, NEGATIVE_TC_IDX }, - { utc_media_player_unset_interrupt_callback_p, POSITIVE_TC_IDX }, - { utc_media_player_unset_interrupt_callback_n, NEGATIVE_TC_IDX }, - { utc_media_player_set_paused_callback_p, POSITIVE_TC_IDX }, - { utc_media_player_set_paused_callback_n, NEGATIVE_TC_IDX }, - { utc_media_player_unset_paused_callback_p, POSITIVE_TC_IDX }, - { utc_media_player_unset_paused_callback_n, NEGATIVE_TC_IDX }, - { utc_media_player_set_subtitle_updated_callback_p, POSITIVE_TC_IDX }, - { utc_media_player_set_subtitle_updated_callback_n, NEGATIVE_TC_IDX }, - { utc_media_player_unset_subtitle_updated_callback_p, POSITIVE_TC_IDX }, - { utc_media_player_unset_subtitle_updated_callback_n, NEGATIVE_TC_IDX }, - { NULL, 0 }, -}; - -static GMainLoop *g_mainloop = NULL; -static GThread *event_thread; - -gpointer GmainThread(gpointer data){ - g_mainloop = g_main_loop_new (NULL, 0); - g_main_loop_run (g_mainloop); - - return NULL; -} - -static void startup(void) -{ - if( !g_thread_supported() ) - { - g_thread_init(NULL); - } - - GError *gerr = NULL; - event_thread = g_thread_create(GmainThread, NULL, 1, &gerr); - sRet = player_create(&player); -} - -static void cleanup(void) -{ - player_destroy(player); - g_main_loop_quit (g_mainloop); - g_thread_join(event_thread); -} - -static void player_start_cb(void *data) -{ - dts_message("PlayerEvent", "Player Started!!!"); -} - -static void player_complete_cb(void *data) -{ - dts_message("PlayerEvent", "Player Started!!!"); -} - - -static void player_pause_cb(void *data) -{ - dts_message("PlayerEvent", "Player Paused!!!"); -} - -static void player_buffer_cb(int percent, void *data) -{ - dts_message("PlayerEvent", "Player Buffering : %d!!!", percent); -} - -static void player_interrupt_cb(player_interrupted_code_e code, void *data) -{ - dts_message("PlayerEvent", "Player Interrupted!!!"); -} - -static void player_subtitle_update_cb(unsigned long duration, char *text, void *user_data) -{ - dts_message("PlayerEvent", "Player Subtitle Updated duration : %ld, text : %s!!!", duration, text); -} - -static void utc_media_player_set_started_callback_p(void) -{ - char* api_name = "player_set_started_cb"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_started_cb(player, player_start_cb, &sRet)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_started_callback_n(void) -{ - char* api_name = "player_set_started_cb"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_started_cb(player, NULL, &sRet)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_unset_started_callback_p(void) -{ - char* api_name = "utc_media_player_unset_started_callback_p"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_unset_started_cb(player)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_unset_started_callback_n(void) -{ - char* api_name = "utc_media_player_unset_started_callback_n"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_unset_started_cb(NULL)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_buffering_callback_p(void) -{ - char* api_name = "player_set_buffering_cb"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_buffering_cb(player, player_buffer_cb, &sRet)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_buffering_callback_n(void) -{ - char* api_name = "player_set_buffering_cb"; - int ret; - player_h player1 = NULL; - if ((ret = player_set_buffering_cb(player1, player_buffer_cb, &sRet)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_unset_buffering_callback_p(void) -{ - char* api_name = "utc_media_player_unset_buffering_callback_p"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_unset_buffering_cb(player)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_unset_buffering_callback_n(void) -{ - char* api_name = "utc_media_player_unset_buffering_callback_n"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_unset_buffering_cb(NULL)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_complete_callback_p(void) -{ - char* api_name = "utc_media_player_set_complete_callback_p"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_completed_cb(player, player_complete_cb, &sRet)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_complete_callback_n(void) -{ - char* api_name = "player_set_completed_cb"; - int ret; - player_h player1 = NULL; - if ((ret = player_set_completed_cb(player1, player_complete_cb, &sRet)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_unset_complete_callback_p(void) -{ - char* api_name = "utc_media_player_unset_complete_callback_p"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_unset_completed_cb(player)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_unset_complete_callback_n(void) -{ - char* api_name = "utc_media_player_unset_complete_callback_n"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_unset_completed_cb(NULL)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_error_callback_p(void) -{ - char* api_name = "player_set_error_cb"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_error_cb(player, player_buffer_cb, &sRet)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_error_callback_n(void) -{ - char* api_name = "player_set_error_cb"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_destroy(player)) == PLAYER_ERROR_NONE) - { - player = NULL; - if ((ret = player_set_error_cb(player, player_buffer_cb, &sRet)) != PLAYER_ERROR_NONE) - { - sRet = player_create(&player); - dts_pass(api_name); - } - sRet = player_create(&player); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_unset_error_callback_p(void) -{ - char* api_name = "utc_media_player_unset_error_callback_p"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_unset_error_cb(player)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_unset_error_callback_n(void) -{ - char* api_name = "utc_media_player_unset_error_callback_n"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_unset_error_cb(NULL)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_interrupt_callback_p(void) -{ - char* api_name = "player_set_interrupted_cb"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_interrupted_cb(player, player_interrupt_cb, &sRet)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_interrupt_callback_n(void) -{ - char* api_name = "player_set_interrupted_cb"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_interrupted_cb(player, NULL, &sRet)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_unset_interrupt_callback_p(void) -{ - char* api_name = "utc_media_player_unset_interrupt_callback_p"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_unset_interrupted_cb(player)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_unset_interrupt_callback_n(void) -{ - char* api_name = "utc_media_player_unset_interrupt_callback_n"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_unset_interrupted_cb(NULL)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_paused_callback_p(void) -{ - char* api_name = "utc_media_player_set_paused_callback_p"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_paused_cb(player, player_pause_cb, &sRet)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_paused_callback_n(void) -{ - char* api_name = "utc_media_player_set_paused_callback_n"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_paused_cb(player, NULL, &sRet)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_unset_paused_callback_p(void) -{ - char* api_name = "utc_media_player_unset_paused_callback_p"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_unset_paused_cb(player)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_unset_paused_callback_n(void) -{ - char* api_name = "utc_media_player_unset_paused_callback_n"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_unset_paused_cb(NULL)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_subtitle_updated_callback_p(void) -{ - char* api_name = "utc_media_player_set_subtitle_updated_callback_p"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_subtitle_updated_cb(player, player_subtitle_update_cb, &sRet)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_set_subtitle_updated_callback_n(void) -{ - char* api_name = "utc_media_player_set_subtitle_updated_callback_n"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_set_subtitle_updated_cb(player, NULL, &sRet)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_unset_subtitle_updated_callback_p(void) -{ - char* api_name = "utc_media_player_unset_subtitle_updated_callback_p"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_unset_subtitle_updated_cb(player)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} - -static void utc_media_player_unset_subtitle_updated_callback_n(void) -{ - char* api_name = "utc_media_player_unset_subtitle_updated_callback_n"; - int ret; - if (sRet == PLAYER_ERROR_NONE) - { - if ((ret = player_unset_subtitle_updated_cb(NULL)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d %d", sRet, ret); - dts_fail(api_name); -} \ No newline at end of file diff --git a/TC/testcase/utc_media_player_lifecycle.c b/TC/testcase/utc_media_player_lifecycle.c deleted file mode 100644 index 670740a..0000000 --- a/TC/testcase/utc_media_player_lifecycle.c +++ /dev/null @@ -1,278 +0,0 @@ -/* -* Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -#include -#include -#include - -#define MEDIA_PATH "/mnt/nfs/workspace/capi/media/player/TC/media_samsung.mp4" -#define INVALID_MEDIA_PATH "./invalid.mp7" - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_media_player_create_p(void); -static void utc_media_player_create_n(void); -static void utc_media_player_destroy_p(void); -static void utc_media_player_destroy_n(void); -static void utc_media_player_pause_p(void); -static void utc_media_player_pause_n(void); -static void utc_media_player_prepare_p(void); -static void utc_media_player_prepare_n(void); - -struct tet_testlist tet_testlist[] = { - { utc_media_player_create_p, POSITIVE_TC_IDX }, - { utc_media_player_create_n, NEGATIVE_TC_IDX }, - { utc_media_player_destroy_p, POSITIVE_TC_IDX }, - { utc_media_player_destroy_n, NEGATIVE_TC_IDX }, - { utc_media_player_pause_p, POSITIVE_TC_IDX }, - { utc_media_player_pause_n, NEGATIVE_TC_IDX }, - { utc_media_player_prepare_p, POSITIVE_TC_IDX }, - { utc_media_player_prepare_n, NEGATIVE_TC_IDX }, - { NULL, 0 }, -}; - -static GMainLoop *g_mainloop = NULL; -static GThread *event_thread; - -gpointer GmainThread(gpointer data){ - g_mainloop = g_main_loop_new (NULL, 0); - g_main_loop_run (g_mainloop); - - return NULL; -} - -static void startup(void) -{ - if( !g_thread_supported() ) - { - g_thread_init(NULL); - } - - GError *gerr = NULL; - event_thread = g_thread_create(GmainThread, NULL, 1, &gerr); -} - -static void cleanup(void) -{ - g_main_loop_quit (g_mainloop); - g_thread_join(event_thread); -} - - - -/** - * @brief Positive test case of player_create() - */ -static void utc_media_player_create_p(void) -{ - char* api_name = "player_create"; - player_h player; - int ret; - if ((ret = player_create(&player)) == PLAYER_ERROR_NONE) - { - player_destroy(player); - dts_pass(api_name); - } - dts_message(api_name, "Call log: %d", ret); - dts_fail(api_name); -} - -static void utc_media_player_create_n(void) -{ - char* api_name = "player_create"; - int ret; - if ((ret = player_create(NULL)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - dts_message(api_name, "Call log: %d", ret); - dts_fail(api_name); -} - -static void utc_media_player_destroy_p(void) -{ - char* api_name = "player_destroy"; - player_h player; - int ret; - if ((ret = player_create(&player)) == PLAYER_ERROR_NONE) - { - if ((ret = player_destroy(player)) == PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - } - dts_message(api_name, "Call log: %d", ret); - dts_fail(api_name); -} - -static void utc_media_player_destroy_n(void) -{ - char* api_name = "player_destroy"; - int ret; - if ((ret = player_destroy(NULL)) != PLAYER_ERROR_NONE) - { - dts_pass(api_name); - } - dts_message(api_name, "Call log: %d", ret); - dts_fail(api_name); -} - -static void player_start_cb(void *data) -{ - char* api_name = "player_pause"; - player_h p = (player_h)data; - dts_message(api_name, "Player Started !!!"); - player_state_e s; - player_get_state(p, &s); - dts_message(api_name, "Current state : %d", s); -} - - -static void utc_media_player_pause_p(void) -{ - char* api_name = "player_pause"; - player_h player; - int ret; - if ((ret = player_create(&player)) == PLAYER_ERROR_NONE) - { - ret =player_set_started_cb(player, player_start_cb, player); - if ((ret = player_set_uri(player, MEDIA_PATH)) == PLAYER_ERROR_NONE) - { - if ((ret = player_prepare(player)) == PLAYER_ERROR_NONE) - { - if ((ret = player_start(player)) == PLAYER_ERROR_NONE) - { - int timeout = 3 ; - player_state_e state; - int i; - for(i = 0; i Mon, 23 Jul 2012 14:59:34 +0900 - -capi-media-player (0.1.0-22) unstable; urgency=low - - * Additional stream information APIs and Zooming APIS have been added - * Git: slp-source.sec.samsung.net:slp/api/player - * Tag: capi-media-player_0.1.0-22 - - -- Kangho Hur Mon, 16 Jul 2012 20:40:46 +0900 - -capi-media-player (0.1.0-21) unstable; urgency=low - - * Renew audio effect apis (sound alive support) - * Git: slp-source.sec.samsung.net:slp/api/player - * Tag: capi-media-player_0.1.0-21 - - -- Kangho Hur Wed, 04 Jul 2012 21:44:11 +0900 - -capi-media-player (0.1.0-20) unstable; urgency=low - - * Support to evas surface display scaling mode - * Git: slp-source.sec.samsung.net:slp/api/player - * Tag: capi-media-player_0.1.0-20 - - -- Kangho Hur Thu, 28 Jun 2012 15:32:36 +0900 - -capi-media-player (0.1.0-19) unstable; urgency=low - - * add mmta to check API performance - * Git: slp-source.sec.samsung.net:slp/api/player - * Tag: capi-media-player_0.1.0-19 - - -- Younghwan Ahn Thu, 14 Jun 2012 17:12:21 +0900 - -capi-media-player (0.1.0-18) unstable; urgency=low - - * bug fix to seek - * Git: slp-source.sec.samsung.net:slp/api/player - * Tag: capi-media-player_0.1.0-18 - - -- Kangho Hur Tue, 05 Jun 2012 10:20:14 +0900 - -capi-media-player (0.1.0-17) unstable; urgency=low - - * Stream Inforamtion APIs have been added. - * Git: slp-source.sec.samsung.net:slp/api/player - * Tag: capi-media-player_0.1.0-17 - - -- Kangho Hur Tue, 29 May 2012 13:23:36 +0900 - -capi-media-player (0.1.0-16) unstable; urgency=low - - * Fix bugs & Add the player_set_subtitle_position. - * Git: slp-source.sec.samsung.net:slp/api/player - * Tag: capi-media-player_0.1.0-16 - - -- Kangho Hur Mon, 21 May 2012 18:58:57 +0900 - -capi-media-player (0.1.0-15) unstable; urgency=low - - * Patches for player state when interrputed - * Git: slp-source.sec.samsung.net:slp/api/player - * Tag: capi-media-player_0.1.0-15 - - -- Kangho Hur Thu, 17 May 2012 10:10:11 +0900 - -capi-media-player (0.1.0-14) unstable; urgency=low - - * Support to the progressive download. - * Git: slp-source.sec.samsung.net:slp/api/player - * Tag: capi-media-player_0.1.0-14 - - -- Kangho Hur Thu, 10 May 2012 21:28:37 +0900 - -capi-media-player (0.1.0-13) unstable; urgency=low - - * Remove duplicated enum - * Git: slp-source.sec.samsung.net:slp/api/player - * Tag: capi-media-player_0.1.0-13 - - -- Seungbae Shin Fri, 27 Apr 2012 11:20:33 +0900 - -capi-media-player (0.1.0-12) unstable; urgency=low - - * Resolve the video capture issue - * Git: slp-source.sec.samsung.net:slp/api/player - * Tag: capi-media-player_0.1.0-12 - - -- Kangho Hur Mon, 26 Mar 2012 22:43:13 +0900 - -capi-media-player (0.1.0-11) unstable; urgency=low - - * Add the new features (playback rate, video/audio frame decoded, audio effects and so on.) - * Git: slp-source.sec.samsung.net:slp/api/player - * Tag: capi-media-player_0.1.0-11 - - -- Kangho Hur Wed, 14 Mar 2012 18:43:47 +0900 - -capi-media-player (0.1.0-10) unstable; urgency=low - - * Fix the bug ( state doesn't changed to PAUSED when user unplug earjack while playing the music) - * Git: slp-source.sec.samsung.net:slp/api/player - * Tag: capi-media-player_0.1.0-10 - - -- Kangho Hur Wed, 07 Mar 2012 19:10:46 +0900 - -capi-media-player (0.1.0-9) unstable; urgency=low - - * fix typo - * Git: slp-source.sec.samsung.net:slp/api/player - * Tag: capi-media-player_0.1.0-9 - - -- Seungkeun Lee Tue, 28 Feb 2012 15:27:39 +0900 - -capi-media-player (0.1.0-8) unstable; urgency=low - - * Fix package dependancy - * Git: slp-source.sec.samsung.net:slp/api/player - * Tag: capi-media-player_0.1.0-8 - - -- Kangho Hur Mon, 27 Feb 2012 20:02:53 +0900 - -capi-media-player (0.1.0-7) unstable; urgency=low - - * Use 'static' to local function which is limited to the current source file. - * Git: slp-source.sec.samsung.net:slp/api/player - * Tag: capi-media-player_0.1.0-7 - - -- Kangho Hur Tue, 21 Feb 2012 10:04:25 +0900 - -capi-media-player (0.1.0-6) unstable; urgency=low - - * Apply the SOVERSION - * Git: slp-source.sec.samsung.net:slp/api/player - * Tag: capi-media-player_0.1.0-6 - - -- Kangho Hur Tue, 14 Feb 2012 16:36:42 +0900 - -capi-media-player (0.1.0-5) unstable; urgency=low - - * Add the video capture - * Git: slp-source.sec.samsung.net:slp/api/player - * Tag: capi-media-player_0.1.0-5 - - -- Kangho Hur Tue, 06 Dec 2011 19:06:03 +0900 - -capi-media-player (0.1.0-4) unstable; urgency=low - - * Changes the value of ERROR_NONE - * Git: slp-source.sec.samsung.net:slp/api/player - * Tag: capi-media-player_0.1.0-4 - - -- Kangho Hur Mon, 05 Dec 2011 11:24:40 +0900 - -capi-media-player (0.1.0-3) unstable; urgency=low - - * Apply the Tizen - * Git: slp-source.sec.samsung.net:slp/api/player - * Tag: capi-media-player_0.1.0-3 - - -- Kangho Hur Wed, 23 Nov 2011 15:39:20 +0900 - -capi-media-player (0.1.0-2) unstable; urgency=low - - * Apply the error messages - * Git: slp-source.sec.samsung.net:slp/api/player - * Tag: capi-media-player_0.1.0-2 - - -- Kangho Hur Fri, 07 Oct 2011 21:02:37 +0900 - -capi-media-player (0.1.0-1) unstable; urgency=low - - * Alpha Release - * Git: slp-source.sec.samsung.net:slp/api/player - * Tag: capi-media-player_0.1.0-1 - - -- Kangho Hur Tue, 27 Sep 2011 19:47:58 +0900 - -capi-media-player (0.0.1-4) unstable; urgency=low - - * Fix TC failed and debian control. - * Git: slp-source.sec.samsung.net:slp/api/player - * Tag: capi-media-player_0.0.1-4 - - -- Kangho Hur Mon, 19 Sep 2011 19:06:00 +0900 - -capi-media-player (0.0.1-3) unstable; urgency=low - - * Add the player_set_sound_type() - * Git: slp-source.sec.samsung.net:slp/api/player - * Tag: capi-media-player_0.0.1-3 - - -- Kangho Hur Wed, 14 Sep 2011 19:43:05 +0900 - -capi-media-player (0.0.1-2) unstable; urgency=low - - * Support various diplay type api and add subtilte api - * Git: slp-source.sec.samsung.net:slp/api/player - * Tag: capi-media-player_0.0.1-2 - - -- Kangho Hur Fri, 26 Aug 2011 14:39:24 +0900 - -capi-media-player (0.0.1-1) unstable; urgency=low - - * Initial Upload - * Git: slp-source.sec.samsung.net:slp/api/player - * Tag: capi-media-player_0.0.1-1 - - -- Kangho Hur Thu, 04 Aug 2011 17:32:41 +0900 diff --git a/debian/compat b/debian/compat deleted file mode 100644 index 7ed6ff8..0000000 --- a/debian/compat +++ /dev/null @@ -1 +0,0 @@ -5 diff --git a/debian/control b/debian/control deleted file mode 100644 index c777428..0000000 --- a/debian/control +++ /dev/null @@ -1,23 +0,0 @@ - -Source: capi-media-player -Section: libs -Priority: extra -Maintainer: Kangho Hur , Seungkeun Lee -Uploaders: YoungHwan Ahn , Seungbae Shin -Build-Depends: debhelper (>= 5), dlog-dev, libmm-player-dev, libmm-player-internal-dev, capi-base-common-dev, capi-media-sound-manager-dev - -Package: capi-media-player -Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends} -Description: A Media Player library in Tizen Native API - -Package: capi-media-player-dev -Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends}, capi-media-player (= ${Source-Version}), capi-base-common-dev, capi-media-sound-manager-dev -Description: A Media Player library in Tizen Native API (DEV) - -Package: capi-media-player-dbg -Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends}, capi-media-player (= ${Source-Version}) -Description: A Media Player library in Tizen Native API (DBG) - diff --git a/debian/rules b/debian/rules deleted file mode 100755 index 62fa65f..0000000 --- a/debian/rules +++ /dev/null @@ -1,68 +0,0 @@ -#!/usr/bin/make -f - -CFLAGS = -Wall -g - -FULLVER ?= $(shell dpkg-parsechangelog | grep Version: | cut -d ' ' -f 2 | cut -d '-' -f 1) -MAJORVER ?= $(shell echo $(FULLVER) | cut -d '.' -f 1) - -ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) - CFLAGS += -O0 -else - CFLAGS += -O2 -endif -CMAKE_ROOT_DIR ?= $(CURDIR) -CMAKE_BUILD_DIR ?= $(CURDIR)/cmake_build_tmp - -configure: configure-stamp -configure-stamp: - dh_testdir - mkdir -p $(CMAKE_BUILD_DIR) && cd $(CMAKE_BUILD_DIR) && cmake .. -DFULLVER=${FULLVER} -DMAJORVER=${MAJORVER} - touch configure-stamp - - -build: build-stamp -build-stamp: configure-stamp - dh_testdir - cd $(CMAKE_BUILD_DIR) && $(MAKE) - touch $@ - -clean: - cd $(CMAKE_ROOT_DIR) - dh_testdir - dh_testroot - rm -f build-stamp configure-stamp - rm -f `find . -name *.pc` - rm -rf $(CMAKE_BUILD_DIR) - dh_clean - -install: build - dh_testdir - dh_testroot - dh_clean -k - dh_installdirs - - cd $(CMAKE_BUILD_DIR) && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install - -binary-indep: build install - -binary-arch: build install - dh_testdir - dh_testroot - dh_installchangelogs - dh_installdocs - dh_installexamples - dh_install --sourcedir=debian/tmp - dh_installman - dh_link - dh_strip --dbg-package=capi-media-player-dbg - dh_fixperms - dh_makeshlibs - dh_installdeb - dh_shlibdeps - dh_gencontrol - dh_md5sums - dh_builddeb - -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install configure -