Michael Marineau
c70627bc9f
gpt: add search by partition label and uuid commands
...
Builds on the existing filesystem search code. Only for GPT right now.
2014-11-27 18:49:24 -08:00
Michael Marineau
9c61d9bc2c
tests: add some partitions to the gpt unit test data
2014-11-27 16:39:07 -08:00
Michael Marineau
b97f2fa47e
Merge pull request #6 from coreos/gnu
...
Merge upstream GRUB changes
2014-11-23 17:58:18 -07:00
Michael Marineau
e49d5b587e
gpt: new gptprio.next command for selecting priority based partitions
...
Basic usage would look something like this:
gptprio.next -d usr_dev -u usr_uuid
linuxefi ($usr_dev)/boot/vmlinuz mount.usr=PARTUUID=$usr_uuid
After booting the system should set the 'successful' bit on the
partition that was used.
2014-11-23 15:39:57 -07:00
Andrei Borzenkov
e2dd6daa8c
grub-fs-tester: consistently print output of grub ls if test fails
2014-11-20 20:56:51 +03:00
Michael Marineau
6278c3e75f
gpt: add a new generic GUID type
...
In order to do anything with partition GUIDs they need to be stored in a
proper structure like the partition type GUIDs. Additionally add an
initializer macro to simplify defining both GUID types.
2014-11-15 13:32:37 -08:00
Michael Marineau
051545ddf0
gpt: add write function and gptrepair command
...
The first hint of something practical, a command that can restore any of
the GPT structures from the alternate location. New test case must run
under QEMU because the loopback device used by the other unit tests does
not support writing.
2014-10-20 14:10:47 -07:00
Michael Marineau
478458d404
gpt: add new repair function to sync up primary and backup tables.
2014-10-20 13:54:58 -07:00
Michael Marineau
3b2674aef7
gpt: rename misnamed header location fields
...
The header location fields refer to 'this header' and 'alternate header'
respectively, not 'primary header' and 'backup header'. The previous
field names are backwards for the backup header.
2014-10-20 13:52:55 -07:00
Michael Marineau
e726b8b78d
tests: fix path to words file on Gentoo/CoreOS
...
By default there isn't a linux.words file, but there is words.
2014-10-19 20:44:34 -07:00
Michael Marineau
f82f65f338
gpt: start new GPT module
...
This module is a new implementation for reading GUID Partition Tables
which is much stricter than the existing part_gpt module and exports GPT
data directly instead of the generic grub_partition structure. It will
be the basis for modules that need to read/write/update GPT data.
The current code does nothing more than read and verify the table.
2014-10-18 13:54:54 -07:00
Vladimir Serbinenko
636977b089
Mark strings for translation and add remaining ones to exclude list.
2013-12-18 06:50:24 +01:00
Colin Watson
3a82f8bb48
Fix grub-shell to avoid breaking "make distcheck"
...
Copying the themes directory in grub-shell isn't
parallel-test-friendly and breaks on the second test when the source
directory is read-only (as in "make distcheck"). Instead, add a
hidden --themes-directory option to grub-mkrescue et al, and use it
in grub-shell.
2013-12-04 13:36:34 +00:00
Colin Watson
fc3f2b72cd
* tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
...
than hardcoding /usr/local/bin/xorriso.
2013-11-26 23:51:48 +00:00
Vladimir Serbinenko
7d44ff7de6
Add automated filesystem checking based on scripts I've used now for
...
quite some time locally. Most of the test require root so they are
skipped when run without necessarry privelegies.
2013-11-19 21:05:59 +01:00
Vladimir Serbinenko
2d6a38fbf7
Merge branch 'master' of git.sv.gnu.org:/srv/git/grub
2013-11-18 17:46:15 +01:00
Vladimir Serbinenko
bb2b275b7d
* tests/grub_func_test.in: Decrease RAM size to 512M. With less
...
fragmentation 512M is enough.
2013-11-18 17:42:54 +01:00
Colin Watson
60870be86c
* tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
...
but for symmetry).
* tests/lzocompress_test.in: Skip if lzop is not installed.
* tests/xzcompress_test.in: Skip if xz is not installed.
2013-11-18 16:16:33 +00:00
Vladimir Serbinenko
efb8de492a
* tests/util/grub-shell.in: Increase console size to 1024x1024.
2013-11-18 16:32:22 +01:00
Colin Watson
1e8e2e78a5
* tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
...
files have not been built.
2013-11-18 14:02:11 +00:00
Vladimir Serbinenko
35c2851cc1
* tests/util/grub-shell.in: Use -cdrom and don't force cdrom
...
on primary master on pseries.
2013-11-18 14:40:41 +01:00
Vladimir Serbinenko
256ee7ac6a
* tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
...
master since with some combinations of qemu and firmware only primary
IDE channel is available.
2013-11-18 11:51:46 +01:00
Vladimir Serbinenko
77dae919b6
* tests/grub_func_test.in: Increase memory reservation as on EFI we need
...
to leave some memory to firmware.
2013-11-17 02:16:21 +01:00
Vladimir Serbinenko
b80c2d6d4b
* tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
...
now needs full arguments.
2013-11-17 02:09:15 +01:00
Vladimir Serbinenko
889ebe922b
* tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
...
counterpart of fixing the naming of escc ports.
2013-11-17 00:57:54 +01:00
Vladimir Serbinenko
cd46aa6cef
Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
...
the function of these files exceeds what can be sanely handled in shell
in posix-comaptible way. Also writing it in C extends the functionality
to non-UNIX-like OS and minimal environments.
2013-11-16 20:21:16 +01:00
Vladimir Serbinenko
31747dd521
* grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
...
condition.
* tests/grub_func_test.in: Increase memory allocation.
2013-11-12 00:44:00 +01:00
Vladimir Serbinenko
665c575b2a
* tests/util/grub-shell.in: Boot as hdd on ppc by default.
2013-11-08 05:22:36 +01:00
Vladimir Serbinenko
87a04a2df6
* tests/test_sha512sum.in: Make it work on emu.
2013-11-07 02:41:09 +01:00
Vladimir Serbinenko
8b3e6eb6b6
* tests/util/grub-shell.in: Copy themes.
2013-11-02 19:17:25 +01:00
BVK Chaitanya
1e6ad6a668
* tests/util/grub-shell.in: Add new --debug option.
2013-10-26 15:01:28 +02:00
BVK Chaitanya
188929ebee
* tests/test_unset.in: New test.
2013-10-26 14:52:54 +02:00
BVK Chaitanya
7994a09a9b
* tests/test_sha512sum.in: New test.
2013-10-26 14:35:35 +02:00
Vladimir Serbinenko
3d695d7b93
* tests/date_unit_test.c: New test.
2013-10-26 02:48:19 +02:00
Vladimir 'phcoder' Serbinenko
bbd2b5396b
* grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
...
"(null)" string.
Simplify expressions to save around 256 bytes in kernel.img.
* tests/printf_unit_test.c (printf_test): Add "(null)" tests.
2013-10-19 23:52:09 +02:00
BVK Chaitanya
3d46c22f5b
Added `tr' command support.
...
* grub-core/commands/tr.c: New file.
* grub-core/Makefile.core.def: Build rules for new module.
* tests/grub_cmd_tr.in: New test.
* Makefile.util.def: Build rules for new test.
2013-10-17 19:06:29 +02:00
Vladimir 'phcoder' Serbinenko
148f100768
* grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
...
* tests/printf_unit_test.c (printf_test): Add %% tests.
Reported by: Paulo Flabiano Smorigo.
2013-10-15 15:12:15 +02:00
Vladimir 'phcoder' Serbinenko
0caa407cd4
* tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
2013-10-03 23:25:48 +02:00
Vladimir 'phcoder' Serbinenko
4f47d809c7
* tests/grub_func_test.in: Add unicode.pf2.
2013-08-02 22:59:21 +02:00
Colin Watson
e639c204e0
* util/grub-script-check.c: Fail on scripts containing no
...
commands, to guard against corrupted grub-mkconfig setups that
produce no useful output.
* tests/grub_script_no_commands.in: New test.
* Makefile.util.def (grub_script_no_commands): Add.
Reported by Hans Putter. Fixes Debian bug #713886 .
2013-06-25 15:08:11 +01:00
Vladimir 'phcoder' Serbinenko
0301a8b36d
* tests/grub_script_eval.in: Really add the eval test.
2013-06-15 17:39:45 +02:00
Radosław Szymczyszyn
1e908b34a6
* grub-core/partmap/dfly.c: New partition map.
2013-05-15 17:26:49 +02:00
Vladimir 'phcoder' Serbinenko
1202c76486
* tests/util/grub-shell.in: Remove the temporary directory on grub-emu
...
after the test.
2013-05-14 08:41:39 +02:00
Vladimir 'phcoder' Serbinenko
43fe02cbaf
* tests/gettext_strings_test.in: A test to check for strings not
...
marked for translation.
2013-05-07 11:47:30 +02:00
Vladimir 'phcoder' Serbinenko
1eed0e6ebc
* tests/priority_queue_unit_test.cc: New test.
2013-05-07 11:30:48 +02:00
Vladimir 'phcoder' Serbinenko
b7c036bce3
More video checks.
2013-05-04 14:00:14 +02:00
Vladimir 'phcoder' Serbinenko
daf01d61ff
Fix test -a and -o precedence.
...
Reported by: adrian15.
2013-05-04 13:38:59 +02:00
Vladimir 'phcoder' Serbinenko
c104b6f93e
New series of tests for gfxterm and gfxmenu.
2013-05-03 14:09:55 +02:00
Vladimir 'phcoder' Serbinenko
5036166022
First automated video test (running videotest and comparing results)
2013-05-02 14:39:03 +02:00
Vladimir 'phcoder' Serbinenko
3f9634e550
Add few more tests.
2013-04-30 17:41:32 +02:00