From b942cb8c5c565fe1d56711607018bd36ada74f16 Mon Sep 17 00:00:00 2001 From: Le-Tin Date: Wed, 1 Sep 2021 10:54:43 +0000 Subject: gtest_dlt_daemon_gateway: fix gtest build failed Add gtest and gtest_main libraries if we don't install gtest package in system Create a new message fillter config file when running gtest gateway shell script set type of control message is CONTROL_MESSAGE_ON_DEMAND when testing dlt_gateway_send_control_message function Signed-off-by: Le-Tin --- tests/gtest_dlt_daemon_gateway.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tests/gtest_dlt_daemon_gateway.sh') diff --git a/tests/gtest_dlt_daemon_gateway.sh b/tests/gtest_dlt_daemon_gateway.sh index 5b7951d..5a357b3 100755 --- a/tests/gtest_dlt_daemon_gateway.sh +++ b/tests/gtest_dlt_daemon_gateway.sh @@ -169,8 +169,10 @@ setupTest() echo "SendControl=0x03,0x13" >>$tmpPath/dlt_gateway.conf echo "SendSerialHeader=0" >>$tmpPath/dlt_gateway.conf echo "NOFiles=1" >>$tmpPath/dlt_gateway.conf + return 0 } + # # Function: -startDaemons() # @@ -184,7 +186,7 @@ startDaemons() { DLT_PASSIVE_SHM_NAME="" tmpPath=/tmp - dlt-daemon -d + dlt-daemon -c $tmpPath/dlt_passive.conf & sleep 1 # Check if the dlt shm file exist (DLT_SHM_ENABLE=ON) @@ -192,7 +194,7 @@ startDaemons() DLT_PASSIVE_SHM_NAME="-s dlt-shm-passive" fi - dlt-daemon -d -p 3495 -c $tmpPath/dlt.conf $DLT_PASSIVE_SHM_NAME + dlt-daemon -p 3495 -c $tmpPath/dlt.conf $DLT_PASSIVE_SHM_NAME & return 0 } @@ -212,7 +214,7 @@ checkDaemonStart() if [ $total -ne '2' ]; then echo "Initialization of dlt-daemon instances failed" - exit + exit 1 fi } -- cgit v1.2.1