what is the code in ./zephyr/tests and what is the difference of it between with ./zephyr/samples/ ?


曹子龙
 

Dear all:

   i am running some test pattern about network on arduino_due board, i found that both the  ./zephyr/tests  and ./zephyr/ssamples/ are have some test pattren about network,  they seems related  just frome the name, but each one has is own main entry, so i want to know what is the difference between them and when should i use the test pattern in ./zephyr/test directory.

this is my first time to zephyr network, please bear with me my mistake, thank you very much for your kindly support.



 


Tidy(ChunHua) Jiang <tidyjiang@...>
 

Hi Zilong,

Sample code are a good reference to get started with network application development.
Test applications are used to verify the functionality of the IP stack, but are not the best
source for sample code(see samples/net instead).

More detail, please refer to https://www.zephyrproject.org/doc/subsystems/networking/overview.html

Best Regards,
At 2017-02-08 19:44:10, "曹子龙" <13824125580@...> wrote:
Dear all:

   i am running some test pattern about network on arduino_due board, i found that both the  ./zephyr/tests  and ./zephyr/ssamples/ are have some test pattren about network,  they seems related  just frome the name, but each one has is own main entry, so i want to know what is the difference between them and when should i use the test pattern in ./zephyr/test directory.

this is my first time to zephyr network, please bear with me my mistake, thank you very much for your kindly support.



 




Anas Nashif
 

Hi,
Tests  has many tests that can be run in Qemu or can be used to test additional functionality on real hardware, they do not server anything beside the purpose of testing functionality. Samples on the other hand are a bit more useful and show functionality and features of the OS.

There is a grey area where some samples are being used for basic testing and day to day development, for example the echo server/client combo under networking and probably some other samples that qualify more as tests. But in general the rule is, a sample has to do something useful and does not qualify as a test for a certain feature, but a way to show it.


Anas

On Wed, Feb 8, 2017 at 5:14 PM, 曹子龙 <13824125580@...> wrote:
Dear all:

   i am running some test pattern about network on arduino_due board, i found that both the  ./zephyr/tests  and ./zephyr/ssamples/ are have some test pattren about network,  they seems related  just frome the name, but each one has is own main entry, so i want to know what is the difference between them and when should i use the test pattern in ./zephyr/test directory.

this is my first time to zephyr network, please bear with me my mistake, thank you very much for your kindly support.



 


_______________________________________________
Zephyr-devel mailing list
Zephyr-devel@lists.zephyrproject.org
https://lists.zephyrproject.org/mailman/listinfo/zephyr-devel