Re: shell-commands in v2 tests

5 views
Skip to first unread message

Peter Johnston

unread,
Mar 4, 2022, 7:33:30 PM3/4/22
to Bruno Dal Bo, Nick Brown, component-framework-dev, Amanda Tait
I believe it's defined at //third_party/sbase:cat; it's included in //src/connectivity/network/tests:netstack-c-api-tests here via that target.

On Fri, Mar 4, 2022 at 4:54 PM Bruno Dal Bo <bruno...@google.com> wrote:
You can embed `cat` in your package and launch that. That should work. I'm having a very hard time finding `cat` in tree though.

On Fri, Mar 4, 2022 at 1:41 PM Nick Brown <nick...@google.com> wrote:
Hi All,

I'm migrating a test[1] to CFv2 that relies on `/bin/cat`, which requires the `shell-commands` feature.

Based on the documentation[2], it seems that CFv2 doesn't yet support the use of `shell-commands` in tests. Is that right? If so, is this something the components team would help with?

Thanks,

Nick



--
Bruno

Nick Brown

unread,
Mar 4, 2022, 7:33:30 PM3/4/22
to component-framework-dev, Peter Johnston, Amanda Tait, Bruno Dal Bo

Bruno Dal Bo

unread,
Mar 4, 2022, 7:33:30 PM3/4/22
to Nick Brown, component-framework-dev, Peter Johnston, Amanda Tait
You can embed `cat` in your package and launch that. That should work. I'm having a very hard time finding `cat` in tree though.

On Fri, Mar 4, 2022 at 1:41 PM Nick Brown <nick...@google.com> wrote:


--
Bruno

Bruno Dal Bo

unread,
Mar 4, 2022, 7:33:30 PM3/4/22
to Peter Johnston, Nick Brown, component-framework-dev, Amanda Tait
Thanks peter!

that means if you replace that with a dependency on `//third_party/sbase:cat_bin` you get the cat binary in your package and you can launch it from `/pkg/bin/cat` I think
--
Bruno

Bruno Dal Bo

unread,
Mar 4, 2022, 7:33:30 PM3/4/22
to Peter Johnston, Nick Brown, component-framework-dev, Amanda Tait
forgot: you need the Launcher capability probably, I *think* those are okay in tests
--
Bruno

Nick Brown

unread,
Mar 4, 2022, 7:33:36 PM3/4/22
to Bruno Dal Bo, Peter Johnston, component-framework-dev, Amanda Tait
Thanks, Bruno and Peter! That works very nicely
Reply all
Reply to author
Forward
0 new messages