David Michael
e576eb0cbc
Merge remote-tracking branch 'upstream/master'
2017-01-23 14:02:45 -08:00
Michael Marineau
e4d25afd18
gpt: prefer disk size from header over firmware
...
The firmware and the OS may disagree on the disk configuration and size.
Although such a setup should be avoided users are unlikely to know about
the problem, assuming everything behaves like the OS. Tolerate this as
best we can and trust the reported on-disk location over the firmware
when looking for the backup GPT. If the location is inaccessible report
the error as best we can and move on.
2016-09-23 12:25:53 -07:00
Michael Marineau
bf127238ee
gpt: fix partition table indexing and validation
...
Portions of the code attempted to handle the fact that GPT entries on
disk may be larger than the currently defined struct while others
assumed the data could be indexed by the struct size directly. This
never came up because no utility uses a size larger than 128 bytes but
for the sake of safety we need to do this by the spec.
2016-09-02 17:04:13 -07:00
Michael Marineau
4d91c78833
gptprio_test: check GPT is repaired when appropriate
2016-08-22 17:33:17 -07:00
Michael Marineau
6bc5c77bd5
gptrepair_test: fix typo in cleanup trap
2016-08-22 17:33:17 -07:00
Vladimir Serbinenko
070e190305
Use console rather than serial_efi0 on arm64-efi in tests
2016-02-27 13:35:36 +01:00
Vladimir Serbinenko
feef882f98
grub-shell: Update 32-bit OVMF binary name.
2016-02-12 16:08:04 +01:00
Vladimir Serbinenko
6f4189ffc1
powerpc: Trim header in tests.
2016-02-12 12:42:04 +01:00
Vladimir Serbinenko
e5c9300191
printf: Fix and test %% behaviour in presence of subsequenbt args.
2016-02-12 12:33:41 +01:00
Vladimir Serbinenko
cc2ed41039
arm: Ignore qemu clock bug
2016-01-22 10:12:43 +01:00
Vladimir Serbinenko
b4787552b0
Tests: Support arm-efi
2016-01-08 09:49:08 +01:00
Vladimir Serbinenko
9efd79f376
grub-shell: Support arm64-efi
2016-01-07 21:02:53 +01:00
Vladimir Serbinenko
a2dcab70f8
x86_64-efi: Automatically add -bios OVMF.fd to qemu in tests.
2016-01-07 19:29:53 +01:00
Vladimir Serbinenko
62328a95c9
Allow GRUB_QEMU_OPTS to override machine.
2016-01-07 19:28:47 +01:00
Vladimir Serbinenko
6e4174f6f9
arm64: Disable tests that need native drivers.
2016-01-07 19:27:56 +01:00
Vladimir Serbinenko
db5eb6225d
grub-shell: Use new cbfstool syntax.
2016-01-07 15:55:45 +01:00
Vladimir Serbinenko
44876dd64e
grub-shell: On i386-ieee1275 don't try to switch to console.
...
console goes to serial as well, so this doesn't stop garbage from going
to serial. But it creates garbage itself.
2016-01-07 15:54:42 +01:00
Vladimir Serbinenko
86e3b4ba1a
hddboot_test: reenable on OVMF
...
OVMF now supports booting from disks.
2016-01-07 15:54:06 +01:00
Vladimir Serbinenko
9f8f9e62af
minixfs_test: Check if mkfs.minixfs supports -B option.
2016-01-05 21:10:27 +01:00
Vladimir Serbinenko
f86fd54cf0
Add memdisk support to grub-emu.
...
Use it to add custom files, so that tests which need them work.
2016-01-05 21:10:27 +01:00
Vladimir Serbinenko
f2b54835f2
Disable progress indicator in grub-shell.
...
This disables progress indicator for tests. This in turn fixes test
flakiness as they ended up timing-dependent.
2016-01-05 21:10:10 +01:00
Michael Marineau
286f1b63df
Merge branch 'master' of git://git.savannah.gnu.org/grub
2015-12-17 12:01:00 -08:00
Vladimir Serbinenko
4656ced41c
fstester: Enforce LC_ALL=C
2015-11-08 22:39:36 +01:00
Andrei Borzenkov
c054020581
partmap_test: check that parted is available
...
Skip test if parted is unavailable instead of returning false failure.
2015-11-07 23:42:35 +03:00
Alex Crawford
53a4e99990
gpt: add search by disk uuid command
2015-08-31 16:20:37 -07:00
Alex Crawford
a8c24e86d0
gpt: minor cleanup
2015-08-31 15:23:39 -07:00
Michael Marineau
91391dc52b
Merge pull request #14 from coreos/gnu
...
Merge upstream GRUB changes
2015-08-13 13:32:56 -07:00
Michael Marineau
c7c750ecc2
Merge upstream changes as of April 29th
2015-07-31 15:41:48 -07:00
Vladimir Serbinenko
333855c646
zfs_test: Skip dotdot in volume root test.
...
Given special semantics of ZFS it's far from clear what the expected
result is. Just skip it for now
2015-07-24 01:23:45 +02:00
Vladimir Serbinenko
900fca88ac
xfs_test: Test both crc and non-crc filesystems.
2015-07-24 01:23:45 +02:00
Andrei Borzenkov
7af839a108
tests: regression tests for "." and ".." directory entries
2015-06-18 20:09:47 +03:00
Vladimir Serbinenko
237510486a
fddboot_test: Add -no-pad to xorriso.
2015-03-20 12:58:08 +01:00
Andrei Borzenkov
19c4156d16
grub-fs-tester: add LVM RAID1 support
...
LVM miscalculates bitmap size with small extent, so start with 16K as
for other RAID types.
Until version 2.02.103 LVM counts metadata segments twice when checking
available space, reduce segment count by one to account for this bug.
2015-03-19 21:31:26 +03:00
Andrei Borzenkov
7c9309e50a
grub-fs-tester: explicitly set segment type for LVM mirror
...
LVM mirror defaults to RAID1 today and can be different on different
systems as set in lvm.conf.
2015-03-16 21:16:19 +03:00
Andrei Borzenkov
fa07d919d1
grub-fs-tester: better estimation of filesystem time for LVM/RAID
...
Write activity with LVM/RAID can happen after filesystem is unmounted.
In my testing modification time of loop files was 15 - 20 seconds
after unmount. So use time as close to unmount as possible as
reference instead.
2015-03-15 21:24:09 +03:00
Vladimir Serbinenko
ddde9ca71a
grub-shell: Add missing --locale-directory.
...
Fixes the language tests is no make install was done.
2015-02-28 15:14:16 +01:00
Vladimir Serbinenko
050505ab8f
ntfs_test: Skip is setfattr is unavailable.
2015-02-28 15:13:41 +01:00
Vladimir Serbinenko
e20aa39ea4
ext2: Support META_BG.
...
This fixes bug that system would become unbootable after ext*
online resize if no resize_inode was created at ext* format time.
2015-02-16 20:53:26 +01:00
Andrei Borzenkov
35a492e4a2
tests: remove hardcoded paths from syslinux_test
...
abs_top_srcdir appeared in Autoconf 2.52f. Minimal grub requirement
is 2.60 so we should be good here.
2015-02-16 22:24:05 +03:00
Vladimir Serbinenko
d3d2e54911
Add test for syslinux converter
2015-02-16 15:58:59 +01:00
Andrei Borzenkov
1e047e53ae
tests: add test command file tests
...
This requires access to files in both host and grub image, so
implementing as separate test unit instead of script test was
more easy.
2015-01-30 21:42:46 +03:00
Andrei Borzenkov
f153fcb5a5
test: consistently use TMPDIR and same name pattern for temp files
2015-01-30 20:31:20 +03:00
Vladimir Serbinenko
8acb9dc697
* tests/file_filter/file: Really add missing file.
2015-01-23 19:46:02 +01:00
Andrei Borzenkov
272e0466da
add file filters tests
...
Tests file access with all filters enabled. It does it both for local
and network access, due to regression in signature checking over network.
This includes all files in distribution to not depend on existence
of compression tools and gpg. Test preloads all required modules to
avoid having to provide signatures for them.
Still not implemented is file offset filter (is not available in grub
script, needs extra module)
2014-12-05 21:04:06 +03:00
Andrei Borzenkov
4b94e3227b
grub-shell: support --files also for net boot
...
This allows running tests that require extra files using netboot as well.
2014-12-05 19:55:59 +03:00
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