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

Use libshell under examples/platform/linux/AppMain.cpp only if chip_b… #7813

Merged

Conversation

vivien-apple
Copy link
Contributor

…uild_libshell is true

Problem

./scripts/tests/test_suites.sh can not be runned under darwin because of the usage of libshell.

Change overview

  • Enable libshell for examples/platform/linux/AppMain.cpp only if chip_build_libshell=true
  • Add touch /tmp/all-clusters-log to scripts/tests/test_suites.sh to avoid an error message grep: /tmp/all-clusters-log: No such file or directory

Testing

This was tested running scripts/tests/test_suites.sh on the command line. It was not working previously.


declare_args() {
# Enable libshell support.
chip_build_libshell = false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems fine, but should this default to true on Linux to preserve current behavior?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine to enable it back into examples/platform/linux/BUILD.gn for Linux platform if required. I have disabled it mostly because chip_build_libshell was false by default in src/lib/BUILD.gn and other platforms enable it conditionally.
Furthermore, I've tried to see what it does by typing commands in and there is not much commands at the moment, so I'm not sure how much it is used. Again if someone insist, I will add it back.

For references the commands are:

help
help
  base64          Base64 encode / decode utilities
  exit            Exit the shell application
  help            List out all top level commands
  version         Output the software version
  config          Dump device configuration. Usage: config [param_name]
Done

@woody-apple woody-apple merged commit 12514cc into project-chip:master Jun 22, 2021
nikita-s-wrk pushed a commit to nikita-s-wrk/connectedhomeip that referenced this pull request Sep 23, 2021
jamesharrow added a commit to jamesharrow/connectedhomeip that referenced this pull request Nov 15, 2023
jamesharrow added a commit to jamesharrow/connectedhomeip that referenced this pull request Nov 19, 2023
jamesharrow added a commit that referenced this pull request Nov 19, 2023
… autogen code. Last commit before rebasing to upstream.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Linux shell makes running chip-all-clusters-app in the background pretty broken
5 participants