- tests: Restrict gpt header munge to little-endian systems
- Add perl Digest::CRC as a build requirement so more tests will run
This commit is contained in:
parent
7e490f036c
commit
7d372625f4
@ -0,0 +1,51 @@
|
||||
From 990ca85d9986c9041801ecca04aed1a0f13867a2 Mon Sep 17 00:00:00 2001
|
||||
From: "Brian C. Lane" <bcl@redhat.com>
|
||||
Date: Wed, 11 Sep 2013 09:09:42 -0700
|
||||
Subject: [PATCH] tests: Restrict gpt-header-munge to little-endian systems
|
||||
|
||||
gpt-header-munge uses perl to manipulate the gpt header for the test. It
|
||||
only works on 64 bit little-endian systems so restrict it to x86_64
|
||||
only.
|
||||
|
||||
* tests/t0210-gpt-resized-partition-entry-array.sh: Skip if not x86_64
|
||||
* tests/t0211-gpt-rewrite-header.sh: Skip if not x86_64
|
||||
---
|
||||
tests/t0210-gpt-resized-partition-entry-array.sh | 5 +++++
|
||||
tests/t0211-gpt-rewrite-header.sh | 5 +++++
|
||||
2 files changed, 10 insertions(+)
|
||||
|
||||
diff --git a/tests/t0210-gpt-resized-partition-entry-array.sh b/tests/t0210-gpt-resized-partition-entry-array.sh
|
||||
index 8854018..512f342 100755
|
||||
--- a/tests/t0210-gpt-resized-partition-entry-array.sh
|
||||
+++ b/tests/t0210-gpt-resized-partition-entry-array.sh
|
||||
@@ -19,6 +19,11 @@
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ ../parted $srcdir
|
||||
require_perl_digest_crc_
|
||||
|
||||
+# gpt-header-munge will fail on big-endian systems
|
||||
+if test $(uname -m) != x86_64; then
|
||||
+ skip_ 'this test only works on little-endian systems'
|
||||
+fi
|
||||
+
|
||||
ss=$sector_size_
|
||||
|
||||
N=2M
|
||||
diff --git a/tests/t0211-gpt-rewrite-header.sh b/tests/t0211-gpt-rewrite-header.sh
|
||||
index 58625a2..a87e753 100644
|
||||
--- a/tests/t0211-gpt-rewrite-header.sh
|
||||
+++ b/tests/t0211-gpt-rewrite-header.sh
|
||||
@@ -23,6 +23,11 @@
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ ../parted $srcdir
|
||||
require_perl_digest_crc_
|
||||
|
||||
+# gpt-header-munge will fail on big-endian systems
|
||||
+if test $(uname -m) != x86_64; then
|
||||
+ skip_ 'this test only works on little-endian systems'
|
||||
+fi
|
||||
+
|
||||
ss=$sector_size_
|
||||
|
||||
ns=100 # Initial number of sectors.
|
||||
--
|
||||
1.8.3.1
|
||||
|
@ -4,7 +4,7 @@
|
||||
Summary: The GNU disk partition manipulation program
|
||||
Name: parted
|
||||
Version: 3.1
|
||||
Release: 15%{?dist}
|
||||
Release: 16%{?dist}
|
||||
License: GPLv3+
|
||||
Group: Applications/System
|
||||
URL: http://www.gnu.org/software/parted
|
||||
@ -90,6 +90,7 @@ Patch0067: 0067-libparted-Add-hfs_esp-partition-flag-to-GPT.patch
|
||||
Patch0068: 0068-libparted-Recognize-btrfs-filesystem.patch
|
||||
Patch0069: 0069-tests-Add-btrfs-and-xfs-to-the-fs-probe-test.patch
|
||||
Patch0070: 0070-libparted-Flush-parent-device-on-open-962611.patch
|
||||
Patch0071: 0071-tests-Restrict-gpt-header-munge-to-little-endian-sys.patch
|
||||
|
||||
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: e2fsprogs-devel
|
||||
@ -106,6 +107,7 @@ BuildRequires: git
|
||||
BuildRequires: autoconf automake
|
||||
BuildRequires: e2fsprogs
|
||||
BuildRequires: dosfstools
|
||||
BuildRequires: perl-Digest-CRC
|
||||
|
||||
Requires(post): /sbin/ldconfig
|
||||
Requires(post): /sbin/install-info
|
||||
@ -225,6 +227,10 @@ fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Sep 11 2013 Brian C. Lane <bcl@redhat.com> 3.1-16
|
||||
- tests: Restrict gpt header munge to little-endian systems
|
||||
- Add perl Digest::CRC as a build requirement so more tests will run
|
||||
|
||||
* Wed Sep 04 2013 Brian C. Lane <bcl@redhat.com> 3.1-15
|
||||
- libparted: Flush parent device on open (#962611)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user