update latest 2.0alpha master 2.0_alpha submit/master/20120920.151033
authorYoungHun Kim <yh8004.kim@samsung.com>
Tue, 21 Aug 2012 11:58:44 +0000 (20:58 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Tue, 21 Aug 2012 11:58:44 +0000 (20:58 +0900)
25 files changed:
TC/_export_env.sh [new file with mode: 0755]
TC/_export_target_env.sh [new file with mode: 0755]
TC/build.sh [new file with mode: 0755]
TC/clean.sh [new file with mode: 0755]
TC/config.default [new file with mode: 0644]
TC/execute.sh [new file with mode: 0755]
TC/testcase/Makefile [new file with mode: 0755]
TC/testcase/tslist [new file with mode: 0644]
TC/testcase/utc_tone_player.c [new file with mode: 0755]
TC/tet_scen [new file with mode: 0755]
TC/tet_xres [new file with mode: 0644]
TC/tetbuild.cfg [new file with mode: 0644]
TC/tetclean.cfg [new file with mode: 0644]
TC/tetexec.cfg [new file with mode: 0644]
capi-media-tone-player.pc.in [changed mode: 0755->0644]
debian/README [changed mode: 0755->0644]
debian/capi-media-tone-player-dev.install [changed mode: 0755->0644]
debian/capi-media-tone-player-dev.postinst [changed mode: 0755->0644]
debian/capi-media-tone-player.install [changed mode: 0755->0644]
debian/capi-media-tone-player.postinst [changed mode: 0755->0644]
debian/changelog [changed mode: 0755->0644]
debian/compat [changed mode: 0755->0644]
include/tone_player.h [changed mode: 0755->0644]
packaging/capi-media-tone-player.spec
test/CMakeLists.txt [changed mode: 0755->0644]

diff --git a/TC/_export_env.sh b/TC/_export_env.sh
new file mode 100755 (executable)
index 0000000..72a11ec
--- /dev/null
@@ -0,0 +1,8 @@
+#!/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
new file mode 100755 (executable)
index 0000000..5ddaa53
--- /dev/null
@@ -0,0 +1,7 @@
+#!/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
new file mode 100755 (executable)
index 0000000..72aad6c
--- /dev/null
@@ -0,0 +1,16 @@
+#!/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
new file mode 100755 (executable)
index 0000000..29743e0
--- /dev/null
@@ -0,0 +1,11 @@
+#!/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
new file mode 100644 (file)
index 0000000..12ac1e2
--- /dev/null
@@ -0,0 +1,3 @@
+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
new file mode 100755 (executable)
index 0000000..a4f6095
--- /dev/null
@@ -0,0 +1,15 @@
+#!/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
new file mode 100755 (executable)
index 0000000..b8d0f74
--- /dev/null
@@ -0,0 +1,25 @@
+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)
diff --git a/TC/testcase/tslist b/TC/testcase/tslist
new file mode 100644 (file)
index 0000000..0c3e41b
--- /dev/null
@@ -0,0 +1 @@
+/testcase/utc_tone_player
diff --git a/TC/testcase/utc_tone_player.c b/TC/testcase/utc_tone_player.c
new file mode 100755 (executable)
index 0000000..4f74251
--- /dev/null
@@ -0,0 +1,89 @@
+/*
+* 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");                     
+
+}
+
diff --git a/TC/tet_scen b/TC/tet_scen
new file mode 100755 (executable)
index 0000000..03f029a
--- /dev/null
@@ -0,0 +1,7 @@
+all
+       ^TEST
+##### Scenarios for TEST #####
+
+# Test scenario
+TEST
+       :include:/testcase/tslist
diff --git a/TC/tet_xres b/TC/tet_xres
new file mode 100644 (file)
index 0000000..a2e94c2
--- /dev/null
@@ -0,0 +1,21 @@
+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
diff --git a/TC/tetbuild.cfg b/TC/tetbuild.cfg
new file mode 100644 (file)
index 0000000..f7eda55
--- /dev/null
@@ -0,0 +1,5 @@
+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
new file mode 100644 (file)
index 0000000..02d7030
--- /dev/null
@@ -0,0 +1,5 @@
+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
new file mode 100644 (file)
index 0000000..ef3e452
--- /dev/null
@@ -0,0 +1,5 @@
+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 ?
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index 7808f50..faa7bd7
@@ -32,6 +32,56 @@ capi-media-tone-player (0.1.0-6) unstable; urgency=low
 
 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
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index 3a168d2..16c5899 100755 (executable)
@@ -1,9 +1,10 @@
+#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)
@@ -17,7 +18,7 @@ Requires(postun): /sbin/ldconfig
 
 
 %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}
 
old mode 100755 (executable)
new mode 100644 (file)