diff options
author | Le-Tin <Tin.Le@vn.bosch.com> | 2021-09-01 10:54:43 +0000 |
---|---|---|
committer | Saya Sugiura <ssugiura@jp.adit-jv.com> | 2021-10-05 11:07:38 +0900 |
commit | b942cb8c5c565fe1d56711607018bd36ada74f16 (patch) | |
tree | 3ea1d47e598fafab5ec64e9e67e33535c50b40aa /tests/gtest_dlt_daemon_gateway.sh | |
parent | f16953f5ab2506ef0fb714fe6bb8a022845b8c68 (diff) | |
download | DLT-daemon-b942cb8c5c565fe1d56711607018bd36ada74f16.tar.gz |
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 <Tin.Le@vn.bosch.com>
Diffstat (limited to 'tests/gtest_dlt_daemon_gateway.sh')
-rwxr-xr-x | tests/gtest_dlt_daemon_gateway.sh | 8 |
1 files changed, 5 insertions, 3 deletions
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 } |