[ITC/UTC][Non-ACR][TC_Config.txt string usage has been removed/replaced with TCT_Prec... 59/240859/1
authorNibha Sharma <nibha.sharma@samsung.com>
Wed, 12 Aug 2020 06:45:26 +0000 (12:15 +0530)
committerNibha Sharma <nibha.sharma@samsung.com>
Wed, 12 Aug 2020 06:45:26 +0000 (12:15 +0530)
Change-Id: I44800628aa020a81c2f190660889bb7315d6eae4
Signed-off-by: Nibha Sharma <nibha.sharma@samsung.com>
14 files changed:
scripts_tpk/mobile.sed
scripts_tpk/tizeniot.sed
scripts_tpk/tv.sed
scripts_tpk/wearable.sed
src/CMakeLists.txt
src/itc/url-download/ITs-url-download-get.c
src/itc/url-download/ITs-url-download-set-get.c
src/itc/url-download/ITs-url-download.c
src/utc/email/CMakeLists.txt
src/utc/intelligent-network-monitoring/CMakeLists.txt
src/utc/messages/CMakeLists.txt
src/utc/player/CMakeLists.txt
src/utc/screen-mirroring/CMakeLists.txt
src/utc/wifi-manager/CMakeLists.txt

index 6d0b81547b28bf620c6a7273a8579fe96b8c7c68..8751a0db8d989f7b634f9a7898a2432cbd5bbe7c 100755 (executable)
@@ -1,6 +1,6 @@
 /define CONFIG_VALUE_LEN_MAX           1024/{i\
 #define CONFIG_VALUE_LEN_MAX           1024\
-#define CONFIGFILE_PATH "/home/owner/share/TC_Config.txt"\
+#define CONFIGFILE_PATH "/home/owner/share/TCT_Preconditions.txt"\
 #define TCT_CONFIG "/home/owner/share/TCT_CONFIG"\
 #define ERR_LOG        "/tmp/tclog"\
 #define ERR_UTC_LOG    "/tmp/utclog"\
index d436038f7d2abdd9f146b2379ced406408df6abb..bb6bd73ec4f38b3a7cc65caa5d15e11a1b2a0f22 100755 (executable)
@@ -1,6 +1,6 @@
 /define CONFIG_VALUE_LEN_MAX           1024/{i\
 #define CONFIG_VALUE_LEN_MAX           1024\
-#define CONFIGFILE_PATH "/home/owner/share/TC_Config.txt"\
+#define CONFIGFILE_PATH "/home/owner/share/TCT_Preconditions.txt"\
 #define TCT_CONFIG "/home/owner/share/TCT_CONFIG"\
 #define ERR_LOG        "/tmp/tclog"\
 #define ERR_UTC_LOG    "/tmp/utclog"\
index 30e613ebc541fc2b017701502694f0d44624b386..5472dca93e975d0acb8a34a7f344f28c52a87694 100755 (executable)
@@ -1,6 +1,6 @@
 /define CONFIG_VALUE_LEN_MAX           1024/{i\
 #define CONFIG_VALUE_LEN_MAX           1024\
-#define CONFIGFILE_PATH "/home/owner/share/TC_Config.txt"\
+#define CONFIGFILE_PATH "/home/owner/share/TCT_Preconditions.txt"\
 #define TCT_CONFIG "/home/owner/share/TCT_CONFIG"\
 #define ERR_LOG        "/tmp/tclog"\
 #define ERR_UTC_LOG    "/tmp/utclog"\
index 007483bb824e84fd349378a19165156ed05a2240..2c1d5243891326989cffb85278cf87f7bc6c4804 100755 (executable)
@@ -1,6 +1,6 @@
 /define CONFIG_VALUE_LEN_MAX           1024/{i\
 #define CONFIG_VALUE_LEN_MAX           1024\
-#define CONFIGFILE_PATH "/home/owner/share/TC_Config.txt"\
+#define CONFIGFILE_PATH "/home/owner/share/TCT_Preconditions.txt"\
 #define TCT_CONFIG "/home/owner/share/TCT_CONFIG"\
 #define ERR_LOG        "/tmp/tclog"\
 #define ERR_UTC_LOG    "/tmp/utclog"\
index addcc7dd769946851ed27ff8d8ebfab4a37cb3ec..7ad4316e543e3a8c503ed23127f5048f33f71fcb 100755 (executable)
@@ -3,7 +3,6 @@ IF( DEFINED MODULE )
        SET(SPEEDCHECK 0)
        SET(MEMORYCHECK 0)
        SET(DEBUGVAL 0)
-       SET(CONFIGFILEPATH "\"/home/owner/share/TC_Config.txt\"")
        SET(TCT_CONFIG "\"/home/owner/share/TCT_CONFIG\"")
        SET(ERR_LOG "\"/tmp/tclog\"")
        SET(ERR_UTC_LOG "\"/tmp/utclog\"")
@@ -44,7 +43,6 @@ ENDIF()
        add_definitions(-DSPEED_CHECK=${SPEEDCHECK})
        add_definitions(-DMEMORY_CHECK=${MEMORYCHECK})
        add_definitions(-DDEBUG=${DEBUGVAL})
-       add_definitions(-DCONFIGFILE_PATH=${CONFIGFILEPATH})
        add_definitions(-DTCT_CONFIG=${TCT_CONFIG})
        add_definitions(-DERR_LOG=${ERR_LOG})
        add_definitions(-DERR_UTC_LOG=${ERR_UTC_LOG})
@@ -57,7 +55,7 @@ ELSE( DEFINED MODULE )
        SET(SPEEDCHECK 0)
        SET(MEMORYCHECK 0)
        SET(DEBUGVAL 0)
-       SET(CONFIGFILEPATH "\"/home/owner/share/TC_Config.txt\"")
+       SET(CONFIGFILEPATH "\"/home/owner/share/TCT_Preconditions.txt\"")
        SET(ERR_LOG "\"/tmp/tclog\"")
        IF(CMAKE_SYSTEM_PROCESSOR STREQUAL armv7l)
                SET(ARCHTYPE "\"armv7l\"")
index 548d4b987dfa052be0d67c32d68f2bf64677b66e..4c910b7151246c8a785bf2859965f5d7fd64a7c4 100755 (executable)
@@ -293,7 +293,7 @@ int ITc_download_get_temp_path_p(void)
 * @apicovered                  download_set_state_changed_cb, download_unset_state_changed_cb, download_start, download_cancel, download_get_content_name
 * @passcase                            if download_get_content_name returns success and all supporting returns success
 * @failcase                            if download_get_content_name returns fail or any supporting API fails
-* @precondition                        device must be connected to outside world through a working network using WiFi or Data Network, download request must be created, Correct url of a large size file must be updated as URLDOWNLOAD_DOWNLOADURL_I586 or URLDOWNLOAD_DOWNLOADURL_ARM in TC_Config.txt
+* @precondition                        device must be connected to outside world through a working network using WiFi or Data Network, download request must be created, Correct url of a large size file must be updated as URLDOWNLOAD_DOWNLOADURL_I586 or URLDOWNLOAD_DOWNLOADURL_ARM in TCT_Preconditions.txt
 * @postcondition               unload all data concerning a download id from memory
 */
 int ITc_download_get_content_name_p(void)
@@ -359,7 +359,7 @@ int ITc_download_get_content_name_p(void)
 * @apicovered                  download_set_state_changed_cb, download_unset_state_changed_cb, download_start, download_cancel, download_get_content_size
 * @passcase                            if download_get_content_size returns success and all supporting returns success
 * @failcase                            if download_get_content_size returns fail or any supporting API fails
-* @precondition                        device must be connected to outside world through a working network using WiFi or Data Network, download request must be created, Correct url of a large size file must be updated as URLDOWNLOAD_DOWNLOADURL_I586 or URLDOWNLOAD_DOWNLOADURL_ARM in TC_Config.txt
+* @precondition                        device must be connected to outside world through a working network using WiFi or Data Network, download request must be created, Correct url of a large size file must be updated as URLDOWNLOAD_DOWNLOADURL_I586 or URLDOWNLOAD_DOWNLOADURL_ARM in TCT_Preconditions.txt
 * @postcondition               unload all data concerning a download id from memory
 */
 int ITc_download_get_content_size_p(void)
@@ -425,7 +425,7 @@ int ITc_download_get_content_size_p(void)
 * @apicovered                  download_set_state_changed_cb, download_unset_state_changed_cb, download_start, download_get_downloaded_file_path
 * @passcase                            if download_get_downloaded_file_path returns success and all supporting returns success
 * @failcase                            if download_get_downloaded_file_path returns fail or any supporting API fails
-* @precondition                        device must be connected to outside world through a working network using WiFi or Data Network, download request must be created, Correct url of a large size file must be updated as URLDOWNLOAD_DOWNLOADURL_I586 or URLDOWNLOAD_DOWNLOADURL_ARM in TC_Config.txt
+* @precondition                        device must be connected to outside world through a working network using WiFi or Data Network, download request must be created, Correct url of a large size file must be updated as URLDOWNLOAD_DOWNLOADURL_I586 or URLDOWNLOAD_DOWNLOADURL_ARM in TCT_Preconditions.txt
 * @postcondition               unload all data concerning a download id from memory
 */
 int ITc_download_get_downloaded_file_path_p(void)
@@ -491,7 +491,7 @@ int ITc_download_get_downloaded_file_path_p(void)
 * @apicovered                  download_set_state_changed_cb, download_unset_state_changed_cb, download_set_url, download_start, download_get_etag
 * @passcase                            if download_get_etag returns success and all supporting returns success
 * @failcase                            if download_get_etag returns fail or any supporting API fails
-* @precondition                        device must be connected to outside world through a working network using WiFi or Data Network, download request must be created, Correct url having etag response must be updated as URLDOWNLOAD_URLWITHETAG_I586 or URLDOWNLOAD_URLWITHETAG_ARM in TC_Config.txt
+* @precondition                        device must be connected to outside world through a working network using WiFi or Data Network, download request must be created, Correct url having etag response must be updated as URLDOWNLOAD_URLWITHETAG_I586 or URLDOWNLOAD_URLWITHETAG_ARM in TCT_Preconditions.txt
 * @postcondition               unload all data concerning a download id from memory
 */
 int ITc_download_get_etag_p(void)
@@ -573,7 +573,7 @@ int ITc_download_get_etag_p(void)
 * @apicovered                  download_set_state_changed_cb, download_unset_state_changed_cb, download_set_url, download_start, download_get_etag
 * @passcase                            if download_get_etag returns success and all supporting returns success
 * @failcase                            if download_get_etag returns fail or any supporting API fails
-* @precondition                        device must be connected to outside world through a working network using WiFi or Data Network, download request must be created, Correct url having etag response must be updated as URLDOWNLOAD_URLWITHETAG_I586 or URLDOWNLOAD_URLWITHETAG_ARM in TC_Config.txt
+* @precondition                        device must be connected to outside world through a working network using WiFi or Data Network, download request must be created, Correct url having etag response must be updated as URLDOWNLOAD_URLWITHETAG_I586 or URLDOWNLOAD_URLWITHETAG_ARM in TCT_Preconditions.txt
 * @postcondition               unload all data concerning a download id from memory
 */
 int ITc_download_get_etag_p(void)
@@ -653,7 +653,7 @@ int ITc_download_get_etag_p(void)
 * @apicovered                  download_set_state_changed_cb, download_unset_state_changed_cb, download_start, download_get_http_status
 * @passcase                            if download_get_http_status returns success and all supporting returns success
 * @failcase                            if download_get_http_status returns fail or any supporting API fails
-* @precondition                        device must be connected to outside world through a working network using WiFi or Data Network, download request must be created, Correct url of a large size file must be updated as URLDOWNLOAD_DOWNLOADURL_I586 or URLDOWNLOAD_DOWNLOADURL_ARM in TC_Config.txt
+* @precondition                        device must be connected to outside world through a working network using WiFi or Data Network, download request must be created, Correct url of a large size file must be updated as URLDOWNLOAD_DOWNLOADURL_I586 or URLDOWNLOAD_DOWNLOADURL_ARM in TCT_Preconditions.txt
 * @postcondition               unload all data concerning a download id from memory
 */
 int ITc_download_get_http_status_p(void)
@@ -719,7 +719,7 @@ int ITc_download_get_http_status_p(void)
 * @apicovered                  download_set_state_changed_cb, download_unset_state_changed_cb, download_start, download_get_mime_type
 * @passcase                            if download_get_mime_type returns success and all supporting returns success
 * @failcase                            if download_get_mime_type returns fail or any supporting API fails
-* @precondition                        device must be connected to outside world through a working network using WiFi or Data Network, download request must be created, Correct url of a large size file must be updated as URLDOWNLOAD_DOWNLOADURL_I586 or URLDOWNLOAD_DOWNLOADURL_ARM in TC_Config.txt
+* @precondition                        device must be connected to outside world through a working network using WiFi or Data Network, download request must be created, Correct url of a large size file must be updated as URLDOWNLOAD_DOWNLOADURL_I586 or URLDOWNLOAD_DOWNLOADURL_ARM in TCT_Preconditions.txt
 * @postcondition               unload all data concerning a download id from memory
 */
 int ITc_download_get_mime_type_p(void)
index a4d4c6f4c4682d1ea9f1650d98e5d2e0a80ae543..af0ac582dca922aeee5273a625de1747605858dc 100755 (executable)
@@ -599,7 +599,7 @@ int ITc_download_set_get_url_p(void)
 * @apicovered                  download_set_state_changed_cb, download_unset_state_changed_cb,download_start, download_cancel
 * @passcase                            if download_set_state_changed_cb, download_unset_state_changed_cb returns success and callback is called after downloading state is changed after callback is registered also callback should not be called after downloading state is changed after callback is unregistered
 * @failcase                            if download_set_state_changed_cb, download_unset_state_changed_cb returns fail or callback is not called after downloading state is changed after callback is registered or if callback is called after downloading state is changed after callback is unregistered
-* @precondition                        device must be connected to outside world through a working network using WiFi or Data Network, download request must be created, Correct URL of a file to be downloaded must be updated as URLDOWNLOAD_URL_I586 or URLDOWNLOAD_URL_ARM in TC_Config.txt
+* @precondition                        device must be connected to outside world through a working network using WiFi or Data Network, download request must be created, Correct URL of a file to be downloaded must be updated as URLDOWNLOAD_URL_I586 or URLDOWNLOAD_URL_ARM in TCT_Preconditions.txt
 * @postcondition               unload all data concerning a download id from memory
 */
 int ITc_download_set_get_state_changed_cb_p(void)
index 878eb5d60ae2f45e4d3c78cc8061d98aae42bdb1..d6219828398883dff085192c48193248cc1cc966 100755 (executable)
@@ -195,7 +195,7 @@ int ITc_download_add_remove_http_header_field_p(void)
 * @apicovered                  download_set_progress_cb, download_unset_progress_cb, download_start, download_cancel
 * @passcase                            if download_set_progress_cb, download_unset_progress_cb returns success and callback is called after downloading progress is changed after callback is registered also callback should not be called after downloading progress is changed after callback is unregistered
 * @failcase                            if download_set_progress_cb, download_unset_progress_cb returns fail or callback is not called after downloading progress is changed after callback is registered or if callback is called after downloading progress is changed after callback is unregistered
-* @precondition                        device must be connected to outside world through a working network using WiFi or Data Network, download request must be created, Correct URL of a file to be downloaded must be updated as URLDOWNLOAD_URL_I586 or URLDOWNLOAD_URL_ARM in TC_Config.txt
+* @precondition                        device must be connected to outside world through a working network using WiFi or Data Network, download request must be created, Correct URL of a file to be downloaded must be updated as URLDOWNLOAD_URL_I586 or URLDOWNLOAD_URL_ARM in TCT_Preconditions.txt
 * @postcondition               unload all data concerning a download id from memory
 */
 int ITc_download_set_unset_progress_cb_p(void)
@@ -263,7 +263,7 @@ int ITc_download_set_unset_progress_cb_p(void)
 * @apicovered                  download_set_state_changed_cb, download_unset_state_changed_cb, download_start, download_cancel
 * @passcase                            if download_start, download_cancel returns success and all supporting returns success
 * @failcase                            if download_start, download_cancel returns fail or any supporting API fails
-* @precondition                        device must be connected to outside world through a working network using WiFi or Data Network, download request must be created, Correct URL of a file to be downloaded must be updated as URLDOWNLOAD_URL_I586 or URLDOWNLOAD_URL_ARM in TC_Config.txt
+* @precondition                        device must be connected to outside world through a working network using WiFi or Data Network, download request must be created, Correct URL of a file to be downloaded must be updated as URLDOWNLOAD_URL_I586 or URLDOWNLOAD_URL_ARM in TCT_Preconditions.txt
 * @postcondition               unload all data concerning a download id from memory
 */
 int ITc_download_start_cancel_p(void)
@@ -319,7 +319,7 @@ int ITc_download_start_cancel_p(void)
 * @apicovered                  download_set_state_changed_cb, download_unset_state_changed_cb, download_start, download_pause, download_cancel
 * @passcase                            if download_pause returns success and all supporting returns success
 * @failcase                            if download_pause returns fail or any supporting API fails
-* @precondition                        device must be connected to outside world through a working network using WiFi or Data Network, download request must be created, Correct url of a large size file must be updated as URLDOWNLOAD_DOWNLOADURL_I586 or URLDOWNLOAD_DOWNLOADURL_ARM in TC_Config.txt
+* @precondition                        device must be connected to outside world through a working network using WiFi or Data Network, download request must be created, Correct url of a large size file must be updated as URLDOWNLOAD_DOWNLOADURL_I586 or URLDOWNLOAD_DOWNLOADURL_ARM in TCT_Preconditions.txt
 * @postcondition               unload all data concerning a download id from memory
 */
 int ITc_download_pause_p(void)
index 7258d9ab982665208253a2e8658d3d831fdd3cbc..a6c21bfeee66ce5164e4d0ba37c23b4032125719 100644 (file)
@@ -2,7 +2,6 @@ SET(PKG_NAME "email")
 
 SET(EXEC_NAME "tct-${PKG_NAME}-core")
 SET(RPM_NAME "core-${PKG_NAME}-tests")
-SET(CONFIGFILEPATH "\"/home/owner/share/TC_Config.txt\"")
 SET(CAPI_LIB "capi-messaging-email")
 SET(TC_SOURCES
     utc-messaging-email.c
@@ -29,7 +28,6 @@ TARGET_LINK_LIBRARIES(${EXEC_NAME}
 INSTALL(PROGRAMS ${EXEC_NAME}
     DESTINATION ${BIN_DIR}/${RPM_NAME}/bin
 )
-add_definitions(-DCONFIGFILE_PATH=${CONFIGFILEPATH})
 IF( DEFINED ASAN )
 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer")
 SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address")
index d6a8e35791d53ae0a380261674ef1c8d264912c0..e1946c3a526dbb71ad475a1a85bcbb695475f233 100755 (executable)
@@ -2,7 +2,6 @@ SET(PKG_NAME "intelligent-network-monitoring")
 
 SET(EXEC_NAME "tct-${PKG_NAME}-core")
 SET(RPM_NAME "core-${PKG_NAME}-tests")
-SET(CONFIGFILEPATH "\"/home/owner/share/TC_Config.txt\"")
 
 SET(CAPI_LIB "capi-network-inm")
 SET(TC_SOURCES
@@ -34,7 +33,6 @@ INSTALL(PROGRAMS ${EXEC_NAME}
     DESTINATION ${BIN_DIR}/${RPM_NAME}/bin
 )
 
-add_definitions(-DCONFIGFILE_PATH=${CONFIGFILEPATH})
 IF( DEFINED ASAN )
 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer")
 SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address")
index 89b68e12a639aba991416c9b589faa392d37f47d..ae969171aa6d408fb132de5fbc7b1ba694a76423 100755 (executable)
@@ -4,7 +4,6 @@ SET(EXEC_NAME "tct-${PKG_NAME}-core")
 SET(RPM_NAME "core-${PKG_NAME}-tests")
 
 SET(CAPI_LIB "capi-messaging-messages")
-SET(CONFIGFILEPATH "\"/home/owner/share/TC_Config.txt\"")
 SET(TC_SOURCES
     utc-messaging-messages.c
 )
index 7eb0bbf5aff91fd0dcc91a0b0ad888aefe93c774..494e54b0746a52cafc95175320c621533d4544ea 100644 (file)
@@ -2,7 +2,6 @@ SET(PKG_NAME "player")
 
 SET(EXEC_NAME "tct-${PKG_NAME}-core")
 SET(RPM_NAME "core-${PKG_NAME}-tests")
-SET(CONFIGFILEPATH "\"/home/owner/share/TC_Config.txt\"")
 SET(CAPI_LIB "capi-media-player")
 IF(DEFINED TIZENIOT)
 SET(TC_SOURCES
index 483678e006ea1fb4db050b9fada2df5fa6e6e357..2f0a3930a41c69bcd8e829295cd09e139f156990 100644 (file)
@@ -2,7 +2,6 @@ SET(PKG_NAME "screen-mirroring")
 
 SET(EXEC_NAME "tct-${PKG_NAME}-core")
 SET(RPM_NAME "core-${PKG_NAME}-tests")
-SET(CONFIGFILEPATH "\"/home/owner/share/TC_Config.txt\"")
 SET(CAPI_LIB "capi-media-screen-mirroring")
 SET(TC_SOURCES
     utc-media-screen-mirroring-sink.c
@@ -29,7 +28,6 @@ TARGET_LINK_LIBRARIES(${EXEC_NAME}
 INSTALL(PROGRAMS ${EXEC_NAME}
     DESTINATION ${BIN_DIR}/${RPM_NAME}/bin
 )
-add_definitions(-DCONFIGFILE_PATH=${CONFIGFILEPATH})
 IF( DEFINED ASAN )
 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer")
 SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address")
index ccd85d534f0aa50c9a26b01e57cfa64d4682773d..8fadec307c06aac262c04c47bb25800625ef1ff5 100755 (executable)
@@ -2,7 +2,6 @@ SET(PKG_NAME "wifi-manager")
 
 SET(EXEC_NAME "tct-${PKG_NAME}-core")
 SET(RPM_NAME "core-${PKG_NAME}-tests")
-SET(CONFIGFILEPATH "\"/home/owner/share/TC_Config.txt\"")
 
 SET(CAPI_LIB "capi-network-wifi-manager")
 SET(TC_SOURCES
@@ -37,7 +36,6 @@ INSTALL(PROGRAMS ${EXEC_NAME}
     DESTINATION ${BIN_DIR}/${RPM_NAME}/bin
 )
 
-add_definitions(-DCONFIGFILE_PATH=${CONFIGFILEPATH})
 IF( DEFINED ASAN )
 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -pie -g -fsanitize=address -fsanitize-recover=address -U_FORTIFY_SOURCE -fno-omit-frame-pointer")
 SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib -Wl,-fsanitize=address")