b61a3b5c | 18-Oct-2017 |
Patrick Delaunay <patrick.delaunay@st.com> |
test/py: gpt: add test for sub-command write
+ test write for one partition on all the device (size=0) + test write with disk uuid and 2 partitions
Acked-by: Stephen Warren <swarren@nvidia.com> Tes
test/py: gpt: add test for sub-command write
+ test write for one partition on all the device (size=0) + test write with disk uuid and 2 partitions
Acked-by: Stephen Warren <swarren@nvidia.com> Tested-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
show more ...
|
30ef7cbb | 18-Oct-2017 |
Patrick Delaunay <patrick.delaunay@st.com> |
test/py: gpt: add test for sub-command read and verify
add sandbox test for some gpt sub-command - gpt read / part list : read the gpt partition created by sgdisk on host test start, size, LBA and
test/py: gpt: add test for sub-command read and verify
add sandbox test for some gpt sub-command - gpt read / part list : read the gpt partition created by sgdisk on host test start, size, LBA and name output - gpt verify : verify the gpt partition create by sgdisk on host
PS: persistent data test_gpt_disk_image.bin are udpated
Acked-by: Stephen Warren <swarren@nvidia.com> Tested-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
show more ...
|
e2e6daed | 26-Sep-2017 |
Tom Rini <trini@konsulko.com> |
test/dm: Fix string handling issues in the eth test
Coverity scan has identified potential buffer overruns in these tests. Correct this by zeroing our buffer and using strncpy not strcpy.
Reported-
test/dm: Fix string handling issues in the eth test
Coverity scan has identified potential buffer overruns in these tests. Correct this by zeroing our buffer and using strncpy not strcpy.
Reported-by: Coverity (CID: 155462, 155463) Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Simon Glass <sjg@chromium.org> Cc: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|
d91062c4 | 26-Sep-2017 |
Tom Rini <trini@konsulko.com> |
test/overlay: Fix various malloc/free leaks
With the overlay tests now being built in sandbox Coverity has found a number of issues in the tests. In short, if malloc ever failed we would leak the p
test/overlay: Fix various malloc/free leaks
With the overlay tests now being built in sandbox Coverity has found a number of issues in the tests. In short, if malloc ever failed we would leak the previous mallocs, so we need to do the usual goto pattern to free each in turn. Finally, we always looked at the free()d location to see how many tests had failed for the return code.
Reported-by: Coverity (CID: 167224, 167227, 167230, 167236) Signed-off-by: Tom Rini <trini@konsulko.com>
show more ...
|
7c890f14 | 25-Sep-2017 |
Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> |
fs-test: Add test for a filename using '..' to go back to the root
The previous commit fixed a problem in FAT code where going back to the root directory using '..' wouldn't work correctly on FAT12
fs-test: Add test for a filename using '..' to go back to the root
The previous commit fixed a problem in FAT code where going back to the root directory using '..' wouldn't work correctly on FAT12 or FAT16. Add a test to exercise this case (which was once fixed in commit 18a10d46f26 "fat: handle paths that include ../" but reintroduced due to the directory iterator refactoring).
This test only very barely catches the problem - without the fix the size command still gives valid output but the additional spurious "Invalid FAT entry" error message makes it not get caught in the 'egrep -A3 ' output. I tried to make a proper test that grows the root directory to two clusters lots of with dummy files but that causes the write tests to crash the sandbox totally...
Signed-off-by: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
117eeb7f | 18-Sep-2017 |
Stephen Warren <swarren@nvidia.com> |
test/py: fix anchors in HTML status report
The current code wraps a pre tag inside an a tag. For some reason, this causes at least Firefox to attempt to drag the pre section content when using a mou
test/py: fix anchors in HTML status report
The current code wraps a pre tag inside an a tag. For some reason, this causes at least Firefox to attempt to drag the pre section content when using a mouse drag to select text. Re-order the tags so that the text can be selected using the mouse, at least if you start the drag outside the text (after the end of the line, for example).
Signed-off-by: Stephen Warren <swarren@nvidia.com>
show more ...
|
d5170448 | 18-Sep-2017 |
Stephen Warren <swarren@nvidia.com> |
test/py: provide more information about test skip reason
When skipping tests, explicitly mention the board type or config option that caused the skip. This will help people understand/fix any issues
test/py: provide more information about test skip reason
When skipping tests, explicitly mention the board type or config option that caused the skip. This will help people understand/fix any issues.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
show more ...
|
40186ee2 | 25-Sep-2017 |
Rob Clark <robdclark@gmail.com> |
video: test: Add ANSI escape sequence tests
This adds tests for clear, set-cursor and color escape sequences.
Signed-off-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Anatolij Gustschin <agust
video: test: Add ANSI escape sequence tests
This adds tests for clear, set-cursor and color escape sequences.
Signed-off-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Anatolij Gustschin <agust@denx.de>
show more ...
|
110ba625 | 15-Sep-2017 |
Stephen Warren <swarren@nvidia.com> |
test/py: gpt: make use of infra-structure
Make various changes to the GPT test:
1) Reference the disk image using an absolute path in all cases. This allows test/py to operate correctly if it's run
test/py: gpt: make use of infra-structure
Make various changes to the GPT test:
1) Reference the disk image using an absolute path in all cases. This allows test/py to operate correctly if it's run from a directory other than the root of the U-Boot source tree.
2) Store the disk image in the teswt/py persistent data directory. This removes the need to re-generate it every time the tests are run.
3) Execute sgdisk using u_boot_utils.run_and_log() so that its output is captured in the test log. This allows debugging any problems running it.
4) Make the disk image a test fixture. This removes the requirement to always run all GPT tests, and run them in order. The current code doesn't create the disk image if e.g. just test_gpt_uuid() is executed via the test.py -k command-line option.
5) Use @pytest.mark.buildconfigspec for all feature dependencies, rather than manually implementing some of them.
6) Make all tests depend on sandbox, since they use the sandbox-specific host command.
Fixes: a2f422555fc8 ("add pytests for 'gpt guid' command in sandbox") Fixes: c5772188ede9 ("add pytests for 'gpt rename' and 'gpt swap'") Signed-off-by: Stephen Warren <swarren@nvidia.com> Tested-by: Tom Rini <trini@konsulko.com>
show more ...
|