From: Seungbae Shin Date: Tue, 21 Aug 2012 12:07:59 +0000 (+0900) Subject: 2.0 init X-Git-Tag: 2.0_alpha~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=351584524adfe209d92bf3d9efb300586099af20;p=platform%2Fcore%2Fapi%2Fwav-player.git 2.0 init Change-Id: I29f8798686c0a4f2327bed63a949a509d6895d8d --- diff --git a/TC/README.txt b/TC/README.txt deleted file mode 100644 index be8526e..0000000 --- a/TC/README.txt +++ /dev/null @@ -1 +0,0 @@ -mediafile "testcase/test.wav" 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.default b/TC/config.default deleted file mode 100644 index 12ac1e2..0000000 --- a/TC/config.default +++ /dev/null @@ -1,3 +0,0 @@ -CAPI_PROJECT_ROOT=/home/abyss/capi -TET_INSTALL_HOST_PATH=/home/abyss/TETware -TET_INSTALL_TARGET_PATH=/mnt/nfs/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/testcase/Makefile b/TC/testcase/Makefile deleted file mode 100755 index dc0d3b1..0000000 --- a/TC/testcase/Makefile +++ /dev/null @@ -1,25 +0,0 @@ -CC ?= gcc - -C_FILES = $(shell ls *.c) - -PKGS = capi-media-wav-player dlog glib-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/test.wav b/TC/testcase/test.wav deleted file mode 100755 index 02fbe63..0000000 Binary files a/TC/testcase/test.wav and /dev/null differ diff --git a/TC/testcase/tslist b/TC/testcase/tslist deleted file mode 100644 index a6629f2..0000000 --- a/TC/testcase/tslist +++ /dev/null @@ -1 +0,0 @@ -/testcase/utc_wav_player diff --git a/TC/testcase/utc_wav_player.c b/TC/testcase/utc_wav_player.c deleted file mode 100755 index ce23111..0000000 --- a/TC/testcase/utc_wav_player.c +++ /dev/null @@ -1,261 +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 TESTFILE "./test.wav" - - -#define API_NAME_WAVPL_START "wav_player_start_playing" -#define API_NAME_WAVPL_STOP "wav_player_stop_playing" -#define API_NAME_WAVPL_CALLBACK "wav_player_stop_callback" - - -#define MY_ASSERT( fun , test , msg ) \ -{\ - if( !test ) \ - dts_fail(fun , msg ); \ -} - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - - - -struct -{ - int proc_result; - int proc_id; -} glob; - - - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -// basic tests for start and stop of play -static void utc_wav_player_start_p(void); -static void utc_wav_player_start_n(void); -static void utc_wav_player_stop_p(void); -static void utc_wav_player_stop_n(void); - -static void utc_wav_player_callback_p(void); -static void utc_wav_player_callback2_p(void); - - -// more sophisticated tests for input parameters -static void utc_wav_player_wrong_param_n(void); -static void utc_wav_player_wrong_param2_n(void); -static void utc_wav_player_wrong_param3_n(void); - - -struct tet_testlist tet_testlist[] = { - { utc_wav_player_start_p , 1 }, - { utc_wav_player_start_n , 2 }, - { utc_wav_player_stop_p, 3 }, - { utc_wav_player_stop_n, 4 }, - { utc_wav_player_callback_p, 5 }, - { utc_wav_player_callback2_p, 6 }, - { utc_wav_player_wrong_param_n, 7 }, - { utc_wav_player_wrong_param2_n, 8 }, - { utc_wav_player_wrong_param3_n, 9 }, - { NULL, 0 }, -}; - - -static void startup(void) -{ - /* start of TC */ -} - -static void cleanup(void) -{ - /* end of TC */ -} - - - -//**********************************************************************/ - - -/** - * @brief all parameters fine, play music - */ -static void utc_wav_player_start_p(void) -{ - int ret; - ret = wav_player_start(TESTFILE, SOUND_TYPE_MEDIA, NULL, NULL, NULL); - dts_check_eq( API_NAME_WAVPL_START, ret, WAV_PLAYER_ERROR_NONE ); -} - - - -//**********************************************************************/ - - - -/** - * @brief lack of sound file path - */ -static void utc_wav_player_start_n(void) -{ - int ret; - ret = wav_player_start(NULL, SOUND_TYPE_MEDIA, NULL, NULL, NULL); - dts_check_ne( API_NAME_WAVPL_START, ret, WAV_PLAYER_ERROR_NONE ); -} - - - -//**********************************************************************/ - - - -/** - * @brief stop playing, all parameters fine - */ -static void utc_wav_player_stop_p(void) -{ - int ret; - int id; - ret = wav_player_start(TESTFILE, SOUND_TYPE_MEDIA, NULL, NULL, &id); - ret = wav_player_stop(id); - dts_check_eq( API_NAME_WAVPL_STOP, ret, WAV_PLAYER_ERROR_NONE ); -} - - - -//**********************************************************************/ - - - -/** - * @brief stop playing, wrong id of playing process - */ -static void utc_wav_player_stop_n(void) -{ - int ret; - ret = wav_player_stop(-1); - dts_check_ne( API_NAME_WAVPL_STOP, ret, WAV_PLAYER_ERROR_NONE ); -} - - - -//**********************************************************************/ - - -//**********************************************************************/ - - - -/** - * @brief wrong parameter: wrong file name - */ -static void utc_wav_player_wrong_param_n(void) -{ - int ret; - char file_name[100] = { '\0' }; - snprintf( file_name, 100 , "%s", TESTFILE ); - snprintf( file_name, 100 , "%s", "something" ); - - ret = wav_player_start( file_name, SOUND_TYPE_MEDIA, NULL, NULL, NULL ); - dts_check_ne( API_NAME_WAVPL_START, ret, WAV_PLAYER_ERROR_NONE ); -} - - - - -//**********************************************************************/ - - - -/** - * @brief wrong parameter: wrong media file type - */ -static void utc_wav_player_wrong_param2_n(void) -{ - int ret; - - ret = wav_player_start( TESTFILE, SOUND_TYPE_CALL + 1, NULL, NULL, NULL ); - dts_check_ne( API_NAME_WAVPL_START, ret, WAV_PLAYER_ERROR_NONE ); -} - - - -//**********************************************************************/ - - - -/** - * @brief wrong parameter: wrong media file type - */ -static void utc_wav_player_wrong_param3_n(void) -{ - int ret; - - ret = wav_player_start( TESTFILE, -1, NULL, NULL, NULL ); - dts_check_ne( API_NAME_WAVPL_START, ret, WAV_PLAYER_ERROR_NONE ); -} - - -//************************************************************************/ - -void _playback_completed_cb(int id, void *user_data){ - int *result = (int*)user_data; - *result = 1; -} - -static void utc_wav_player_callback_p(void) -{ - int ret ; - int result = 0; - - ret = wav_player_start( TESTFILE, SOUND_TYPE_MEDIA, _playback_completed_cb, &result, NULL ); - sleep(6); - dts_check_eq( API_NAME_WAVPL_CALLBACK, result , 1 ); - -} - -//************************************************************************/ - -void _playback_completed_cb2(int id, void *user_data){ - int *result = (int*)user_data; - *result = id; -} - - -static void utc_wav_player_callback2_p(void){ - - int ret ; - int callback_id = 0; - int id; - - ret = wav_player_start( TESTFILE, SOUND_TYPE_MEDIA, _playback_completed_cb2, &callback_id, &id ); - - sleep(6); - dts_check_eq( API_NAME_WAVPL_CALLBACK, callback_id , id ); - - -} diff --git a/TC/tet_scen b/TC/tet_scen deleted file mode 100755 index 03f029a..0000000 --- a/TC/tet_scen +++ /dev/null @@ -1,7 +0,0 @@ -all - ^TEST -##### Scenarios for TEST ##### - -# Test scenario -TEST - :include:/testcase/tslist diff --git a/TC/tetbuild.cfg b/TC/tetbuild.cfg deleted file mode 100644 index f7eda55..0000000 --- a/TC/tetbuild.cfg +++ /dev/null @@ -1,5 +0,0 @@ -TET_OUTPUT_CAPTURE=True # capture option for build operation checking -TET_BUILD_TOOL=make # build with using make command -TET_BUILD_FILE=-f Makefile # execution file (Makefile) for build -TET_API_COMPLIANT=True # use TET API in Test Case ? -TET_PASS_TC_NAME=True # report passed TC name in Journal file? diff --git a/TC/tetclean.cfg b/TC/tetclean.cfg deleted file mode 100644 index 02d7030..0000000 --- a/TC/tetclean.cfg +++ /dev/null @@ -1,5 +0,0 @@ -TET_OUTPUT_CAPTURE=True # capture option -TET_CLEAN_TOOL= make clean # clean tool -TET_CLEAN_FILE= Makefile # file for clean -TET_API_COMPLIANT=True # TET API useage -TET_PASS_TC_NAME=True # showing name , passed TC diff --git a/TC/tetexec.cfg b/TC/tetexec.cfg deleted file mode 100644 index ef3e452..0000000 --- a/TC/tetexec.cfg +++ /dev/null @@ -1,5 +0,0 @@ -TET_OUTPUT_CAPTURE=True # capturing execution or not -TET_EXEC_TOOL= # ex) exec : execution tool set up/ Optional -TET_EXEC_FILE= # ex) exectool : execution file/ Optional -TET_API_COMPLIANT=True # Test case or Tool usesTET API? -TET_PASS_TC_NAME=True # showing Passed TC name ? diff --git a/debian/README b/debian/README deleted file mode 100644 index e69de29..0000000 diff --git a/debian/capi-media-wav-player-dev.install b/debian/capi-media-wav-player-dev.install deleted file mode 100644 index 761a28b..0000000 --- a/debian/capi-media-wav-player-dev.install +++ /dev/null @@ -1,4 +0,0 @@ -/usr/include/* -/usr/include/*/* -/usr/lib/pkgconfig/*.pc - diff --git a/debian/capi-media-wav-player-dev.postinst b/debian/capi-media-wav-player-dev.postinst deleted file mode 100644 index 1a24852..0000000 --- a/debian/capi-media-wav-player-dev.postinst +++ /dev/null @@ -1 +0,0 @@ -#!/bin/sh diff --git a/debian/capi-media-wav-player.install b/debian/capi-media-wav-player.install deleted file mode 100644 index 4a755a4..0000000 --- a/debian/capi-media-wav-player.install +++ /dev/null @@ -1 +0,0 @@ -/usr/lib/lib*.so* diff --git a/debian/capi-media-wav-player.postinst b/debian/capi-media-wav-player.postinst deleted file mode 100644 index 1a24852..0000000 --- a/debian/capi-media-wav-player.postinst +++ /dev/null @@ -1 +0,0 @@ -#!/bin/sh diff --git a/debian/changelog b/debian/changelog deleted file mode 100644 index 4d7b4f5..0000000 --- a/debian/changelog +++ /dev/null @@ -1,111 +0,0 @@ -capi-media-wav-player (0.1.0-10) unstable; urgency=low - - * Fix dependency - * Git: slp/api/wav-player - * Tag: capi-media-wav-player_0.1.0-10 - - -- Seungkeun Lee Wed, 14 Mar 2012 13:45:34 +0900 - -capi-media-wav-player (0.1.0-9) unstable; urgency=low - - * add static keyword , add sound-manager-dev depends - * Git: slp/api/wav-player - * Tag: capi-media-wav-player_0.1.0-9 - - -- Seungkeun Lee Mon, 27 Feb 2012 19:37:29 +0900 - -capi-media-wav-player (0.1.0-8) unstable; urgency=low - - * add so version - * Git: slp/api/wav-player - * Tag: capi-media-wav-player_0.1.0-8 - - -- Seungkeun Lee Tue, 14 Feb 2012 17:00:57 +0900 - -capi-media-wav-player (0.1.0-7) unstable; urgency=low - - * update parameter check code - * Git: slp/api/wav-player - * Tag: capi-media-wav-player_0.1.0-7 - - -- Seungkeun Lee Wed, 21 Dec 2011 20:04:57 +0900 - -capi-media-wav-player (0.1.0-6) unstable; urgency=low - - * Update error none value - * Git: slp-source.sec.samsung.net:slp/api/wav-player - * Tag: capi-media-wav-player_0.1.0-6 - - -- Seungkeun Lee Mon, 05 Dec 2011 11:11:04 +0900 - -capi-media-wav-player (0.1.0-5) unstable; urgency=low - - * Update log formatting - * Git: slp-source.sec.samsung.net:slp/api/wav-player - * Tag: capi-media-wav-player_0.1.0-5 - - -- Seungkeun Lee Sun, 27 Nov 2011 14:24:24 +0900 - -capi-media-wav-player (0.1.0-4) unstable; urgency=low - - * Static analysis bug fix - * Git: slp-source.sec.samsung.net:slp/api/wav-player - * Tag: capi-media-wav-player_0.1.0-4 - - -- Seungkeun Lee Fri, 25 Nov 2011 09:57:34 +0900 - -capi-media-wav-player (0.1.0-3) unstable; urgency=low - - * update namespace - * Git: slp-source.sec.samsung.net:slp/api/wav-player - * Tag: capi-media-wav-player_0.1.0-3 - - -- Seungkeun Lee Wed, 23 Nov 2011 13:08:19 +0900 - -capi-media-wav-player (0.1.0-2) unstable; urgency=low - - * update complete callback signature - * Git: slp-source.sec.samsung.net:slp/api/wav-player - * Tag: capi-media-wav-player_0.1.0-2 - - -- Seungkeun Lee Tue, 22 Nov 2011 08:50:29 +0900 - -capi-media-wav-player (0.1.0-1) unstable; urgency=low - - * SDK API Baseline - * Git: slp-source.sec.samsung.net:slp/api/wav-player - * Tag: capi-media-wav-player_0.1.0-1 - - -- Seungkeun Lee Tue, 27 Sep 2011 17:48:47 +0900 - -capi-media-wav-player (0.0.1-4) unstable; urgency=low - - * update wav_player_playback_completed_cb - * Git: slp-source.sec.samsung.net:slp/api/wav-player - * Tag: capi-media-wav-player_0.0.1-4 - - -- Seungkeun Lee Thu, 22 Sep 2011 09:46:11 +0900 - -capi-media-wav-player (0.0.1-3) unstable; urgency=low - - * Update dependancy - * Git: slp-source.sec.samsung.net:slp/api/wav-player - * Tag: capi-media-wav-player_0.0.1-3 - - -- Seungkeun Lee Mon, 29 Aug 2011 17:32:48 +0900 - -capi-media-wav-player (0.0.1-2) unstable; urgency=low - - * Update dependancy - * Git: slp-source.sec.samsung.net:slp/api/wav-player - * Tag: capi-media-wav-player_0.0.1-2 - - -- Seungkeun Lee Mon, 29 Aug 2011 14:58:29 +0900 - -capi-media-wav-player (0.0.1-1) unstable; urgency=low - - * Initial Upload - * Git: slp-source.sec.samsung.net:slp/api/wav-player - * Tag: capi-media-wav-player_0.0.1-1 - - -- Seungkeun Lee 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 100755 index e290640..0000000 --- a/debian/control +++ /dev/null @@ -1,22 +0,0 @@ - -Source: capi-media-wav-player -Section: libs -Priority: extra -Maintainer: Seungkeun Lee , Kangho Hur -Build-Depends: debhelper (>= 5), libmm-sound-dev , capi-base-common-dev , dlog-dev, capi-media-sound-manager-dev - -Package: capi-media-wav-player -Architecture: any -Depends: ${shilbs:Depends}, ${misc:Depends} -Description: A wav player library in Tizen Native API - -Package: capi-media-wav-player-dev -Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends}, capi-media-wav-player (= ${Source-Version}), capi-base-common-dev, capi-media-sound-manager-dev -Description: A wav player library in Tizen Native API (DEV) - -Package: capi-media-wav-player-dbg -Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends}, capi-media-wav-player (= ${Source-Version}) -Description: A wav player library in Tizen Native API (DBG) - diff --git a/debian/rules b/debian/rules deleted file mode 100755 index bd059be..0000000 --- a/debian/rules +++ /dev/null @@ -1,69 +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 - 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-wav-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 -