--- /dev/null
+#!/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
--- /dev/null
+#!/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
--- /dev/null
+#!/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
--- /dev/null
+#!/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
--- /dev/null
+CAPI_PROJECT_ROOT=/home/abyss/capi
+TET_INSTALL_HOST_PATH=/home/abyss/TETware
+TET_INSTALL_TARGET_PATH=/mnt/nfs/TETware
--- /dev/null
+#!/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
--- /dev/null
+CC ?= gcc
+
+C_FILES = $(shell ls *.c)
+
+PKGS = capi-media-tone-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)
--- /dev/null
+/testcase/utc_tone_player
--- /dev/null
+/*
+* 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 <tet_api.h>
+#include <tone_player.h>
+
+#define MY_ASSERT( fun , test , msg ) \
+{\
+ if( !test ) \
+ dts_fail(fun , msg ); \
+}
+
+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_tone_player_start_p(void);
+static void utc_tone_player_start_n(void);
+static void utc_tone_player_stop_p(void);
+static void utc_tone_player_stop_n(void);
+
+struct tet_testlist tet_testlist[] = {
+ { utc_tone_player_start_p , 1 },
+ { utc_tone_player_start_n , 2 },
+ { utc_tone_player_stop_p, 3 },
+ { utc_tone_player_stop_n, 4 },
+ { NULL, 0 },
+};
+
+static void startup(void)
+{
+ /* start of TC */
+}
+
+static void cleanup(void)
+{
+ /* end of TC */
+}
+
+static void utc_tone_player_start_p(void){
+ int ret;
+ ret = tone_player_start(TONE_TYPE_DEFAULT, SOUND_TYPE_MEDIA,1000, NULL);
+ MY_ASSERT(__func__, ret== TONE_PLAYER_ERROR_NONE , "tone_player_start fail");
+ dts_pass(__func__, "PASS");
+}
+static void utc_tone_player_start_n(void){
+ int ret;
+ ret = tone_player_start(-1, SOUND_TYPE_MEDIA ,1000, NULL);
+ MY_ASSERT(__func__, ret != TONE_PLAYER_ERROR_NONE , " not allow null");
+ dts_pass(__func__, "PASS");
+}
+static void utc_tone_player_stop_p(void){
+ int ret;
+ int id;
+ ret = tone_player_start(TONE_TYPE_DEFAULT, SOUND_TYPE_MEDIA,1000, &id);
+ ret = tone_player_stop(id);
+ MY_ASSERT(__func__, ret== TONE_PLAYER_ERROR_NONE , "tone_player_stop fail");
+ dts_pass(__func__, "PASS");
+}
+static void utc_tone_player_stop_n(void){
+ int ret;
+ ret = tone_player_stop(-1);
+ MY_ASSERT(__func__, ret != TONE_PLAYER_ERROR_NONE , " not allow -1");
+ dts_pass(__func__, "PASS");
+
+}
+
--- /dev/null
+all
+ ^TEST
+##### Scenarios for TEST #####
+
+# Test scenario
+TEST
+ :include:/testcase/tslist
--- /dev/null
+15|0 3.7-lite 4|TCM Start
+400|0 1 1 03:32:00|IC Start
+200|0 1 03:32:00|TP Start
+520|-1 1 00002484 1 1|20000207 03:32:00__[__type=CheckPass, api_name=utc_wav_player_start_p, file=(null)/utc_wav_player.c, func=utc_wav_player_start_p, line=48__]__
+220|0 1 0 03:32:00|PASS
+410|0 1 1 03:32:00|IC End
+400|0 2 1 03:32:00|IC Start
+200|0 2 03:32:00|TP Start
+520|-1 2 00002484 1 2|20000207 03:32:00__[__type=CheckPass, api_name=utc_wav_player_start_n, file=(null)/utc_wav_player.c, func=utc_wav_player_start_n, line=54__]__
+220|0 2 0 03:32:00|PASS
+410|0 2 1 03:32:00|IC End
+400|0 3 1 03:32:00|IC Start
+200|0 3 03:32:00|TP Start
+520|-1 3 00002484 1 3|20000207 03:32:00__[__type=CheckPass, api_name=utc_wav_player_stop_p, file=(null)/utc_wav_player.c, func=utc_wav_player_stop_p, line=62__]__
+220|0 3 0 03:32:00|PASS
+410|0 3 1 03:32:00|IC End
+400|0 4 1 03:32:00|IC Start
+200|0 4 03:32:00|TP Start
+520|-1 4 00002484 1 4|20000207 03:32:00__[__type=CheckPass, api_name=utc_wav_player_stop_n, file=(null)/utc_wav_player.c, func=utc_wav_player_stop_n, line=68__]__
+220|0 4 0 03:32:00|PASS
+410|0 4 1 03:32:00|IC End
--- /dev/null
+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?
--- /dev/null
+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
--- /dev/null
+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 ?
capi-media-tone-player (0.1.0-5) unstable; urgency=low
- * Initial release.
+ * Update error none value
+ * Git: slp-source.sec.samsung.net:slp/api/tone-player
+ * Tag: capi-media-tone-player_0.1.0-5
+
+ -- Seungkeun Lee <sngn.lee@samsung.com> Mon, 05 Dec 2011 11:06:33 +0900
+
+capi-media-tone-player (0.1.0-4) unstable; urgency=low
+
+ * Update Log formatting
+ * Git: slp-source.sec.samsung.net:slp/api/tone-player
+ * Tag: capi-media-tone-player_0.1.0-4
+
+ -- Seungkeun Lee <sngn.lee@samsung.com> Sun, 27 Nov 2011 14:17:12 +0900
+
+capi-media-tone-player (0.1.0-3) unstable; urgency=low
+
+ * update namespace
+ * Git: slp-source.sec.samsung.net:slp/api/tone-player
+ * Tag: capi-media-tone-player_0.1.0-3
+
+ -- Seungkeun Lee <sngn.lee@samsung.com> Wed, 23 Nov 2011 13:17:03 +0900
+
+capi-media-tone-player (0.1.0-2) unstable; urgency=low
+
+ * add tone type
+ * Git: slp-source.sec.samsung.net:slp/api/tone-player
+ * Tag: capi-media-tone-player_0.1.0-2
+
+ -- Seungkeun Lee <sngn.lee@samsung.com> Wed, 02 Nov 2011 17:00:07 +0900
+
+capi-media-tone-player (0.1.0-1) unstable; urgency=low
+
+ * SLP API Baseline
+ * Git: slp-source.sec.samsung.net:slp/api/tone-player
+ * Tag: capi-media-tone-player_0.1.0-1
+
+ -- Seungkeun Lee <sngn.lee@samsung.com> Tue, 27 Sep 2011 17:55:13 +0900
+
+capi-media-tone-player (0.0.1-2) unstable; urgency=low
+
+ * Update dependancy
+ * Git: slp-source.sec.samsung.net:slp/api/tone-player
+ * Tag: capi-media-tone-player_0.0.1-2
+
+ -- Seungkeun Lee <sngn.lee@samsung.com> Mon, 29 Aug 2011 15:00:47 +0900
+
+capi-media-tone-player (0.0.1-1) unstable; urgency=low
+
+ * Initial Upload
+ * Git: slp-source.sec.samsung.net:slp/api/tone-player
+ * Tag: capi-media-tone-player_0.0.1-1
- -- Seungkeun Lee <sngn.lee@samsung.com> Wed, 07 Dec 2011 12:53:09 +0900
+ -- Seungkeun Lee <sngn.lee@samsung.com> Thu, 04 Aug 2011 17:32:41 +0900
+#sbs-git:slp/api/tone-player capi-media-tone-player 0.1.0 b0f7320c6e26c5aab7708be00e7f20d018e39262
Name: capi-media-tone-player
-Summary: A tone player library in Tizen Native API
-Version: 0.1.0
+Summary: A tone player library in SLP C API
+Version: 0.1.0
Release: 9
Group: TO_BE/FILLED_IN
-License: Apache-2.0
+License: TO BE FILLED IN
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: pkgconfig(mm-sound)
%package devel
-Summary: A tone player library in Tizen Native API (Development)
+Summary: A tone player library in SLP C API (Development)
Group: TO_BE/FILLED_IN
Requires: %{name} = %{version}-%{release}