From efe80727aa6ec19a48bda8a4e41e8330775239c2 Mon Sep 17 00:00:00 2001 From: Takeshi Nakatani Date: Tue, 15 Jan 2019 15:18:53 +0900 Subject: [PATCH] Reflected the spelling check result for all sources(2) --- .gitignore | 25 ---------------- README.md | 2 +- tests/dtor_test.sh | 71 ---------------------------------------------- 3 files changed, 1 insertion(+), 97 deletions(-) diff --git a/.gitignore b/.gitignore index e8dbe0d..3c8a33d 100644 --- a/.gitignore +++ b/.gitignore @@ -139,31 +139,6 @@ tests/results.xml tests/k2htpdtorserver tests/k2htpdtorclient -# -# buildutils -# -buildutils/custom/*_Makefile -buildutils/custom/*.yicf - -# -# yahoo build -# -x86_64-linux-gcc -x86_64-linux-gcc/* -x86_64-linux-gcc.gcov -x86_64-linux-gcc.gcov/* -*/x86_64-linux-gcc -*/x86_64-linux-gcc/* -*/x86_64-linux-gcc.gcov -*/x86_64-linux-gcc.gcov/* -*.gcov -*.gcno -*.gcov.html -rhel.*.depend -rhel.*.package -coverage -coverage/* - # # VIM modelines # diff --git a/README.md b/README.md index 96296d9..1046604 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ k2htp_dtor k2htpdtor is for K2HASH TRANSACTION PLUGIN. ### Overview -K2HASH TRANSACTION PLUGIN is programable I/F for processing transaction +K2HASH TRANSACTION PLUGIN is programmable I/F for processing transaction data from modifying K2HASH data. This k2htp_dtor project is the base templates for building K2HASH TRANSACTION PLUGIN. diff --git a/tests/dtor_test.sh b/tests/dtor_test.sh index b516173..8b51730 100755 --- a/tests/dtor_test.sh +++ b/tests/dtor_test.sh @@ -15,53 +15,6 @@ # REVISION: # -############################################################## -### Make result xml function -### -### Usage: put_result_xml -### -put_result_xml_func() -{ - if [ $# -ne 2 ]; then - return 1 - fi - TESTRESULT=$1 - XMLOUTPUTFILE=$2 - - if [ "X$XMLOUTPUTFILE" != "X" ]; then - echo "" > $XMLOUTPUTFILE - echo "" >> $XMLOUTPUTFILE - - if [ "X$TESTRESULT" != "XOK" ]; then - echo " " >> $XMLOUTPUTFILE - echo " " >> $XMLOUTPUTFILE - echo " Test Script" >> $XMLOUTPUTFILE - echo " " >> $XMLOUTPUTFILE - echo " " >> $XMLOUTPUTFILE - echo " " >> $XMLOUTPUTFILE - echo " 1" >> $XMLOUTPUTFILE - echo " 1" >> $XMLOUTPUTFILE - echo " 1" >> $XMLOUTPUTFILE - echo " 1" >> $XMLOUTPUTFILE - echo " " >> $XMLOUTPUTFILE - else - echo " " >> $XMLOUTPUTFILE - echo " " >> $XMLOUTPUTFILE - echo " TestScript" >> $XMLOUTPUTFILE - echo " " >> $XMLOUTPUTFILE - echo " " >> $XMLOUTPUTFILE - echo " " >> $XMLOUTPUTFILE - echo " 1" >> $XMLOUTPUTFILE - echo " 0" >> $XMLOUTPUTFILE - echo " 0" >> $XMLOUTPUTFILE - echo " 0" >> $XMLOUTPUTFILE - echo " " >> $XMLOUTPUTFILE - fi - - echo "" >> $XMLOUTPUTFILE - fi -} - ############################################################## ## library path & programs path ############################################################## @@ -92,7 +45,6 @@ elif [ -f ${K2HTPBINDIR}/k2htpdtorsvr ]; then else echo "ERROR: there is no k2htpdtorsvr binary" echo "RESULT --> FAILED" - put_result_xml_func NG ${XMLRESULTSFILE} exit 1 fi if [ -f ${K2HTPSCRIPTDIR}/${OBJDIR}/k2htpdtorclient ]; then @@ -102,7 +54,6 @@ elif [ -f ${K2HTPSCRIPTDIR}/k2htpdtorclient ]; then else echo "ERROR: there is no k2htpdtorclient binary" echo "RESULT --> FAILED" - put_result_xml_func NG ${XMLRESULTSFILE} exit 1 fi if [ -f ${K2HTPLIBDIR}/${OBJDIR}/libk2htpdtor.so.1 ]; then @@ -114,7 +65,6 @@ elif [ -f ${K2HTPLIBDIR}/libk2htpdtor.so.1 ]; then else echo "ERROR: there is no libk2htpdtor.so.1 binary" echo "RESULT --> FAILED" - put_result_xml_func NG ${XMLRESULTSFILE} exit 1 fi @@ -305,7 +255,6 @@ if [ "X${DO_INI_CONF}" = "Xyes" ]; then if [ $? -ne 0 ]; then echo "RESULT --> FAILED" echo "(compare dtor_test_trans_slave_archive.log and dtor_test_slave_archive.log)" - put_result_xml_func NG ${XMLRESULTSFILE} exit 1 fi @@ -313,7 +262,6 @@ if [ "X${DO_INI_CONF}" = "Xyes" ]; then if [ $? -ne 0 ]; then echo "RESULT --> FAILED" echo "(compare k2hftdtorsvr_trans_archive.log and k2hftdtorsvr_archive.log)" - put_result_xml_func NG ${XMLRESULTSFILE} exit 1 fi @@ -321,7 +269,6 @@ if [ "X${DO_INI_CONF}" = "Xyes" ]; then if [ $? -ne 0 ]; then echo "RESULT --> FAILED" echo "(compare k2hftdtorsvr_trans_plugin.log and k2hftdtorsvr_plugin.log)" - put_result_xml_func NG ${XMLRESULTSFILE} exit 1 fi @@ -332,7 +279,6 @@ if [ "X${DO_INI_CONF}" = "Xyes" ]; then if [ $DTOR_AR_LOGCNT -ne $SVR_AR_LOGCNT -o $DTOR_AR_LOGCNT -ne $PLUGIN_LOGCNT ]; then echo "RESULT --> FAILED" echo "(archive log line count is different)" - put_result_xml_func NG ${XMLRESULTSFILE} exit 1 fi @@ -456,7 +402,6 @@ if [ "X${DO_YAML_CONF}" = "Xyes" ]; then if [ $? -ne 0 ]; then echo "RESULT --> FAILED" echo "(compare dtor_test_trans_slave_archive.log and dtor_test_slave_archive.log)" - put_result_xml_func NG ${XMLRESULTSFILE} exit 1 fi @@ -464,7 +409,6 @@ if [ "X${DO_YAML_CONF}" = "Xyes" ]; then if [ $? -ne 0 ]; then echo "RESULT --> FAILED" echo "(compare k2hftdtorsvr_trans_archive.log and k2hftdtorsvr_archive.log)" - put_result_xml_func NG ${XMLRESULTSFILE} exit 1 fi @@ -472,7 +416,6 @@ if [ "X${DO_YAML_CONF}" = "Xyes" ]; then if [ $? -ne 0 ]; then echo "RESULT --> FAILED" echo "(compare k2hftdtorsvr_trans_plugin.log and k2hftdtorsvr_plugin.log)" - put_result_xml_func NG ${XMLRESULTSFILE} exit 1 fi @@ -483,7 +426,6 @@ if [ "X${DO_YAML_CONF}" = "Xyes" ]; then if [ $DTOR_AR_LOGCNT -ne $SVR_AR_LOGCNT -o $DTOR_AR_LOGCNT -ne $PLUGIN_LOGCNT ]; then echo "RESULT --> FAILED" echo "(archive log line count is different)" - put_result_xml_func NG ${XMLRESULTSFILE} exit 1 fi @@ -607,7 +549,6 @@ if [ "X${DO_JSON_CONF}" = "Xyes" ]; then if [ $? -ne 0 ]; then echo "RESULT --> FAILED" echo "(compare dtor_test_trans_slave_archive.log and dtor_test_slave_archive.log)" - put_result_xml_func NG ${XMLRESULTSFILE} exit 1 fi @@ -615,7 +556,6 @@ if [ "X${DO_JSON_CONF}" = "Xyes" ]; then if [ $? -ne 0 ]; then echo "RESULT --> FAILED" echo "(compare k2hftdtorsvr_trans_archive.log and k2hftdtorsvr_archive.log)" - put_result_xml_func NG ${XMLRESULTSFILE} exit 1 fi @@ -623,7 +563,6 @@ if [ "X${DO_JSON_CONF}" = "Xyes" ]; then if [ $? -ne 0 ]; then echo "RESULT --> FAILED" echo "(compare k2hftdtorsvr_trans_plugin.log and k2hftdtorsvr_plugin.log)" - put_result_xml_func NG ${XMLRESULTSFILE} exit 1 fi @@ -634,7 +573,6 @@ if [ "X${DO_JSON_CONF}" = "Xyes" ]; then if [ $DTOR_AR_LOGCNT -ne $SVR_AR_LOGCNT -o $DTOR_AR_LOGCNT -ne $PLUGIN_LOGCNT ]; then echo "RESULT --> FAILED" echo "(archive log line count is different)" - put_result_xml_func NG ${XMLRESULTSFILE} exit 1 fi @@ -757,7 +695,6 @@ if [ "X${DO_JSON_STRING}" = "Xyes" ]; then if [ $? -ne 0 ]; then echo "RESULT --> FAILED" echo "(compare dtor_test_trans_slave_archive.log and dtor_test_slave_archive.log)" - put_result_xml_func NG ${XMLRESULTSFILE} exit 1 fi @@ -765,7 +702,6 @@ if [ "X${DO_JSON_STRING}" = "Xyes" ]; then if [ $? -ne 0 ]; then echo "RESULT --> FAILED" echo "(compare k2hftdtorsvr_trans_archive.log and k2hftdtorsvr_archive.log)" - put_result_xml_func NG ${XMLRESULTSFILE} exit 1 fi @@ -773,7 +709,6 @@ if [ "X${DO_JSON_STRING}" = "Xyes" ]; then if [ $? -ne 0 ]; then echo "RESULT --> FAILED" echo "(compare k2hftdtorsvr_trans_plugin.log and k2hftdtorsvr_plugin.log)" - put_result_xml_func NG ${XMLRESULTSFILE} exit 1 fi @@ -784,7 +719,6 @@ if [ "X${DO_JSON_STRING}" = "Xyes" ]; then if [ $DTOR_AR_LOGCNT -ne $SVR_AR_LOGCNT -o $DTOR_AR_LOGCNT -ne $PLUGIN_LOGCNT ]; then echo "RESULT --> FAILED" echo "(archive log line count is different)" - put_result_xml_func NG ${XMLRESULTSFILE} exit 1 fi @@ -907,7 +841,6 @@ if [ "X${DO_JSON_ENV}" = "Xyes" ]; then if [ $? -ne 0 ]; then echo "RESULT --> FAILED" echo "(compare dtor_test_trans_slave_archive.log and dtor_test_slave_archive.log)" - put_result_xml_func NG ${XMLRESULTSFILE} exit 1 fi @@ -915,7 +848,6 @@ if [ "X${DO_JSON_ENV}" = "Xyes" ]; then if [ $? -ne 0 ]; then echo "RESULT --> FAILED" echo "(compare k2hftdtorsvr_trans_archive.log and k2hftdtorsvr_archive.log)" - put_result_xml_func NG ${XMLRESULTSFILE} exit 1 fi @@ -923,7 +855,6 @@ if [ "X${DO_JSON_ENV}" = "Xyes" ]; then if [ $? -ne 0 ]; then echo "RESULT --> FAILED" echo "(compare k2hftdtorsvr_trans_plugin.log and k2hftdtorsvr_plugin.log)" - put_result_xml_func NG ${XMLRESULTSFILE} exit 1 fi @@ -934,7 +865,6 @@ if [ "X${DO_JSON_ENV}" = "Xyes" ]; then if [ $DTOR_AR_LOGCNT -ne $SVR_AR_LOGCNT -o $DTOR_AR_LOGCNT -ne $PLUGIN_LOGCNT ]; then echo "RESULT --> FAILED" echo "(archive log line count is different)" - put_result_xml_func NG ${XMLRESULTSFILE} exit 1 fi @@ -961,7 +891,6 @@ rm -f /tmp/k2htpdtorsvr_np_* echo "" echo "====== Finish all ==========================================" -put_result_xml_func OK ${XMLRESULTSFILE} exit 0 #