11ae93ee | 01-Oct-2018 |
Simon Glass <sjg@chromium.org> |
binman: Run tests concurrently
At present the tests run one after the other using a single CPU. This is not very efficient. Bring in the concurrencytest module and run the tests concurrently, using
binman: Run tests concurrently
At present the tests run one after the other using a single CPU. This is not very efficient. Bring in the concurrencytest module and run the tests concurrently, using one process for each CPU by default. A -P option allows this to be overridden, which is necessary for code-coverage to function correctly.
This requires fixing a few tests which are currently not fully independent.
At some point we might consider doing this across all pytests in U-Boot. There is a pytest version that supports specifying the number of processes to use, but it did not work for me.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
e0e6275f | 01-Oct-2018 |
Simon Glass <sjg@chromium.org> |
binman: Fix up removal of temporary directories
At present 'make check' leaves some temporary directories around. Part of this is because we call tools.PrepareOutputDir() twice in some cases, withou
binman: Fix up removal of temporary directories
At present 'make check' leaves some temporary directories around. Part of this is because we call tools.PrepareOutputDir() twice in some cases, without calling tools.FinaliseOutputDir() in between.
Fix this.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
6434961b | 14-Sep-2018 |
Simon Glass <sjg@chromium.org> |
dtoc: Add methods for adding and updating properties
Add a few more functions which allow creating and modifying property values. If only we could do this so easily in the real world.
Signed-off-by
dtoc: Add methods for adding and updating properties
Add a few more functions which allow creating and modifying property values. If only we could do this so easily in the real world.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
ba765217 | 06-Jul-2018 |
Simon Glass <sjg@chromium.org> |
dtoc: Add a test for code coverage
Add a -T option to run a code-coverage test on dtoc. At present this is about 96%. Future work will increase it to 100%.
Signed-off-by: Simon Glass <sjg@chromium.
dtoc: Add a test for code coverage
Add a -T option to run a code-coverage test on dtoc. At present this is about 96%. Future work will increase it to 100%.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
760b7170 | 06-Jul-2018 |
Simon Glass <sjg@chromium.org> |
dtoc: Fix properties with a single zero-arg phandle
At present a property with a single phandle looks like an integer value to dtoc. Correct this by adjusting it in the phandle-processing code.
Add
dtoc: Fix properties with a single zero-arg phandle
At present a property with a single phandle looks like an integer value to dtoc. Correct this by adjusting it in the phandle-processing code.
Add a test for this.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
b9066ffc | 06-Jul-2018 |
Simon Glass <sjg@chromium.org> |
dtoc: Fix Fdt.GetNode() to handle a missing node
At present the algortihm is not correct since it will return the root node if the requested node is not found and there are no slashes in the request
dtoc: Fix Fdt.GetNode() to handle a missing node
At present the algortihm is not correct since it will return the root node if the requested node is not found and there are no slashes in the requested node name. Fix this and add a test.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|