dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

Blame SOURCES/0369-missing-file.patch

f96e0b
From 8095fabb0e89dad72cfcb337df3637b8ec92b6c3 Mon Sep 17 00:00:00 2001
f96e0b
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
f96e0b
Date: Sat, 27 Apr 2013 22:55:02 +0200
f96e0b
Subject: [PATCH 369/482] missing file
f96e0b
f96e0b
---
f96e0b
 tests/core_compress_test.in | 36 ++++++++++++++++++++++++++++++++++++
f96e0b
 1 file changed, 36 insertions(+)
f96e0b
 create mode 100644 tests/core_compress_test.in
f96e0b
f96e0b
diff --git a/tests/core_compress_test.in b/tests/core_compress_test.in
f96e0b
new file mode 100644
f96e0b
index 0000000..bd57f6f
f96e0b
--- /dev/null
f96e0b
+++ b/tests/core_compress_test.in
f96e0b
@@ -0,0 +1,36 @@
f96e0b
+#! /bin/sh
f96e0b
+# Copyright (C) 2013  Free Software Foundation, Inc.
f96e0b
+#
f96e0b
+# GRUB is free software: you can redistribute it and/or modify
f96e0b
+# it under the terms of the GNU General Public License as published by
f96e0b
+# the Free Software Foundation, either version 3 of the License, or
f96e0b
+# (at your option) any later version.
f96e0b
+#
f96e0b
+# GRUB is distributed in the hope that it will be useful,
f96e0b
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
f96e0b
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
f96e0b
+# GNU General Public License for more details.
f96e0b
+#
f96e0b
+# You should have received a copy of the GNU General Public License
f96e0b
+# along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
f96e0b
+
f96e0b
+set -e
f96e0b
+grubshell=@builddir@/grub-shell
f96e0b
+
f96e0b
+. "@builddir@/grub-core/modinfo.sh"
f96e0b
+
f96e0b
+# FIXME: Only mips currently supports configurable core compression
f96e0b
+case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in
f96e0b
+    *-emu | i386-* | x86_64-* | sparc64-* | ia64-*)
f96e0b
+	exit 0
f96e0b
+	;;
f96e0b
+esac
f96e0b
+
f96e0b
+
f96e0b
+if [ "$(echo hello | "${grubshell}" --grub-mkimage-extra=-C --grub-mkimage-extra=xz)" != "Hello World" ]; then
f96e0b
+   exit 1
f96e0b
+fi
f96e0b
+
f96e0b
+if [ "$(echo hello | "${grubshell}" --grub-mkimage-extra=-C --grub-mkimage-extra=none)" != "Hello World" ]; then
f96e0b
+   exit 1
f96e0b
+fi
f96e0b
-- 
f96e0b
1.8.2.1
f96e0b