Skip to content

Commit

Permalink
Run cirque test with GDB for backtrace (#6946)
Browse files Browse the repository at this point in the history
* Run cirque test with GDB for backtrace

* Add option to allow exit after processing options
  • Loading branch information
yufengwangca authored May 21, 2021
1 parent 82a8544 commit 58e35f9
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 4 deletions.
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

0 comments on commit 58e35f9

Please sign in to comment.