summaryrefslogtreecommitdiffstats
path: root/lib/efi_selftest/efi_selftest_hii.c
Commit message (Collapse)AuthorAgeFilesLines
* efi_selftest: fix test_hii_string_get_string()Heinrich Schuchardt2019-03-201-13/+4
| | | | | | | | | The check testing the string result of get_string() returned the wrong result. The result was ignored. Use efi_st_strcmp_16_8() for the string comparison. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* efi_selftest: fix memory allocation in HII testsHeinrich Schuchardt2019-02-161-34/+68
| | | | | | | | | In efi_selftest we are in EFI land. We cannot call U-Boot library functions malloc() and free() but should use the boot time services instead. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Alexander Graf <agraf@suse.de>
* efi_selftest: fix HII testsHeinrich Schuchardt2019-02-131-11/+0
| | | | | | | | | | | | | | | efi_st_printf() does not support format code %ld. Anyway the format code for size_t would be %zu which isn't supported either. We do not want any divisions to avoid invalid references to integer arithmetic routines, cf. https://gcc.gnu.org/onlinedocs/gccint/Integer-library-routines.html. As a simple remedy remove the noisy messages from the output. They are not relevant for automated testing. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
* efi_selftest: add HII database protocols testAKASHI Takahiro2019-02-131-0/+1046
This efi_selftest tests HII database protocol and HII string protocol. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Signed-off-by: Alexander Graf <agraf@suse.de>