Re: Situation with net APIs testing
Paul Sokolovsky
Hello Jukka,
toggle quoted messageShow quoted text
On Thu, 15 Jun 2017 10:46:29 +0300
Jukka Rissanen <jukka.rissanen@...> wrote: [] That explains it, thanks.as part of sanitycheck testsuite! But, 8 tests of tests/net/ haveWhen we had gerrit and jenkins, some of the net tests run slightly [] All other tests programs (24 pieces), that consists of quite manyGreat, thanks for clarifying this. Though I hope you'd agree that seeing such tests as "context" or "tcp" fail does lead to concerns. I will fix the relevant failing tests as they have bit rotted afterNice, thanks for finding time for this! Converting two mqtt tests to not use real qemu [] I see. I may imagine they offer more functionality than just a loopbackOne would think that if we have 22 repetitive implementations ofNo, the interface is not a loopback interface although it might look interface. I also may imagine that each of 22 test device implementations are slightly different to cater for particular testcases. Nothing of that help someone wanting to write a new test unfortunately. How would one know that there's no standard device implementation for dependency-free testing, and having figured that, how one would choose which of 22 cases to use as a template? The loopback support has limited use cases actually and we probablyI absolutely agree that loopback device would be mostly useful for development and testing, not for production. It also offers limited testing indeed. But it has one big advantage: tests using it can be easily run using existing sanitycheck framework. And if loopback device existed in the main code, such tests would be also easy to write, unlike now. Summing up, I'd like to give a try to implement one for the mainline. Well, patches alone won't help here. Writing tests is always hard (forthenI am not sure what kind of mess you mean here but patches are welcome various reasons, including "tests are code, so why not write 'real' code instead?"). So, it would be nice to think how to facilitate that. Specific proposal is to add a loopback netif, I assume it's ok, so will go for a patch. [] Well, it's the same issue: various things in Zephyr are "harder thanthere'sHmm, I missed the point of your last sentence. necessary", so one can never know if something really broke or one doesn't do all the needed things to run it successfully. It would be nice to think of making the default config of Zephyr either run OOB, or fail with clear error messages, not crash or lockup. That's again a big meta-task, not something which can be "fixed with a patch", but would be nice to see if different stakeholders of Zephyr agree that there's an issue which needs attention. Thanks for all the replies! -- Best Regards, Paul Linaro.org | Open source software for ARM SoCs Follow Linaro: http://www.facebook.com/pages/Linaro http://twitter.com/#!/linaroorg - http://www.linaro.org/linaro-blog
|
|