diff --git a/src/app/tests/integration/Dockerfile.initiator b/src/app/tests/integration/Dockerfile.initiator index 1285628634b773..4cc050455a67d8 100644 --- a/src/app/tests/integration/Dockerfile.initiator +++ b/src/app/tests/integration/Dockerfile.initiator @@ -17,6 +17,9 @@ FROM connectedhomeip/chip-cirque-device-base:latest +RUN apt-get update && \ + apt-get install --no-install-recommends -y gdb + COPY out/chip-im-initiator /usr/bin/ COPY entrypoint.sh / diff --git a/src/app/tests/integration/Dockerfile.responder b/src/app/tests/integration/Dockerfile.responder index 0ff572ed442bf7..e6dfae6e75e9d4 100644 --- a/src/app/tests/integration/Dockerfile.responder +++ b/src/app/tests/integration/Dockerfile.responder @@ -17,6 +17,9 @@ FROM connectedhomeip/chip-cirque-device-base:latest +RUN apt-get update && \ + apt-get install --no-install-recommends -y gdb + COPY out/chip-im-responder /usr/bin/ COPY entrypoint.sh / diff --git a/src/app/tests/integration/entrypoint.sh b/src/app/tests/integration/entrypoint.sh index c23ce5b0dfe8d5..bb58a3993554b5 100755 --- a/src/app/tests/integration/entrypoint.sh +++ b/src/app/tests/integration/entrypoint.sh @@ -10,7 +10,7 @@ ot-ctl ifconfig up ot-ctl thread start if [ "$1" = "responder" ]; then - chip-im-responder + gdb -batch -return-child-result -q -ex run -ex bt chip-im-responder else sleep infinity fi diff --git a/src/messaging/tests/echo/Dockerfile.requester b/src/messaging/tests/echo/Dockerfile.requester index 60091fee1d9288..8095fdb97988ab 100644 --- a/src/messaging/tests/echo/Dockerfile.requester +++ b/src/messaging/tests/echo/Dockerfile.requester @@ -17,6 +17,9 @@ FROM connectedhomeip/chip-cirque-device-base:latest +RUN apt-get update && \ + apt-get install --no-install-recommends -y gdb + COPY out/chip-echo-requester /usr/bin/ COPY entrypoint.sh / diff --git a/src/messaging/tests/echo/Dockerfile.responder b/src/messaging/tests/echo/Dockerfile.responder index eefca16ea05ee1..9e1d47e2862091 100644 --- a/src/messaging/tests/echo/Dockerfile.responder +++ b/src/messaging/tests/echo/Dockerfile.responder @@ -17,6 +17,9 @@ FROM connectedhomeip/chip-cirque-device-base:latest +RUN apt-get update && \ + apt-get install --no-install-recommends -y gdb + COPY out/chip-echo-responder /usr/bin/ COPY entrypoint.sh / diff --git a/src/messaging/tests/echo/entrypoint.sh b/src/messaging/tests/echo/entrypoint.sh index 23c00c0a659a09..52bb70830b19c0 100755 --- a/src/messaging/tests/echo/entrypoint.sh +++ b/src/messaging/tests/echo/entrypoint.sh @@ -10,7 +10,7 @@ ot-ctl ifconfig up ot-ctl thread start if [ "$1" = "responder" ]; then - chip-echo-responder + gdb -batch -return-child-result -q -ex run -ex bt chip-echo-responder else sleep infinity fi diff --git a/src/test_driver/linux-cirque/test-echo.py b/src/test_driver/linux-cirque/test-echo.py index 7a4da6eafd809e..8fd4ab10e6a016 100644 --- a/src/test_driver/linux-cirque/test-echo.py +++ b/src/test_driver/linux-cirque/test-echo.py @@ -71,7 +71,7 @@ def run_data_model_test(self): req_device_id = req_ids[0] - command = "chip-echo-requester {}" + command = "gdb -batch -return-child-result -q -ex run -ex bt --args chip-echo-requester {}" for ip in resp_ips: ret = self.execute_device_cmd( diff --git a/src/test_driver/linux-cirque/test-interaction-model.py b/src/test_driver/linux-cirque/test-interaction-model.py index 4fbd057e324896..45426bad1df469 100644 --- a/src/test_driver/linux-cirque/test-interaction-model.py +++ b/src/test_driver/linux-cirque/test-interaction-model.py @@ -71,7 +71,7 @@ def run_data_model_test(self): req_device_id = req_ids[0] - command = "chip-im-initiator {}" + command = "gdb -batch -return-child-result -q -ex run -ex bt --args chip-im-initiator {}" for ip in resp_ips: ret = self.execute_device_cmd(