#
27a03f03 |
|
19-Apr-2023 |
Simon Glass <sjg@chromium.org> |
efi: Rename the base efi self-test This function uses the same base name as all the others in this file, so it is not easy to run just that one test. Add a _base suffix so that it can be run on its own. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> |
#
b96de9cb |
|
09-May-2022 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test: don't change console timeout in EFI selftest. Changing the console timeout to 500 ms without restoring the original value leads to failures in other tests. As the console timeout change is not necessary for the text input protocol tests remove it. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> |
#
b9bf9c58 |
|
08-May-2022 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test: fix pylint warnings in test_efi_selftest.py * change format of parameter documentation * avoid superfluous assignments Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> |
#
3b7bf8a9 |
|
15-Nov-2021 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test: unit test for the EFI_TCG2_PROTOCOL Encapsulate the UEFI EFI_TCG2_PROTOCOL unit test in an Python test. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> |
#
1ae35c72 |
|
22-Nov-2021 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test: address some pylint warnings * remove unused variables * module description must precede import statements * fix inconsistent return values Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> |
#
38ee01e4 |
|
07-Aug-2020 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: serial# cannot be overwritten on some devices On some devices the environment variable serial# cannot be overwritten. Set the variable only if it is not set. For our unit test it is sufficient to test if any value for serial-number is set. Fixes: 8a5cdf601f8d ("test: efi_selftest: Do not force serial# setting") Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
8a5cdf60 |
|
31-Jul-2020 |
Tom Rini <trini@konsulko.com> |
test: efi_selftest: Do not force serial# setting As part of the EFI self test we set and check the serial# variable. However, we should not be forcing this setting. In the case where we are allowed to change the variable it will change, and we will pass the test. In the case where we cannot change it, force may or may not be allowed, depending on further environment restrictions. Drop the -f flag here as we do not need it. Cc: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Tom Rini <trini@konsulko.com> |
#
491e87a7 |
|
25-Jan-2020 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test: efi_selftest: fix pylint warnings Fix pylint warnings: * add missing module and function documentation * correct indentation Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
1813ace6 |
|
24-Oct-2019 |
Tom Rini <trini@konsulko.com> |
test/py: test_efi_selftest.py: Updates for python 3 support - In python 3 you must use raw strings for regex as other forms are deprecated and would require further changes to the pattern here. In one case this lets us have a simpler match pattern. - As strings are now Unicode our complex tests (Euro symbol, SHIFT+ALT+FN 5) we need to declare that as a bytes string and then decode it for use. Cc: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Stephen Warren <swarren@nvidia.com> Tested-by: Simon Glass <sjg@chromium.org> [on sandbox] Signed-off-by: Tom Rini <trini@konsulko.com> |
#
0b1da53e |
|
05-Jul-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: not all boards support UEFI runtime reset As not all boards support resets at runtime do not test for it in the Python tests. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
983142df |
|
05-Jul-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: error message test_efi_selftest_device_tree Correct the error message in test_efi_selftest_device_tree(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
68066d5b |
|
20-Apr-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: do not run FDT test with ACPI table. The EBBR specification prescribes that we should have either an ACPI table or a device tree but not both. So do not run the device tree unit test on boards with an ACPI table. Hence there is no need any longer to make it 'on request' only. Do not pass $fdtcontroladdr to `bootefi selftest`. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
bfc2dd53 |
|
06-Apr-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: correct CTRL-A - CTRL-Z console input In the extended text input protocol CTRL-A - CTRL-Z have to be signaled as Unicode characters a-z or A-Z depending on the shift state and not as 0x01 to 0x1a. Update Python unit test. This patch is required for using the EFI shell `edit` command. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
34c96659 |
|
18-Nov-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: check fdt is marked as runtime data Check that the memory area containing the device tree is marked as runtime data. Update the Python test to pass ${fdtcontroladdr} to bootefi. Update the description of the Python test. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
6dec8739 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: test key notification functions Use a key notification function to leave the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL test. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
4f17d8d3 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL Add a unit test for the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
ca09f1df |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: rework test_efi_selftest_text_input() Use more precise regular expressions. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
7d044886 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: Unicode w/ EFI_SIMPLE_TEXT_INPUT_PROTOCOL Test that the Euro sign is correctly retrieved from the console via the EFI_SIMPLE_TEXT_INPUT_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
da9ea5bb |
|
06-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: typo occured %s/occured/occurred/ Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
cb03ec06 |
|
06-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test EFI_SIMPLE_TEXT_INPUT_PROTOCOL Execute the EFI selftest for the EFI_SIMPLE_TEXT_INPUT_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
83d290c5 |
|
06-May-2018 |
Tom Rini <trini@konsulko.com> |
SPDX: Convert all of our single license tags to Linux Kernel style When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com> |
#
06c3d5b9 |
|
03-Mar-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: check installation of the device tree The unit test checks if a device tree is installed. It requires that the 'compatible' property of the root node exists. If available it prints the 'serial-number' property. The serial-number property is derived from the environment variable 'serial#'. This can be used to check if the image_setup_libfdt() function is executed. A Python test is supplied. It sets a value for serial# and checks that the selftest shows this as serial-number. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
df172e11 |
|
18-Oct-2017 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test reboot by EFI watchdog Clear environment variable efi_selftest before executing the default tests. Provide a test verifying that the EFI watchdog reboots the system upon timeout. The test depends on CONFIG_CMD_EFI_SELFTEST=y. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
38b1b790 |
|
15-Sep-2017 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: add a test calling the EFI selftest A Python test script is provided that runs the EFI selftest if CONFIG_CMD_EFI_SELFTEST=y. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
b96de9cb |
|
09-May-2022 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test: don't change console timeout in EFI selftest. Changing the console timeout to 500 ms without restoring the original value leads to failures in other tests. As the console timeout change is not necessary for the text input protocol tests remove it. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> |
#
b9bf9c58 |
|
08-May-2022 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test: fix pylint warnings in test_efi_selftest.py * change format of parameter documentation * avoid superfluous assignments Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> |
#
3b7bf8a9 |
|
15-Nov-2021 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test: unit test for the EFI_TCG2_PROTOCOL Encapsulate the UEFI EFI_TCG2_PROTOCOL unit test in an Python test. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> |
#
1ae35c72 |
|
22-Nov-2021 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test: address some pylint warnings * remove unused variables * module description must precede import statements * fix inconsistent return values Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> |
#
38ee01e4 |
|
07-Aug-2020 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: serial# cannot be overwritten on some devices On some devices the environment variable serial# cannot be overwritten. Set the variable only if it is not set. For our unit test it is sufficient to test if any value for serial-number is set. Fixes: 8a5cdf601f8d ("test: efi_selftest: Do not force serial# setting") Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
8a5cdf60 |
|
31-Jul-2020 |
Tom Rini <trini@konsulko.com> |
test: efi_selftest: Do not force serial# setting As part of the EFI self test we set and check the serial# variable. However, we should not be forcing this setting. In the case where we are allowed to change the variable it will change, and we will pass the test. In the case where we cannot change it, force may or may not be allowed, depending on further environment restrictions. Drop the -f flag here as we do not need it. Cc: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Tom Rini <trini@konsulko.com> |
#
491e87a7 |
|
25-Jan-2020 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test: efi_selftest: fix pylint warnings Fix pylint warnings: * add missing module and function documentation * correct indentation Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
1813ace6 |
|
24-Oct-2019 |
Tom Rini <trini@konsulko.com> |
test/py: test_efi_selftest.py: Updates for python 3 support - In python 3 you must use raw strings for regex as other forms are deprecated and would require further changes to the pattern here. In one case this lets us have a simpler match pattern. - As strings are now Unicode our complex tests (Euro symbol, SHIFT+ALT+FN 5) we need to declare that as a bytes string and then decode it for use. Cc: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Stephen Warren <swarren@nvidia.com> Tested-by: Simon Glass <sjg@chromium.org> [on sandbox] Signed-off-by: Tom Rini <trini@konsulko.com> |
#
0b1da53e |
|
05-Jul-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: not all boards support UEFI runtime reset As not all boards support resets at runtime do not test for it in the Python tests. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
983142df |
|
05-Jul-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: error message test_efi_selftest_device_tree Correct the error message in test_efi_selftest_device_tree(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
68066d5b |
|
20-Apr-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: do not run FDT test with ACPI table. The EBBR specification prescribes that we should have either an ACPI table or a device tree but not both. So do not run the device tree unit test on boards with an ACPI table. Hence there is no need any longer to make it 'on request' only. Do not pass $fdtcontroladdr to `bootefi selftest`. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
bfc2dd53 |
|
06-Apr-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: correct CTRL-A - CTRL-Z console input In the extended text input protocol CTRL-A - CTRL-Z have to be signaled as Unicode characters a-z or A-Z depending on the shift state and not as 0x01 to 0x1a. Update Python unit test. This patch is required for using the EFI shell `edit` command. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
34c96659 |
|
18-Nov-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: check fdt is marked as runtime data Check that the memory area containing the device tree is marked as runtime data. Update the Python test to pass ${fdtcontroladdr} to bootefi. Update the description of the Python test. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
6dec8739 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: test key notification functions Use a key notification function to leave the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL test. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
4f17d8d3 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL Add a unit test for the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
ca09f1df |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: rework test_efi_selftest_text_input() Use more precise regular expressions. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
7d044886 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: Unicode w/ EFI_SIMPLE_TEXT_INPUT_PROTOCOL Test that the Euro sign is correctly retrieved from the console via the EFI_SIMPLE_TEXT_INPUT_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
da9ea5bb |
|
06-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: typo occured %s/occured/occurred/ Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
cb03ec06 |
|
06-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test EFI_SIMPLE_TEXT_INPUT_PROTOCOL Execute the EFI selftest for the EFI_SIMPLE_TEXT_INPUT_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
83d290c5 |
|
06-May-2018 |
Tom Rini <trini@konsulko.com> |
SPDX: Convert all of our single license tags to Linux Kernel style When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com> |
#
06c3d5b9 |
|
03-Mar-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: check installation of the device tree The unit test checks if a device tree is installed. It requires that the 'compatible' property of the root node exists. If available it prints the 'serial-number' property. The serial-number property is derived from the environment variable 'serial#'. This can be used to check if the image_setup_libfdt() function is executed. A Python test is supplied. It sets a value for serial# and checks that the selftest shows this as serial-number. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
df172e11 |
|
18-Oct-2017 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test reboot by EFI watchdog Clear environment variable efi_selftest before executing the default tests. Provide a test verifying that the EFI watchdog reboots the system upon timeout. The test depends on CONFIG_CMD_EFI_SELFTEST=y. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
38b1b790 |
|
15-Sep-2017 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: add a test calling the EFI selftest A Python test script is provided that runs the EFI selftest if CONFIG_CMD_EFI_SELFTEST=y. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
3b7bf8a9 |
|
15-Nov-2021 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test: unit test for the EFI_TCG2_PROTOCOL Encapsulate the UEFI EFI_TCG2_PROTOCOL unit test in an Python test. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> |
#
1ae35c72 |
|
22-Nov-2021 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test: address some pylint warnings * remove unused variables * module description must precede import statements * fix inconsistent return values Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> |
#
38ee01e4 |
|
07-Aug-2020 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: serial# cannot be overwritten on some devices On some devices the environment variable serial# cannot be overwritten. Set the variable only if it is not set. For our unit test it is sufficient to test if any value for serial-number is set. Fixes: 8a5cdf601f8d ("test: efi_selftest: Do not force serial# setting") Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
8a5cdf60 |
|
31-Jul-2020 |
Tom Rini <trini@konsulko.com> |
test: efi_selftest: Do not force serial# setting As part of the EFI self test we set and check the serial# variable. However, we should not be forcing this setting. In the case where we are allowed to change the variable it will change, and we will pass the test. In the case where we cannot change it, force may or may not be allowed, depending on further environment restrictions. Drop the -f flag here as we do not need it. Cc: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Tom Rini <trini@konsulko.com> |
#
491e87a7 |
|
25-Jan-2020 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test: efi_selftest: fix pylint warnings Fix pylint warnings: * add missing module and function documentation * correct indentation Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
1813ace6 |
|
24-Oct-2019 |
Tom Rini <trini@konsulko.com> |
test/py: test_efi_selftest.py: Updates for python 3 support - In python 3 you must use raw strings for regex as other forms are deprecated and would require further changes to the pattern here. In one case this lets us have a simpler match pattern. - As strings are now Unicode our complex tests (Euro symbol, SHIFT+ALT+FN 5) we need to declare that as a bytes string and then decode it for use. Cc: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Stephen Warren <swarren@nvidia.com> Tested-by: Simon Glass <sjg@chromium.org> [on sandbox] Signed-off-by: Tom Rini <trini@konsulko.com> |
#
0b1da53e |
|
05-Jul-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: not all boards support UEFI runtime reset As not all boards support resets at runtime do not test for it in the Python tests. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
983142df |
|
05-Jul-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: error message test_efi_selftest_device_tree Correct the error message in test_efi_selftest_device_tree(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
68066d5b |
|
20-Apr-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: do not run FDT test with ACPI table. The EBBR specification prescribes that we should have either an ACPI table or a device tree but not both. So do not run the device tree unit test on boards with an ACPI table. Hence there is no need any longer to make it 'on request' only. Do not pass $fdtcontroladdr to `bootefi selftest`. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
bfc2dd53 |
|
06-Apr-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: correct CTRL-A - CTRL-Z console input In the extended text input protocol CTRL-A - CTRL-Z have to be signaled as Unicode characters a-z or A-Z depending on the shift state and not as 0x01 to 0x1a. Update Python unit test. This patch is required for using the EFI shell `edit` command. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
34c96659 |
|
18-Nov-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: check fdt is marked as runtime data Check that the memory area containing the device tree is marked as runtime data. Update the Python test to pass ${fdtcontroladdr} to bootefi. Update the description of the Python test. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
6dec8739 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: test key notification functions Use a key notification function to leave the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL test. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
4f17d8d3 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL Add a unit test for the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
ca09f1df |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: rework test_efi_selftest_text_input() Use more precise regular expressions. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
7d044886 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: Unicode w/ EFI_SIMPLE_TEXT_INPUT_PROTOCOL Test that the Euro sign is correctly retrieved from the console via the EFI_SIMPLE_TEXT_INPUT_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
da9ea5bb |
|
06-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: typo occured %s/occured/occurred/ Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
cb03ec06 |
|
06-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test EFI_SIMPLE_TEXT_INPUT_PROTOCOL Execute the EFI selftest for the EFI_SIMPLE_TEXT_INPUT_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
83d290c5 |
|
06-May-2018 |
Tom Rini <trini@konsulko.com> |
SPDX: Convert all of our single license tags to Linux Kernel style When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com> |
#
06c3d5b9 |
|
03-Mar-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: check installation of the device tree The unit test checks if a device tree is installed. It requires that the 'compatible' property of the root node exists. If available it prints the 'serial-number' property. The serial-number property is derived from the environment variable 'serial#'. This can be used to check if the image_setup_libfdt() function is executed. A Python test is supplied. It sets a value for serial# and checks that the selftest shows this as serial-number. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
df172e11 |
|
18-Oct-2017 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test reboot by EFI watchdog Clear environment variable efi_selftest before executing the default tests. Provide a test verifying that the EFI watchdog reboots the system upon timeout. The test depends on CONFIG_CMD_EFI_SELFTEST=y. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
38b1b790 |
|
15-Sep-2017 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: add a test calling the EFI selftest A Python test script is provided that runs the EFI selftest if CONFIG_CMD_EFI_SELFTEST=y. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
1ae35c72 |
|
22-Nov-2021 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test: address some pylint warnings * remove unused variables * module description must precede import statements * fix inconsistent return values Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> |
#
38ee01e4 |
|
07-Aug-2020 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: serial# cannot be overwritten on some devices On some devices the environment variable serial# cannot be overwritten. Set the variable only if it is not set. For our unit test it is sufficient to test if any value for serial-number is set. Fixes: 8a5cdf601f8d ("test: efi_selftest: Do not force serial# setting") Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
8a5cdf60 |
|
31-Jul-2020 |
Tom Rini <trini@konsulko.com> |
test: efi_selftest: Do not force serial# setting As part of the EFI self test we set and check the serial# variable. However, we should not be forcing this setting. In the case where we are allowed to change the variable it will change, and we will pass the test. In the case where we cannot change it, force may or may not be allowed, depending on further environment restrictions. Drop the -f flag here as we do not need it. Cc: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Tom Rini <trini@konsulko.com> |
#
491e87a7 |
|
25-Jan-2020 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test: efi_selftest: fix pylint warnings Fix pylint warnings: * add missing module and function documentation * correct indentation Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
1813ace6 |
|
24-Oct-2019 |
Tom Rini <trini@konsulko.com> |
test/py: test_efi_selftest.py: Updates for python 3 support - In python 3 you must use raw strings for regex as other forms are deprecated and would require further changes to the pattern here. In one case this lets us have a simpler match pattern. - As strings are now Unicode our complex tests (Euro symbol, SHIFT+ALT+FN 5) we need to declare that as a bytes string and then decode it for use. Cc: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Stephen Warren <swarren@nvidia.com> Tested-by: Simon Glass <sjg@chromium.org> [on sandbox] Signed-off-by: Tom Rini <trini@konsulko.com> |
#
0b1da53e |
|
05-Jul-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: not all boards support UEFI runtime reset As not all boards support resets at runtime do not test for it in the Python tests. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
983142df |
|
05-Jul-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: error message test_efi_selftest_device_tree Correct the error message in test_efi_selftest_device_tree(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
68066d5b |
|
20-Apr-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: do not run FDT test with ACPI table. The EBBR specification prescribes that we should have either an ACPI table or a device tree but not both. So do not run the device tree unit test on boards with an ACPI table. Hence there is no need any longer to make it 'on request' only. Do not pass $fdtcontroladdr to `bootefi selftest`. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
bfc2dd53 |
|
06-Apr-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: correct CTRL-A - CTRL-Z console input In the extended text input protocol CTRL-A - CTRL-Z have to be signaled as Unicode characters a-z or A-Z depending on the shift state and not as 0x01 to 0x1a. Update Python unit test. This patch is required for using the EFI shell `edit` command. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
34c96659 |
|
18-Nov-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: check fdt is marked as runtime data Check that the memory area containing the device tree is marked as runtime data. Update the Python test to pass ${fdtcontroladdr} to bootefi. Update the description of the Python test. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
6dec8739 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: test key notification functions Use a key notification function to leave the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL test. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
4f17d8d3 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL Add a unit test for the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
ca09f1df |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: rework test_efi_selftest_text_input() Use more precise regular expressions. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
7d044886 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: Unicode w/ EFI_SIMPLE_TEXT_INPUT_PROTOCOL Test that the Euro sign is correctly retrieved from the console via the EFI_SIMPLE_TEXT_INPUT_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
da9ea5bb |
|
06-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: typo occured %s/occured/occurred/ Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
cb03ec06 |
|
06-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test EFI_SIMPLE_TEXT_INPUT_PROTOCOL Execute the EFI selftest for the EFI_SIMPLE_TEXT_INPUT_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
83d290c5 |
|
06-May-2018 |
Tom Rini <trini@konsulko.com> |
SPDX: Convert all of our single license tags to Linux Kernel style When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com> |
#
06c3d5b9 |
|
03-Mar-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: check installation of the device tree The unit test checks if a device tree is installed. It requires that the 'compatible' property of the root node exists. If available it prints the 'serial-number' property. The serial-number property is derived from the environment variable 'serial#'. This can be used to check if the image_setup_libfdt() function is executed. A Python test is supplied. It sets a value for serial# and checks that the selftest shows this as serial-number. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
df172e11 |
|
18-Oct-2017 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test reboot by EFI watchdog Clear environment variable efi_selftest before executing the default tests. Provide a test verifying that the EFI watchdog reboots the system upon timeout. The test depends on CONFIG_CMD_EFI_SELFTEST=y. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
38b1b790 |
|
15-Sep-2017 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: add a test calling the EFI selftest A Python test script is provided that runs the EFI selftest if CONFIG_CMD_EFI_SELFTEST=y. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
38ee01e4 |
|
07-Aug-2020 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: serial# cannot be overwritten on some devices On some devices the environment variable serial# cannot be overwritten. Set the variable only if it is not set. For our unit test it is sufficient to test if any value for serial-number is set. Fixes: 8a5cdf601f8d ("test: efi_selftest: Do not force serial# setting") Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
8a5cdf60 |
|
31-Jul-2020 |
Tom Rini <trini@konsulko.com> |
test: efi_selftest: Do not force serial# setting As part of the EFI self test we set and check the serial# variable. However, we should not be forcing this setting. In the case where we are allowed to change the variable it will change, and we will pass the test. In the case where we cannot change it, force may or may not be allowed, depending on further environment restrictions. Drop the -f flag here as we do not need it. Cc: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Tom Rini <trini@konsulko.com> |
#
491e87a7 |
|
25-Jan-2020 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test: efi_selftest: fix pylint warnings Fix pylint warnings: * add missing module and function documentation * correct indentation Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
1813ace6 |
|
24-Oct-2019 |
Tom Rini <trini@konsulko.com> |
test/py: test_efi_selftest.py: Updates for python 3 support - In python 3 you must use raw strings for regex as other forms are deprecated and would require further changes to the pattern here. In one case this lets us have a simpler match pattern. - As strings are now Unicode our complex tests (Euro symbol, SHIFT+ALT+FN 5) we need to declare that as a bytes string and then decode it for use. Cc: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Stephen Warren <swarren@nvidia.com> Tested-by: Simon Glass <sjg@chromium.org> [on sandbox] Signed-off-by: Tom Rini <trini@konsulko.com> |
#
0b1da53e |
|
05-Jul-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: not all boards support UEFI runtime reset As not all boards support resets at runtime do not test for it in the Python tests. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
983142df |
|
05-Jul-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: error message test_efi_selftest_device_tree Correct the error message in test_efi_selftest_device_tree(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
68066d5b |
|
20-Apr-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: do not run FDT test with ACPI table. The EBBR specification prescribes that we should have either an ACPI table or a device tree but not both. So do not run the device tree unit test on boards with an ACPI table. Hence there is no need any longer to make it 'on request' only. Do not pass $fdtcontroladdr to `bootefi selftest`. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
bfc2dd53 |
|
06-Apr-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: correct CTRL-A - CTRL-Z console input In the extended text input protocol CTRL-A - CTRL-Z have to be signaled as Unicode characters a-z or A-Z depending on the shift state and not as 0x01 to 0x1a. Update Python unit test. This patch is required for using the EFI shell `edit` command. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
34c96659 |
|
18-Nov-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: check fdt is marked as runtime data Check that the memory area containing the device tree is marked as runtime data. Update the Python test to pass ${fdtcontroladdr} to bootefi. Update the description of the Python test. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
6dec8739 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: test key notification functions Use a key notification function to leave the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL test. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
4f17d8d3 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL Add a unit test for the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
ca09f1df |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: rework test_efi_selftest_text_input() Use more precise regular expressions. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
7d044886 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: Unicode w/ EFI_SIMPLE_TEXT_INPUT_PROTOCOL Test that the Euro sign is correctly retrieved from the console via the EFI_SIMPLE_TEXT_INPUT_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
da9ea5bb |
|
06-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: typo occured %s/occured/occurred/ Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
cb03ec06 |
|
06-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test EFI_SIMPLE_TEXT_INPUT_PROTOCOL Execute the EFI selftest for the EFI_SIMPLE_TEXT_INPUT_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
83d290c5 |
|
06-May-2018 |
Tom Rini <trini@konsulko.com> |
SPDX: Convert all of our single license tags to Linux Kernel style When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com> |
#
06c3d5b9 |
|
03-Mar-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: check installation of the device tree The unit test checks if a device tree is installed. It requires that the 'compatible' property of the root node exists. If available it prints the 'serial-number' property. The serial-number property is derived from the environment variable 'serial#'. This can be used to check if the image_setup_libfdt() function is executed. A Python test is supplied. It sets a value for serial# and checks that the selftest shows this as serial-number. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
df172e11 |
|
18-Oct-2017 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test reboot by EFI watchdog Clear environment variable efi_selftest before executing the default tests. Provide a test verifying that the EFI watchdog reboots the system upon timeout. The test depends on CONFIG_CMD_EFI_SELFTEST=y. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
38b1b790 |
|
15-Sep-2017 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: add a test calling the EFI selftest A Python test script is provided that runs the EFI selftest if CONFIG_CMD_EFI_SELFTEST=y. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
8a5cdf60 |
|
31-Jul-2020 |
Tom Rini <trini@konsulko.com> |
test: efi_selftest: Do not force serial# setting As part of the EFI self test we set and check the serial# variable. However, we should not be forcing this setting. In the case where we are allowed to change the variable it will change, and we will pass the test. In the case where we cannot change it, force may or may not be allowed, depending on further environment restrictions. Drop the -f flag here as we do not need it. Cc: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Tom Rini <trini@konsulko.com> |
#
491e87a7 |
|
25-Jan-2020 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test: efi_selftest: fix pylint warnings Fix pylint warnings: * add missing module and function documentation * correct indentation Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
1813ace6 |
|
24-Oct-2019 |
Tom Rini <trini@konsulko.com> |
test/py: test_efi_selftest.py: Updates for python 3 support - In python 3 you must use raw strings for regex as other forms are deprecated and would require further changes to the pattern here. In one case this lets us have a simpler match pattern. - As strings are now Unicode our complex tests (Euro symbol, SHIFT+ALT+FN 5) we need to declare that as a bytes string and then decode it for use. Cc: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Stephen Warren <swarren@nvidia.com> Tested-by: Simon Glass <sjg@chromium.org> [on sandbox] Signed-off-by: Tom Rini <trini@konsulko.com> |
#
0b1da53e |
|
05-Jul-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: not all boards support UEFI runtime reset As not all boards support resets at runtime do not test for it in the Python tests. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
983142df |
|
05-Jul-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: error message test_efi_selftest_device_tree Correct the error message in test_efi_selftest_device_tree(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
68066d5b |
|
20-Apr-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: do not run FDT test with ACPI table. The EBBR specification prescribes that we should have either an ACPI table or a device tree but not both. So do not run the device tree unit test on boards with an ACPI table. Hence there is no need any longer to make it 'on request' only. Do not pass $fdtcontroladdr to `bootefi selftest`. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
bfc2dd53 |
|
06-Apr-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: correct CTRL-A - CTRL-Z console input In the extended text input protocol CTRL-A - CTRL-Z have to be signaled as Unicode characters a-z or A-Z depending on the shift state and not as 0x01 to 0x1a. Update Python unit test. This patch is required for using the EFI shell `edit` command. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
34c96659 |
|
18-Nov-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: check fdt is marked as runtime data Check that the memory area containing the device tree is marked as runtime data. Update the Python test to pass ${fdtcontroladdr} to bootefi. Update the description of the Python test. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
6dec8739 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: test key notification functions Use a key notification function to leave the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL test. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
4f17d8d3 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL Add a unit test for the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
ca09f1df |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: rework test_efi_selftest_text_input() Use more precise regular expressions. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
7d044886 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: Unicode w/ EFI_SIMPLE_TEXT_INPUT_PROTOCOL Test that the Euro sign is correctly retrieved from the console via the EFI_SIMPLE_TEXT_INPUT_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
da9ea5bb |
|
06-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: typo occured %s/occured/occurred/ Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
cb03ec06 |
|
06-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test EFI_SIMPLE_TEXT_INPUT_PROTOCOL Execute the EFI selftest for the EFI_SIMPLE_TEXT_INPUT_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
83d290c5 |
|
06-May-2018 |
Tom Rini <trini@konsulko.com> |
SPDX: Convert all of our single license tags to Linux Kernel style When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com> |
#
06c3d5b9 |
|
03-Mar-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: check installation of the device tree The unit test checks if a device tree is installed. It requires that the 'compatible' property of the root node exists. If available it prints the 'serial-number' property. The serial-number property is derived from the environment variable 'serial#'. This can be used to check if the image_setup_libfdt() function is executed. A Python test is supplied. It sets a value for serial# and checks that the selftest shows this as serial-number. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
df172e11 |
|
18-Oct-2017 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test reboot by EFI watchdog Clear environment variable efi_selftest before executing the default tests. Provide a test verifying that the EFI watchdog reboots the system upon timeout. The test depends on CONFIG_CMD_EFI_SELFTEST=y. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
38b1b790 |
|
15-Sep-2017 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: add a test calling the EFI selftest A Python test script is provided that runs the EFI selftest if CONFIG_CMD_EFI_SELFTEST=y. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
491e87a7 |
|
25-Jan-2020 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test: efi_selftest: fix pylint warnings Fix pylint warnings: * add missing module and function documentation * correct indentation Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
1813ace6 |
|
24-Oct-2019 |
Tom Rini <trini@konsulko.com> |
test/py: test_efi_selftest.py: Updates for python 3 support - In python 3 you must use raw strings for regex as other forms are deprecated and would require further changes to the pattern here. In one case this lets us have a simpler match pattern. - As strings are now Unicode our complex tests (Euro symbol, SHIFT+ALT+FN 5) we need to declare that as a bytes string and then decode it for use. Cc: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Stephen Warren <swarren@nvidia.com> Tested-by: Simon Glass <sjg@chromium.org> [on sandbox] Signed-off-by: Tom Rini <trini@konsulko.com> |
#
0b1da53e |
|
05-Jul-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: not all boards support UEFI runtime reset As not all boards support resets at runtime do not test for it in the Python tests. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
983142df |
|
05-Jul-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: error message test_efi_selftest_device_tree Correct the error message in test_efi_selftest_device_tree(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
68066d5b |
|
20-Apr-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: do not run FDT test with ACPI table. The EBBR specification prescribes that we should have either an ACPI table or a device tree but not both. So do not run the device tree unit test on boards with an ACPI table. Hence there is no need any longer to make it 'on request' only. Do not pass $fdtcontroladdr to `bootefi selftest`. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
bfc2dd53 |
|
06-Apr-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: correct CTRL-A - CTRL-Z console input In the extended text input protocol CTRL-A - CTRL-Z have to be signaled as Unicode characters a-z or A-Z depending on the shift state and not as 0x01 to 0x1a. Update Python unit test. This patch is required for using the EFI shell `edit` command. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
34c96659 |
|
18-Nov-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: check fdt is marked as runtime data Check that the memory area containing the device tree is marked as runtime data. Update the Python test to pass ${fdtcontroladdr} to bootefi. Update the description of the Python test. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
6dec8739 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: test key notification functions Use a key notification function to leave the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL test. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
4f17d8d3 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL Add a unit test for the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
ca09f1df |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: rework test_efi_selftest_text_input() Use more precise regular expressions. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
7d044886 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: Unicode w/ EFI_SIMPLE_TEXT_INPUT_PROTOCOL Test that the Euro sign is correctly retrieved from the console via the EFI_SIMPLE_TEXT_INPUT_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
da9ea5bb |
|
06-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: typo occured %s/occured/occurred/ Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
cb03ec06 |
|
06-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test EFI_SIMPLE_TEXT_INPUT_PROTOCOL Execute the EFI selftest for the EFI_SIMPLE_TEXT_INPUT_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
83d290c5 |
|
06-May-2018 |
Tom Rini <trini@konsulko.com> |
SPDX: Convert all of our single license tags to Linux Kernel style When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com> |
#
06c3d5b9 |
|
03-Mar-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: check installation of the device tree The unit test checks if a device tree is installed. It requires that the 'compatible' property of the root node exists. If available it prints the 'serial-number' property. The serial-number property is derived from the environment variable 'serial#'. This can be used to check if the image_setup_libfdt() function is executed. A Python test is supplied. It sets a value for serial# and checks that the selftest shows this as serial-number. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
df172e11 |
|
18-Oct-2017 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test reboot by EFI watchdog Clear environment variable efi_selftest before executing the default tests. Provide a test verifying that the EFI watchdog reboots the system upon timeout. The test depends on CONFIG_CMD_EFI_SELFTEST=y. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
38b1b790 |
|
15-Sep-2017 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: add a test calling the EFI selftest A Python test script is provided that runs the EFI selftest if CONFIG_CMD_EFI_SELFTEST=y. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
1813ace6 |
|
24-Oct-2019 |
Tom Rini <trini@konsulko.com> |
test/py: test_efi_selftest.py: Updates for python 3 support - In python 3 you must use raw strings for regex as other forms are deprecated and would require further changes to the pattern here. In one case this lets us have a simpler match pattern. - As strings are now Unicode our complex tests (Euro symbol, SHIFT+ALT+FN 5) we need to declare that as a bytes string and then decode it for use. Cc: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Stephen Warren <swarren@nvidia.com> Tested-by: Simon Glass <sjg@chromium.org> [on sandbox] Signed-off-by: Tom Rini <trini@konsulko.com> |
#
0b1da53e |
|
05-Jul-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: not all boards support UEFI runtime reset As not all boards support resets at runtime do not test for it in the Python tests. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
983142df |
|
05-Jul-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: error message test_efi_selftest_device_tree Correct the error message in test_efi_selftest_device_tree(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
68066d5b |
|
20-Apr-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: do not run FDT test with ACPI table. The EBBR specification prescribes that we should have either an ACPI table or a device tree but not both. So do not run the device tree unit test on boards with an ACPI table. Hence there is no need any longer to make it 'on request' only. Do not pass $fdtcontroladdr to `bootefi selftest`. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
bfc2dd53 |
|
06-Apr-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: correct CTRL-A - CTRL-Z console input In the extended text input protocol CTRL-A - CTRL-Z have to be signaled as Unicode characters a-z or A-Z depending on the shift state and not as 0x01 to 0x1a. Update Python unit test. This patch is required for using the EFI shell `edit` command. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
34c96659 |
|
18-Nov-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: check fdt is marked as runtime data Check that the memory area containing the device tree is marked as runtime data. Update the Python test to pass ${fdtcontroladdr} to bootefi. Update the description of the Python test. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
6dec8739 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: test key notification functions Use a key notification function to leave the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL test. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
4f17d8d3 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL Add a unit test for the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
ca09f1df |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: rework test_efi_selftest_text_input() Use more precise regular expressions. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
7d044886 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: Unicode w/ EFI_SIMPLE_TEXT_INPUT_PROTOCOL Test that the Euro sign is correctly retrieved from the console via the EFI_SIMPLE_TEXT_INPUT_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
da9ea5bb |
|
06-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: typo occured %s/occured/occurred/ Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
cb03ec06 |
|
06-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test EFI_SIMPLE_TEXT_INPUT_PROTOCOL Execute the EFI selftest for the EFI_SIMPLE_TEXT_INPUT_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
83d290c5 |
|
06-May-2018 |
Tom Rini <trini@konsulko.com> |
SPDX: Convert all of our single license tags to Linux Kernel style When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com> |
#
06c3d5b9 |
|
03-Mar-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: check installation of the device tree The unit test checks if a device tree is installed. It requires that the 'compatible' property of the root node exists. If available it prints the 'serial-number' property. The serial-number property is derived from the environment variable 'serial#'. This can be used to check if the image_setup_libfdt() function is executed. A Python test is supplied. It sets a value for serial# and checks that the selftest shows this as serial-number. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
df172e11 |
|
18-Oct-2017 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test reboot by EFI watchdog Clear environment variable efi_selftest before executing the default tests. Provide a test verifying that the EFI watchdog reboots the system upon timeout. The test depends on CONFIG_CMD_EFI_SELFTEST=y. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
38b1b790 |
|
15-Sep-2017 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: add a test calling the EFI selftest A Python test script is provided that runs the EFI selftest if CONFIG_CMD_EFI_SELFTEST=y. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
0b1da53e |
|
05-Jul-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: not all boards support UEFI runtime reset As not all boards support resets at runtime do not test for it in the Python tests. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
983142df |
|
05-Jul-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: error message test_efi_selftest_device_tree Correct the error message in test_efi_selftest_device_tree(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
68066d5b |
|
20-Apr-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: do not run FDT test with ACPI table. The EBBR specification prescribes that we should have either an ACPI table or a device tree but not both. So do not run the device tree unit test on boards with an ACPI table. Hence there is no need any longer to make it 'on request' only. Do not pass $fdtcontroladdr to `bootefi selftest`. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
bfc2dd53 |
|
06-Apr-2019 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: correct CTRL-A - CTRL-Z console input In the extended text input protocol CTRL-A - CTRL-Z have to be signaled as Unicode characters a-z or A-Z depending on the shift state and not as 0x01 to 0x1a. Update Python unit test. This patch is required for using the EFI shell `edit` command. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> |
#
34c96659 |
|
18-Nov-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: check fdt is marked as runtime data Check that the memory area containing the device tree is marked as runtime data. Update the Python test to pass ${fdtcontroladdr} to bootefi. Update the description of the Python test. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
6dec8739 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: test key notification functions Use a key notification function to leave the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL test. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
4f17d8d3 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL Add a unit test for the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
ca09f1df |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: rework test_efi_selftest_text_input() Use more precise regular expressions. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
7d044886 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: Unicode w/ EFI_SIMPLE_TEXT_INPUT_PROTOCOL Test that the Euro sign is correctly retrieved from the console via the EFI_SIMPLE_TEXT_INPUT_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
da9ea5bb |
|
06-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: typo occured %s/occured/occurred/ Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
cb03ec06 |
|
06-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test EFI_SIMPLE_TEXT_INPUT_PROTOCOL Execute the EFI selftest for the EFI_SIMPLE_TEXT_INPUT_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
83d290c5 |
|
06-May-2018 |
Tom Rini <trini@konsulko.com> |
SPDX: Convert all of our single license tags to Linux Kernel style When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com> |
#
06c3d5b9 |
|
03-Mar-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: check installation of the device tree The unit test checks if a device tree is installed. It requires that the 'compatible' property of the root node exists. If available it prints the 'serial-number' property. The serial-number property is derived from the environment variable 'serial#'. This can be used to check if the image_setup_libfdt() function is executed. A Python test is supplied. It sets a value for serial# and checks that the selftest shows this as serial-number. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
df172e11 |
|
18-Oct-2017 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test reboot by EFI watchdog Clear environment variable efi_selftest before executing the default tests. Provide a test verifying that the EFI watchdog reboots the system upon timeout. The test depends on CONFIG_CMD_EFI_SELFTEST=y. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
38b1b790 |
|
15-Sep-2017 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: add a test calling the EFI selftest A Python test script is provided that runs the EFI selftest if CONFIG_CMD_EFI_SELFTEST=y. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
#
6dec8739 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: test key notification functions Use a key notification function to leave the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL test. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
|
#
4f17d8d3 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL Add a unit test for the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
|
#
ca09f1df |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: rework test_efi_selftest_text_input() Use more precise regular expressions. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
|
#
7d044886 |
|
11-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: Unicode w/ EFI_SIMPLE_TEXT_INPUT_PROTOCOL Test that the Euro sign is correctly retrieved from the console via the EFI_SIMPLE_TEXT_INPUT_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
|
#
da9ea5bb |
|
06-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: typo occured %s/occured/occurred/ Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
|
#
cb03ec06 |
|
06-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test EFI_SIMPLE_TEXT_INPUT_PROTOCOL Execute the EFI selftest for the EFI_SIMPLE_TEXT_INPUT_PROTOCOL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
|
#
83d290c5 |
|
06-May-2018 |
Tom Rini <trini@konsulko.com> |
SPDX: Convert all of our single license tags to Linux Kernel style When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com>
|
#
06c3d5b9 |
|
03-Mar-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: check installation of the device tree The unit test checks if a device tree is installed. It requires that the 'compatible' property of the root node exists. If available it prints the 'serial-number' property. The serial-number property is derived from the environment variable 'serial#'. This can be used to check if the image_setup_libfdt() function is executed. A Python test is supplied. It sets a value for serial# and checks that the selftest shows this as serial-number. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
|
#
df172e11 |
|
18-Oct-2017 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: test reboot by EFI watchdog Clear environment variable efi_selftest before executing the default tests. Provide a test verifying that the EFI watchdog reboots the system upon timeout. The test depends on CONFIG_CMD_EFI_SELFTEST=y. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
|
#
38b1b790 |
|
15-Sep-2017 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test/py: add a test calling the EFI selftest A Python test script is provided that runs the EFI selftest if CONFIG_CMD_EFI_SELFTEST=y. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
|