Re: Description of rtems-libbsd testsuite applications

2020-03-17 Thread Gabriel.Moyano
Hello Sebastian,

I followed your recommendations regarding rtems_test_begin(), rtems_test_end() 
and RTEMS_TEST_STATE_USER_INPUT. Now I'm working on getting running the 
rtems-libbsd testsuit with RTEMS Tester.

I would like to ask you 2 questions:


1.   About arphole: In the arp_processor() function there is an "if" 
statement which verify 3 conditions. One of them is that spa (source protocol 
address) should be equal to INADDR_ANY which is 0.0.0.0 and this never happens. 
From my understanding, if the spa could be any address there is no need to test 
this condition. Is this right?



2.   About dhcpcd01 and dhcpcd02: RTEMS Tester gives a timeout error as a 
result. I think this is because no exit() call happens. Dhcpcd creates a file 
under /var/db/dhcpcd_.lease after obtaining a lease. Maybe this could 
be used as exit condition in test_main() in case of dhcpcd02. A similar 
solutions could be implemented for the dhcp hook in dhcpcd01 but instead of 
printing out the environment variables, writing them into a file and checking 
whether this file exists in test_main(). What do you think?

Please let me know if you have any suggestion.

Thanks for your help,
Gabriel

--
Deutsches Zentrum für Luft- und Raumfahrt e.V. (DLR)
Simulation and Software Technology | Lilienthalplatz 7 | 38108 Braunschweig  | 
Germany

Dipl.-Ing Gabriel Moyano | Research Scientist in Onboard Software Systems group
DLR.de

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: Description of rtems-libbsd testsuite applications

2020-02-14 Thread Sebastian Huber

Hello Jan,

On 14/02/2020 09:46, jan.som...@dlr.de wrote:

is there already somewhere a file which gives some short description what the 
different test applications in the testsuite directory (are supposed to) do?
If not, would you accept patches with some short descriptions and maybe an 
example output?


there is no such documentation available. Thanks for your offer to fix 
this. If you have time, it would be nice to use the rtems_test_begin() 
and rtems_test_end() functions to print the begin/end messages. Using 
the test state RTEMS_TEST_STATE_USER_INPUT for tests which need user 
input or a network should allow test runs by the RTEMS Tester.


With respect to the description, maybe the first step would be to add it 
to the top of the files?


Using the new test framework would be nice:

https://docs.rtems.org/branches/master/eng/test-framework.html#the-rtems-test-framework

However, this is a labor intensive and boring task.

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


Re: Description of rtems-libbsd testsuite applications

2020-02-14 Thread Christian Mauderer
Hello Jan,

On 14/02/2020 09:46, jan.som...@dlr.de wrote:
> Hello,
> 
> is there already somewhere a file which gives some short description what the 
> different test applications in the testsuite directory (are supposed to) do?

None that I know of.

> If not, would you accept patches with some short descriptions and maybe an 
> example output?

Documentation patches are always welcome.

Best regards

Christian

> 
> Cheers,
> 
>Jan
> 
> Deutsches Zentrum für Luft- und Raumfahrt e. V. (DLR)
> German Aerospace Center
> Simulation and Software Technology | Software for Space Systems and 
> Interactive Visualization | Lilienthalplatz 7 | 38108 Braunschweig | Germany
> 
> Jan Sommer
> Telephone +49 531 295-2494 | Telefax 0531 295-2767 | jan.som...@dlr.de
> DLR.de/SC
> 
> ___
> devel mailing list
> devel@rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
> 

-- 

embedded brains GmbH
Herr Christian Mauderer
Dornierstr. 4
D-82178 Puchheim
Germany
email: christian.maude...@embedded-brains.de
Phone: +49-89-18 94 741 - 18
Fax:   +49-89-18 94 741 - 08
PGP: Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel