Tests unifont
cover Tests unifont
These were suggested by Thomas Schmitt. The first causes an early hard error in the functional test when unicode.pf2 is not available. And the second is a documentation change to add the xfonts-unifont to the list of required debian packages needed for running the tests successfully.
Glenn
Glenn Washburn (2):
tests: Return hard error for functional test when unicode.pf2 does not
exist
docs: Document that the functional test requires the package
xfonts-unifont
INSTALL | 1 + tests/grub_func_test.in | 5 +++++ 2 files changed, 6 insertions(+)
Signature · 1 line
2.34.1
PATCH 1/2 tests: Return hard error for functional test when unicode.pf2 does not exist
The functional test requires unicode.pf2 to run successfully, so explicitly have the test return ERROR when its not found.
--- tests/grub_func_test.in | 5 +++++ 1 file changed, 5 insertions(+)
tests/grub_func_test.in +5 -0
@@ -3,6 +3,11 @@ set -e . "@builddir@/grub-core/modinfo.sh" +if [ ! -e "@builddir@/"unicode.pf2 ]; then + echo "Functional test requires grub-mkfont support" + exit 99 +fi + case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in # PLATFORM: Max RAM is 256M mips-qemu_mips | mipsel-qemu_mips)
Signature · 1 line
2.34.1
Re: [PATCH 1/2] tests: Return hard error for functional test when unicode.pf2 does not exist
Hi,
Quoted 14 lines · Glenn Washburn
The functional test requires unicode.pf2 to run successfully, so explicitly have the test return ERROR when its not found.
Signed-off-by Glenn Washburn <[email protected]>--- tests/grub_func_test.in | 5 +++++ 1 file changed, 5 insertions(+)tests/grub_func_test.in +0
-0@@ -3,6 +3,11 @@ set -e
tests/grub_func_test.in set -e · line 13
Quoted 10 lines
tests/grub_func_test.in +5
-0. "@builddir@/grub-core/modinfo.sh" +if [ ! -e "@builddir@/"unicode.pf2 ]; then + echo "Functional test requires grub-mkfont support" + exit 99 +fi + case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in # PLATFORM: Max RAM is 256M mips-qemu_mips | mipsel-qemu_mips)
With xfonts-unifont installed, the test gets beyond the grub-mkisofs run and shows the usual complaints about checksums.
After
apt-get remove xfonts-unifont
and in the git repo:
rm unicode.pf2
./configure && make
the grub_func_test ends very quickly with:
Functional test requires grub-mkfont support
ERROR grub_func_test (exit status: 99)
Have a nice day :)
Thomas
PATCH 2/2 docs: Document that the functional test requires the package xfonts-unifont
In reply to Glenn Washburn--- INSTALL | 1 + 1 file changed, 1 insertion(+)
INSTALL +1 -0
@@ -70,6 +70,7 @@ Prerequisites for make-check: * xorriso 1.2.9 or later, for grub-mkrescue and grub-shell * wamerican, for grub-fs-tester * mtools, FAT tools for EFI platforms +* xfonts-unifont, for the functional tests * If running a Linux kernel the following modules must be loaded: - fuse, loop
Signature · 1 line
2.34.1
Re: [PATCH 2/2] docs: Document that the functional test requires the package xfonts-unifont
Hi,
Quoted 12 lines · Glenn Washburn
Document that the functional test requires the package xfonts-unifont
Signed-off-by Glenn Washburn <[email protected]>--- INSTALL | 1 + 1 file changed, 1 insertion(+)INSTALL +0
-0
INSTALL Prerequisites for make-check: · line 76
Quoted 7 lines
INSTALL +1
-0@@ -70,6 +70,7 @@ Prerequisites for make-check: * xorriso 1.2.9 or later, for grub-mkrescue and grub-shell * wamerican, for grub-fs-tester * mtools, FAT tools for EFI platforms +* xfonts-unifont, for the functional tests * If running a Linux kernel the following modules must be loaded: - fuse, loop
Have a nice day :)
Thomas
Re: [PATCH 2/2] docs: Document that the functional test requires the package xfonts-unifont
In reply to Glenn WashburnQuoted 10 lines · Glenn Washburn
Signed-off-by Glenn Washburn <[email protected]>--- INSTALL | 1 + 1 file changed, 1 insertion(+)INSTALL +0
-0
INSTALL Prerequisites for make-check: · line 73
Quoted 4 lines
INSTALL +1
-0@@ -70,6 +70,7 @@ Prerequisites for make-check: * xorriso 1.2.9 or later, for grub-mkrescue and grub-shell * wamerican, for grub-fs-tester * mtools, FAT tools for EFI platforms +* xfonts-unifont, for the functional tests
I would just add it is needed for grub-mkfont build too. I can do it for you before push...
Otherwise Reviewed-by: Daniel Kiper <[email protected]> for both patches...
Daniel
Re: [PATCH 2/2] docs: Document that the functional test requires the package xfonts-unifont
Quoted 6 lines · On Fri, 24 Feb 2023 16:54:28 +0100 Daniel Kiper <[email protected]> wrote:
Quoted 5 lines · Glenn Washburn
Signed-off-by Glenn Washburn <[email protected]>--- INSTALL | 1 + 1 file changed, 1 insertion(+)
Quoted 12 lines
INSTALL Prerequisites for make-check: · line 73
Quoted 9 lines
INSTALL +1
-0@@ -70,6 +70,7 @@ Prerequisites for make-check: * xorriso 1.2.9 or later, for grub-mkrescue and grub-shell * wamerican, for grub-fs-tester * mtools, FAT tools for EFI platforms +* xfonts-unifont, for the functional testsI would just add it is needed for grub-mkfont build too. I can do it for you before push...
Sure, although, the note that xfonts-unifont is needed for grub-mkfont makes more sense to me up in the build requirements. The above line is in a section specifically for make check testing prereqs. I would expect someone trying to figure out why grub-mkfont is failing to build would look in the build requirements section.
Glenn
Quoted 5 lines
Otherwise Reviewed-by: Daniel Kiper <[email protected]> for both patches...
Daniel
Re: [PATCH 2/2] docs: Document that the functional test requires the package xfonts-unifont
Quoted 22 lines · Glenn Washburn
Quoted 6 lines · On Fri, 24 Feb 2023 16:54:28 +0100 Daniel Kiper <[email protected]> wrote:
Quoted 5 lines · Glenn Washburn
Signed-off-by Glenn Washburn <[email protected]>--- INSTALL | 1 + 1 file changed, 1 insertion(+)Quoted 12 lines
INSTALL Prerequisites for make-check: · line 73
Quoted 9 lines
INSTALL +1
-0@@ -70,6 +70,7 @@ Prerequisites for make-check: * xorriso 1.2.9 or later, for grub-mkrescue and grub-shell * wamerican, for grub-fs-tester * mtools, FAT tools for EFI platforms +* xfonts-unifont, for the functional testsI would just add it is needed for grub-mkfont build too. I can do it for you before push...
Quoted 5 lines
Sure, although, the note that xfonts-unifont is needed for grub-mkfont makes more sense to me up in the build requirements. The above line is in a section specifically for make check testing prereqs. I would expect someone trying to figure out why grub-mkfont is failing to build would look in the build requirements section.
Good point! I have merged patch as is. If you could make another patch which adds xfonts-unifont to build requirements that would be perfect.
Daniel