Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run cirque test with GDB for backtrace #6946

Merged
merged 2 commits into from
May 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/app/tests/integration/Dockerfile.initiator
Original file line number Diff line number Diff line change
Expand Up @@ -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 /

Expand Down
3 changes: 3 additions & 0 deletions src/app/tests/integration/Dockerfile.responder
Original file line number Diff line number Diff line change
Expand Up @@ -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 /

Expand Down
2 changes: 1 addition & 1 deletion src/app/tests/integration/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions src/messaging/tests/echo/Dockerfile.requester
Original file line number Diff line number Diff line change
Expand Up @@ -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 /

Expand Down
3 changes: 3 additions & 0 deletions src/messaging/tests/echo/Dockerfile.responder
Original file line number Diff line number Diff line change
Expand Up @@ -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 /

Expand Down
2 changes: 1 addition & 1 deletion src/messaging/tests/echo/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/test_driver/linux-cirque/test-echo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/test_driver/linux-cirque/test-interaction-model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down