Detecting Tests Which Don't Have Enough Workspace

Amar Takhar amar at rtems.org
Thu Mar 12 22:58:42 UTC 2015


On 2015-03-12 12:41 -0500, Joel Sherrill wrote:
> Hi
> 
> Many BSPs can link a test but don't actually have enough memory
> to run the test. They will fail in the first few lines when the requested
> memory for the RTEMS work area is not available. I hacked together
> a script which adds together the code, data, bss, work space and
> stack space requested. If this exceeds physical memory on the board,
> then the test will fail.  It is possible to come close and still run out of
> memory during initialization (e.g. malloc, etc) but this approach could
> detect some tests which will fail by inspecting them on the host.

The waf build prints a warning during compile time that the test will not fit 
and pass the build.  I was going to add a summary at the end for any tests that 
won't fit and also add it to a report on BuildBot.


Amar.



More information about the devel mailing list