diff options
author | Kyuho Jo <kyuho.jo@samsung.com> | 2012-08-21 18:12:51 +0900 |
---|---|---|
committer | Kyuho Jo <kyuho.jo@samsung.com> | 2012-08-21 18:12:51 +0900 |
commit | 7cfd2879e4ab12a9d1d83f6b184bbb1b58fd5e4c (patch) | |
tree | 8b5a47da3775d51d30e41163a787fd4882ad50f5 | |
parent | 17177361cecd11c1dcf2495826aa1eb2bab0ff3b (diff) | |
download | email-7cfd2879e4ab12a9d1d83f6b184bbb1b58fd5e4c.tar.gz email-7cfd2879e4ab12a9d1d83f6b184bbb1b58fd5e4c.tar.bz2 email-7cfd2879e4ab12a9d1d83f6b184bbb1b58fd5e4c.zip |
Removed TC files.
-rw-r--r-- | TC/.gitignore | 3 | ||||
-rwxr-xr-x | TC/_export_env.sh | 8 | ||||
-rwxr-xr-x | TC/_export_target_env.sh | 7 | ||||
-rwxr-xr-x | TC/build.sh | 16 | ||||
-rwxr-xr-x | TC/clean.sh | 11 | ||||
-rw-r--r-- | TC/config | 3 | ||||
-rwxr-xr-x | TC/config.default | 2 | ||||
-rwxr-xr-x | TC/execute.sh | 17 | ||||
-rwxr-xr-x | TC/testcase/Makefile | 25 | ||||
-rwxr-xr-x | TC/testcase/tslist | 2 | ||||
-rwxr-xr-x | TC/testcase/utc_messaging_email.c | 776 | ||||
-rwxr-xr-x | TC/tet_scen | 7 | ||||
-rwxr-xr-x | TC/tetbuild.cfg | 5 | ||||
-rwxr-xr-x | TC/tetclean.cfg | 5 | ||||
-rwxr-xr-x | TC/tetexec.cfg | 5 |
15 files changed, 0 insertions, 892 deletions
diff --git a/TC/.gitignore b/TC/.gitignore deleted file mode 100644 index 6f6a5cc..0000000 --- a/TC/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -results/ -testcase/tet_captured -testcase/utc_messaging_email 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 6be8d56..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
\ No newline at end of file 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 db0136b..0000000 --- a/TC/config +++ /dev/null @@ -1,3 +0,0 @@ -TET_INSTALL_HOST_PATH=/home/zzervb/DTS/TETware -TET_INSTALL_TARGET_PATH=/mnt/nfs/DTS/TETware - diff --git a/TC/config.default b/TC/config.default deleted file mode 100755 index 04684f0..0000000 --- a/TC/config.default +++ /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 215ad6c..0000000 --- a/TC/execute.sh +++ /dev/null @@ -1,17 +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 -grw -c 7 -f chtml -o $HTML_RESULT $JOURNAL_RESULT - diff --git a/TC/testcase/Makefile b/TC/testcase/Makefile deleted file mode 100755 index 977b55b..0000000 --- a/TC/testcase/Makefile +++ /dev/null @@ -1,25 +0,0 @@ -CC ?= gcc - -C_FILES = $(shell ls *.c) - -PKGS = capi-messaging-email 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 deleted file mode 100755 index 4cdf235..0000000 --- a/TC/testcase/tslist +++ /dev/null @@ -1,2 +0,0 @@ -/testcase/utc_messaging_email - diff --git a/TC/testcase/utc_messaging_email.c b/TC/testcase/utc_messaging_email.c deleted file mode 100755 index 898aa15..0000000 --- a/TC/testcase/utc_messaging_email.c +++ /dev/null @@ -1,776 +0,0 @@ -#include <tet_api.h> -#include <messaging/email.h> -#include <stdlib.h> - -static void startup(void); -static void cleanup(void); - -void (*tet_startup)(void) = startup; -void (*tet_cleanup)(void) = cleanup; - -static void utc_messaging_email_create_message_p(void); -//static void utc_messaging_email_create_message_n(void); -static void utc_messaging_email_destroy_message_p(void); -static void utc_messaging_email_destroy_message_n(void); -static void utc_messaging_email_set_subject_p(void); -static void utc_messaging_email_set_subject_n(void); -static void utc_messaging_email_set_body_p(void); -static void utc_messaging_email_set_body_n(void); -//static void utc_messaging_email_get_body_p(void); -//static void utc_messaging_email_get_body_n(void); -static void utc_messaging_email_add_recipient_p(void); -static void utc_messaging_email_add_recipient_n(void); -static void utc_messaging_email_remove_all_recipients_p(void); -static void utc_messaging_email_remove_all_recipients_n(void); -static void utc_messaging_email_add_attach_p(void); -static void utc_messaging_email_add_attach_n(void); -static void utc_messaging_email_remove_all_attachment_p(void); -static void utc_messaging_email_remove_all_attachment_n(void); -static void utc_messaging_email_send_message_p(void); -static void utc_messaging_email_send_message_n(void); -static void utc_messaging_email_set_message_sent_cb(void); -static void utc_messaging_email_set_message_sent_cb_n(void); -static void utc_messaging_email_unset_message_sent_cb(void); -static void utc_messaging_email_unset_message_sent_cb_n(void); - - - -enum { - POSITIVE_TC_IDX = 0x01, - NEGATIVE_TC_IDX, -}; - -struct tet_testlist tet_testlist[] = { - - { utc_messaging_email_create_message_p, POSITIVE_TC_IDX }, - //{ utc_messaging_email_create_message_n, NEGATIVE_TC_IDX }, - { utc_messaging_email_destroy_message_p, POSITIVE_TC_IDX }, - { utc_messaging_email_destroy_message_n, NEGATIVE_TC_IDX }, - { utc_messaging_email_set_subject_p, POSITIVE_TC_IDX }, - { utc_messaging_email_set_subject_n, NEGATIVE_TC_IDX }, - { utc_messaging_email_set_body_p, POSITIVE_TC_IDX }, - { utc_messaging_email_set_body_n, NEGATIVE_TC_IDX }, - //{ utc_messaging_email_get_body_p, POSITIVE_TC_IDX }, - //{ utc_messaging_email_get_body_n, NEGATIVE_TC_IDX }, - { utc_messaging_email_add_recipient_p, POSITIVE_TC_IDX }, - { utc_messaging_email_add_recipient_n, NEGATIVE_TC_IDX }, - { utc_messaging_email_remove_all_recipients_p, POSITIVE_TC_IDX }, - { utc_messaging_email_remove_all_recipients_n, NEGATIVE_TC_IDX }, - { utc_messaging_email_add_attach_p, POSITIVE_TC_IDX }, - { utc_messaging_email_add_attach_n, NEGATIVE_TC_IDX }, - { utc_messaging_email_remove_all_attachment_p, POSITIVE_TC_IDX }, - { utc_messaging_email_remove_all_attachment_n, NEGATIVE_TC_IDX }, - { utc_messaging_email_send_message_p, POSITIVE_TC_IDX }, - { utc_messaging_email_send_message_n, NEGATIVE_TC_IDX }, - { utc_messaging_email_set_message_sent_cb, POSITIVE_TC_IDX }, - { utc_messaging_email_set_message_sent_cb_n, NEGATIVE_TC_IDX }, - { utc_messaging_email_unset_message_sent_cb, POSITIVE_TC_IDX }, - { utc_messaging_email_unset_message_sent_cb_n, NEGATIVE_TC_IDX }, - - - { NULL, 0 }, -}; - - -static void startup(void) -{ - /* start of TC */ - tet_printf("\n TC start"); -} - - -static void cleanup(void) -{ - /* end of TC */ - tet_printf("\n TC end"); -} - - -/** - * @brief Positive test case of utc_messaging_email_create_message_p() - */ -static void utc_messaging_email_create_message_p(void) -{ - int ret = EMAIL_ERROR_NONE; - - email_h msg; - // Invalid parameter test - ret = email_create_message(&msg); - - if(ret == EMAIL_ERROR_NONE) { - dts_pass("email_create_message"); - } - else { - dts_message("email_create_message", "email_create_message ret : %d", ret); - dts_fail("email_create_message"); - } -} - - -/** - * @brief Positive test case of utc_messaging_email_destroy_message_p() - */ -static void utc_messaging_email_destroy_message_p(void) -{ - int ret = EMAIL_ERROR_NONE; - - email_h msg; - // Invalid parameter test - ret = email_create_message(&msg); - - if(ret != EMAIL_ERROR_NONE) - { - dts_message("email_create_message", "email_create_message ret : %d", ret); - dts_fail("email_create_message"); - } - - - ret=email_destroy_message(msg); - - if(ret == EMAIL_ERROR_NONE) { - dts_pass("email_destroy_message"); - } - else { - dts_message("email_destroy_message", "email_destroy_message ret : %d", ret); - dts_fail("email_destroy_message"); - } -} - - -/** - * @brief Negative test case of telephony_get_cell_id() - */ -static void utc_messaging_email_destroy_message_n(void) -{ - - - int ret = EMAIL_ERROR_NONE; - - - ret=email_destroy_message(NULL); - - if(ret == EMAIL_ERROR_INVALID_PARAMETER) { - dts_pass("email_destroy_message"); - } - else { - dts_message("email_destroy_message", "email_destroy_message ret : %d", ret); - dts_fail("email_destroy_message"); - } - -} - -/** - * @brief Positive test case of telephony_get_cell_id() - */ -static void utc_messaging_email_set_subject_p(void) -{ - int ret = EMAIL_ERROR_NONE; - - email_h msg; - // Invalid parameter test - ret = email_create_message(&msg); - - if(ret != EMAIL_ERROR_NONE) - { - dts_message("email_create_message", "email_create_message ret : %d", ret); - dts_fail("email_create_message"); - } - - ret=email_set_subject(msg,"titel: First email!!!"); - - - if(ret == EMAIL_ERROR_NONE) { - dts_pass("email_set_subject"); - } - else { - dts_message("email_set_subject", "email_set_subject ret : %d", ret); - dts_fail("email_set_subject"); - } - -} - - -/** - * @brief Negative test case of telephony_get_cell_id() - */ -static void utc_messaging_email_set_subject_n(void) -{ - - - int ret = EMAIL_ERROR_NONE; - - ret=email_set_subject(NULL,"titel: First email!!!"); - - - if(ret == EMAIL_ERROR_INVALID_PARAMETER) { - dts_pass("email_set_subject"); - } - else { - dts_message("email_set_subject", "email_set_subject ret : %d", ret); - dts_fail("email_set_subject"); - } - -} - -/** - * @brief Positive test case of telephony_get_cell_id() - */ -static void utc_messaging_email_set_body_p(void) -{ - int ret = EMAIL_ERROR_NONE; - - email_h msg; - // Invalid parameter test - ret = email_create_message(&msg); - - if(ret != EMAIL_ERROR_NONE) - { - dts_message("email_create_message", "email_create_message ret : %d", ret); - dts_fail("email_create_message"); - } - - ret=email_set_body(msg,"First SMS message!!!"); - - - if(ret == EMAIL_ERROR_NONE) { - dts_pass("email_set_body"); - } - else { - dts_message("email_set_body", "email_set_body ret : %d", ret); - dts_fail("email_set_body"); - } - -} - - -/** - * @brief Negative test case of telephony_get_cell_id() - */ -static void utc_messaging_email_set_body_n(void) -{ - - - int ret = EMAIL_ERROR_NONE; - - ret=email_set_body(NULL,"First SMS message!!!"); - - - if(ret == EMAIL_ERROR_INVALID_PARAMETER) { - dts_pass("email_set_body"); - } - else { - dts_message("email_set_body", "email_set_body ret : %d", ret); - dts_fail("email_set_body"); - } - -} -#if 0 -/** - * @brief Positive test case of telephony_get_cell_id() - */ -static void utc_messaging_email_get_body_p(void) -{ - int ret = EMAIL_ERROR_NONE; - email_h msg; - const char *str; - - ret =email_create_message(&msg); - - if(ret != EMAIL_ERROR_NONE) - { - dts_message("email_create_message", "email_create_message ret : %d", ret); - dts_fail("email_create_message"); - } - - ret=email_set_body(msg,"First SMS message!!!"); - - if(ret != EMAIL_ERROR_NONE) - { - dts_message("email_set_body", "email_set_body ret : %d", ret); - dts_fail("email_set_body"); - } - - ret=email_get_body(msg,str); - - - if(ret == EMAIL_ERROR_NONE) { - dts_pass("email_get_body"); - } - else { - dts_message("email_get_body", "email_get_body ret : %d", ret); - dts_fail("email_get_body"); - } - - -} - - -/** - * @brief Negative test case of telephony_get_cell_id() - */ -static void utc_messaging_email_get_body_n(void) -{ - - - int ret = EMAIL_ERROR_NONE; - const char *str; - ret=email_get_body(NULL,str); - - - - if(ret == EMAIL_ERROR_INVALID_PARAMETER) { - dts_pass("email_get_body"); - } - else { - dts_message("email_get_body", "email_get_body ret : %d", ret); - dts_fail("email_get_body"); - } - -} - -#endif - -/** - * @brief Positive test case of telephony_get_cell_id() - */ -static void utc_messaging_email_add_recipient_p(void) -{ - - int ret = EMAIL_ERROR_NONE; - email_h msg; - - - ret =email_create_message(&msg); - - if(ret != EMAIL_ERROR_NONE) - { - dts_message("email_create_message", "email_create_message ret : %d", ret); - dts_fail("email_create_message"); - } - ret=email_add_recipient(msg,EMAIL_RECIPIENT_TYPE_TO,"qqaappp@gmail.com"); - - if(ret == EMAIL_ERROR_NONE) { - dts_pass("email_add_recipien"); - } - else { - dts_message("email_add_recipien", "email_add_recipien ret : %d", ret); - dts_fail("email_add_recipien"); - } -} - - -/** - * @brief Negative test case of telephony_get_cell_id() - */ -static void utc_messaging_email_add_recipient_n(void) -{ - - email_h msg; - int ret = EMAIL_ERROR_NONE; - ret=email_add_recipient(msg,EMAIL_RECIPIENT_TYPE_TO,"qqaappp@gmail.com"); - - if(ret == EMAIL_ERROR_INVALID_PARAMETER) { - dts_pass("email_add_recipien"); - } - else { - dts_message("email_add_recipien", "email_add_recipien ret : %d", ret); - dts_fail("email_add_recipien"); - } - - -} - -/** - * @brief Positive test case of telephony_get_cell_id() - */ - //TODO: need to do multiple test -static void utc_messaging_email_remove_all_recipients_p(void) -{ - int ret = EMAIL_ERROR_NONE; - - email_h msg; - - - ret =email_create_message(&msg); - - if(ret != EMAIL_ERROR_NONE) - { - dts_message("email_create_message", "email_create_message ret : %d", ret); - dts_fail("email_create_message"); - } - ret=email_add_recipient(msg,EMAIL_RECIPIENT_TYPE_TO,"qqaappp@gmail.com"); - - if(ret != EMAIL_ERROR_NONE) - { - dts_message("email_add_recipien", "email_add_recipien ret : %d", ret); - dts_fail("email_add_recipien"); - } - - ret=email_remove_all_recipients(msg); - - if(ret == EMAIL_ERROR_NONE) { - dts_pass("email_remove_all_recipients"); - } - else { - dts_message("email_remove_all_recipients", "email_remove_all_recipients ret : %d", ret); - dts_fail("email_remove_all_recipients"); - } - -} - - -/** - * @brief Negative test case of telephony_get_cell_id() - */ -static void utc_messaging_email_remove_all_recipients_n(void) -{ - - - int ret = EMAIL_ERROR_NONE; - - ret=email_remove_all_recipients(NULL); - - if(ret == EMAIL_ERROR_INVALID_PARAMETER) { - dts_pass("email_remove_all_recipients"); - } - else { - dts_message("email_remove_all_recipients", "email_remove_all_recipients ret : %d", ret); - dts_fail("email_remove_all_recipients"); - } - - -} - - -/** - * @brief Positive test case of telephony_get_cell_id() - */ - //TODO: need to do multiple test -static void utc_messaging_email_add_attach_p(void) -{ - int ret = EMAIL_ERROR_NONE; - - email_h msg; - - FILE* file = NULL; - - - file= fopen("/tmp/emaildtstest_.txt", "w"); - if(file ==NULL) - { - dts_message("email_add_attach", "temporary file for test(/tmp/emaildtstest_.txt) is not created"); - dts_fail("email_add_attach"); - } - else - { - fclose(file); - } - ret =email_create_message(&msg); - - if(ret != EMAIL_ERROR_NONE) - { - dts_message("email_create_message", "email_create_message ret : %d", ret); - dts_fail("email_create_message"); - } - - ret=email_add_attach(msg,"/tmp/emaildtstest_.txt"); - - if(ret == EMAIL_ERROR_NONE) { - dts_pass("email_add_attach"); - } - else { - dts_message("email_add_attach", "email_add_attach ret : %d", ret); - dts_fail("email_add_attach"); - } - -} - - -/** - * @brief Negative test case of telephony_get_cell_id() - */ -static void utc_messaging_email_add_attach_n(void) -{ - - - int ret = EMAIL_ERROR_NONE; - - ret=email_add_attach(NULL,NULL); - - if(ret == EMAIL_ERROR_INVALID_PARAMETER) { - dts_pass("email_add_attach"); - } - else { - dts_message("email_add_attach", "email_add_attach ret : %d", ret); - dts_fail("email_add_attach"); - } - - -} - -/** - * @brief Positive test case of telephony_get_cell_id() - */ - //TODO: need to do multiple test -static void utc_messaging_email_remove_all_attachment_p(void) -{ - int ret = EMAIL_ERROR_NONE; - - email_h msg; - - FILE* file = NULL; - - - file= fopen("/tmp/emaildtstest_.txt", "w"); - if(file ==NULL) - { - dts_message("email_add_attach", "temporary file for test(/tmp/emaildtstest_.txt) is not created"); - dts_fail("email_add_attach"); - } - else - { - fclose(file); - } - ret =email_create_message(&msg); - - if(ret != EMAIL_ERROR_NONE) - { - dts_message("email_create_message", "email_create_message ret : %d", ret); - dts_fail("email_create_message"); - } - - ret=email_add_attach(msg,"/tmp/emaildtstest_.txt"); - - if(ret != EMAIL_ERROR_NONE) - { - dts_message("email_add_attach", "email_add_attach ret : %d", ret); - dts_fail("email_add_attach"); - } - - ret=email_remove_all_attachments(msg); - - if(ret == EMAIL_ERROR_NONE) { - dts_pass("email_remove_all_attachment"); - } - else { - dts_message("email_remove_all_attachment", "email_remove_all_attachment ret : %d", ret); - dts_fail("email_remove_all_attachment"); - } - -} - - -/** - * @brief Negative test case of telephony_get_cell_id() - */ -static void utc_messaging_email_remove_all_attachment_n(void) -{ - - email_h msg; - int ret = EMAIL_ERROR_NONE; - - ret =email_create_message(&msg); - - if(ret != EMAIL_ERROR_NONE) - { - dts_message("email_create_message", "email_create_message ret : %d", ret); - dts_fail("email_create_message"); - } - - ret=email_remove_all_attachments(msg); - - if(ret == EMAIL_ERROR_NONE) { - dts_pass("email_remove_all_attachment"); - } - else { - dts_message("email_remove_all_attachment", "email_remove_all_attachment ret : %d", ret); - dts_fail("email_remove_all_attachment"); - } - - -} -/** - * @brief Positive test case of telephony_get_cell_id() - */ -static void utc_messaging_email_send_message_p(void) -{ - int ret = EMAIL_ERROR_NONE; - email_h msg; - - - ret =email_create_message(&msg); - - if(ret != EMAIL_ERROR_NONE) - { - dts_message("email_create_message", "email_create_message ret : %d", ret); - dts_fail("email_create_message"); - } - ret=email_add_recipient(msg,EMAIL_RECIPIENT_TYPE_TO,"qqaappp@gmail.com"); - - if(ret != EMAIL_ERROR_NONE) - { - dts_message("email_add_recipient", "email_add_recipient ret : %d", ret); - dts_fail("email_add_recipient"); - } - - ret=email_set_body(msg,"First SMS message!!!"); - - - if(ret == EMAIL_ERROR_NONE) { - dts_pass("email_set_body"); - } - else { - dts_message("email_set_body", "email_set_body ret : %d", ret); - dts_fail("email_set_body"); - } - - - ret=email_send_message(msg, false); - - if(ret == EMAIL_ERROR_NONE) { - dts_pass("email_send_message"); - } - else { - dts_message("email_send_message", "email_send_message ret : %d", ret); - dts_fail("email_send_message"); - } - -} - - -/** - * @brief Negative test case of telephony_get_cell_id() - */ - //TODO: add the case where one of what shold be set is missing - // for example, recipient ,attachment or body is not set. -static void utc_messaging_email_send_message_n(void) -{ - int ret = EMAIL_ERROR_NONE; - - ret=email_send_message(NULL, false); - - if(ret == EMAIL_ERROR_INVALID_PARAMETER) { - dts_pass("email_send_message"); - } - else { - dts_message("email_send_message", "email_send_message ret : %d", ret); - dts_fail("email_send_message"); - } - -} - -/** - * @brief Positive test case of telephony_get_cell_id() - */ - -void email_cb(email_h handle, email_sending_e result, void *user_data) -{ - printf("CALLBACK EXECUTED\n"); - printf("transport status = %d\n", result); - - -} -static void utc_messaging_email_set_message_sent_cb(void) -{ - int ret = EMAIL_ERROR_NONE; - email_h msg; - - - ret =email_create_message(&msg); - - if(ret != EMAIL_ERROR_NONE) - { - dts_message("email_create_message", "email_create_message ret : %d", ret); - dts_fail("email_create_message"); - } - - ret=email_set_message_sent_cb(msg,email_cb,NULL); - - if(ret == EMAIL_ERROR_NONE) { - dts_pass("email_set_message_sent_cb"); - } - else { - dts_message("email_set_message_sent_cb", "email_set_message_sent_cb ret : %d", ret); - dts_fail("email_set_message_sent_cb"); - } -} - - -/** - * @brief Negative test case of telephony_get_cell_id() - */ -static void utc_messaging_email_set_message_sent_cb_n(void) -{ - - - int ret = EMAIL_ERROR_NONE; - - ret=email_set_message_sent_cb(NULL,NULL,NULL); - - if(ret == EMAIL_ERROR_INVALID_PARAMETER) { - dts_pass("email_set_message_sent_cb"); - } - else { - dts_message("email_set_message_sent_cb", "email_set_message_sent_cb ret : %d", ret); - dts_fail("email_set_message_sent_cb"); - } - -} - -/** - * @brief Positive test case of telephony_get_cell_id() - */ -static void utc_messaging_email_unset_message_sent_cb(void) -{ - int ret = EMAIL_ERROR_NONE; - email_h msg; - - - ret =email_create_message(&msg); - - if(ret != EMAIL_ERROR_NONE) - { - dts_message("email_create_message", "email_create_message ret : %d", ret); - dts_fail("email_create_message"); - } - - ret=email_set_message_sent_cb(msg,email_cb,NULL); - if(ret != EMAIL_ERROR_NONE) - { - dts_message("email_set_message_sent_cb", "email_set_message_sent_cb ret : %d", ret); - dts_fail("email_set_message_sent_cb"); - } - - ret=email_unset_message_sent_cb(msg ); - - if(ret == EMAIL_ERROR_NONE) { - dts_pass("email_set_message_sent_cb"); - } - else { - dts_message("email_unset_message_sent_cb", "email_unset_message_sent_cb ret : %d", ret); - dts_fail("email_unset_message_sent_cb"); - } -} - - -/** - * @brief Negative test case of telephony_get_cell_id() - */ -static void utc_messaging_email_unset_message_sent_cb_n(void) -{ - - - int ret = EMAIL_ERROR_NONE; - ret=email_unset_message_sent_cb(NULL ); - - if(ret == EMAIL_ERROR_INVALID_PARAMETER) { - dts_pass("email_unset_message_sent_cb"); - } - else { - dts_message("email_unset_message_sent_cb", "email_unset_message_sent_cb ret : %d", ret); - dts_fail("email_unset_message_sent_cb"); - } - - -} - 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 100755 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 100755 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 100755 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 ? |