2727CAPTURE_DURATION_SECONDS = 10
2828
2929# DLT message identifiers for datarouter statistics
30- APP_ID = "DR"
31- CTX_ID = "STAT"
30+
31+ APP_ID = "EXA"
32+ CTX_ID = "DFLT"
3233
3334_QNX_DATAROUTER_CHECK_CMD = "/proc/boot/pidin | /proc/boot/grep datarouter"
3435_LINUX_DATAROUTER_CHECK_CMD = "ps -ef | grep datarouter | grep -v grep"
4041 "./datarouter --no_adaptive_runtime > /dev/null 2>&1 &"
4142)
4243_LINUX_DATAROUTER_START_CMD = "cd /usr/bin/datarouter && nohup ./datarouter --no_adaptive_runtime > /dev/null 2>&1 &"
44+
45+
46+ _LOGGINGAPP_START_CMD = "cd /showcases/data/logging/logging_app/etc && nohup /showcases/bin/logging_app &"
4347# Multicast route directs all multicast traffic (224.0.0.0/4) out of the containers
4448# network interface required for DLT messages to reach the host via the Docker bridge.
4549_LINUX_CHECK_MULTICAST_ROUTE_CMD = "ip route add 224.0.0.0/4 dev eth0 2>/dev/null || true"
@@ -85,7 +89,7 @@ def datarouter_running(target):
8589 yield
8690
8791
88- def test_remote_logging (datarouter_running , dlt_config ):
92+ def test_remote_logging (datarouter_running , target , dlt_config ):
8993 """Verifies remote logging of Dataraouter
9094
9195 Starts Datarouter on the target if not already running, then
@@ -100,6 +104,10 @@ def test_remote_logging(datarouter_running, dlt_config):
100104 print_to_stdout = True ,
101105 binary_path = dlt_config .dlt_receive_path ,
102106 ) as window :
107+ logger .info ("Starting logging app to generate DLT messages.." )
108+ exit_code , out = target .execute (_LOGGINGAPP_START_CMD )
109+ logger .debug ("Logging app start command exit_code=%s" , exit_code )
110+
103111 time .sleep (CAPTURE_DURATION_SECONDS )
104112
105113 record = window .record (filters = [(APP_ID , CTX_ID )])
0 commit comments