|
|
f96e0b |
From 233218d45a88d0de97b1c486fa54ffe1f757fd8b Mon Sep 17 00:00:00 2001
|
|
|
f96e0b |
From: Andrey Borzenkov <arvidjaar@gmail.com>
|
|
|
f96e0b |
Date: Fri, 3 May 2013 18:39:17 +0400
|
|
|
f96e0b |
Subject: [PATCH 413/482] Rename grub-core/tests/checksums.c into
|
|
|
f96e0b |
grub-core/tests/checksums.h and add it as source to functional_test module.
|
|
|
f96e0b |
|
|
|
f96e0b |
---
|
|
|
f96e0b |
ChangeLog | 5 +++++
|
|
|
f96e0b |
grub-core/Makefile.core.def | 1 +
|
|
|
f96e0b |
grub-core/tests/{checksums.c => checksums.h} | 0
|
|
|
f96e0b |
grub-core/tests/video_checksum.c | 4 ++--
|
|
|
f96e0b |
4 files changed, 8 insertions(+), 2 deletions(-)
|
|
|
f96e0b |
rename grub-core/tests/{checksums.c => checksums.h} (100%)
|
|
|
f96e0b |
|
|
|
f96e0b |
diff --git a/ChangeLog b/ChangeLog
|
|
|
f96e0b |
index 1b4c925..8113b6d 100644
|
|
|
f96e0b |
--- a/ChangeLog
|
|
|
f96e0b |
+++ b/ChangeLog
|
|
|
f96e0b |
@@ -1,3 +1,8 @@
|
|
|
f96e0b |
+2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
|
|
|
f96e0b |
+
|
|
|
f96e0b |
+ Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
|
|
|
f96e0b |
+ and add it as source to functional_test module.
|
|
|
f96e0b |
+
|
|
|
f96e0b |
2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
|
|
|
f96e0b |
* grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
|
|
|
f96e0b |
diff --git a/grub-core/Makefile.core.def b/grub-core/Makefile.core.def
|
|
|
f96e0b |
index da7637f..469524f 100644
|
|
|
f96e0b |
--- a/grub-core/Makefile.core.def
|
|
|
f96e0b |
+++ b/grub-core/Makefile.core.def
|
|
|
f96e0b |
@@ -1731,6 +1731,7 @@ module = {
|
|
|
f96e0b |
name = functional_test;
|
|
|
f96e0b |
common = tests/lib/functional_test.c;
|
|
|
f96e0b |
common = tests/lib/test.c;
|
|
|
f96e0b |
+ common = tests/checksums.h;
|
|
|
f96e0b |
common = tests/video_checksum.c;
|
|
|
f96e0b |
common = tests/fake_input.c;
|
|
|
f96e0b |
common = video/capture.c;
|
|
|
f96e0b |
diff --git a/grub-core/tests/checksums.c b/grub-core/tests/checksums.h
|
|
|
f96e0b |
similarity index 100%
|
|
|
f96e0b |
rename from grub-core/tests/checksums.c
|
|
|
f96e0b |
rename to grub-core/tests/checksums.h
|
|
|
f96e0b |
diff --git a/grub-core/tests/video_checksum.c b/grub-core/tests/video_checksum.c
|
|
|
f96e0b |
index 41a262a..f3eb9fc 100644
|
|
|
f96e0b |
--- a/grub-core/tests/video_checksum.c
|
|
|
f96e0b |
+++ b/grub-core/tests/video_checksum.c
|
|
|
f96e0b |
@@ -613,7 +613,7 @@ struct checksum_desc
|
|
|
f96e0b |
};
|
|
|
f96e0b |
|
|
|
f96e0b |
const struct checksum_desc checksum_table[] = {
|
|
|
f96e0b |
-#include "checksums.c"
|
|
|
f96e0b |
+#include "checksums.h"
|
|
|
f96e0b |
};
|
|
|
f96e0b |
|
|
|
f96e0b |
void
|
|
|
f96e0b |
@@ -625,7 +625,7 @@ grub_video_checksum (const char *basename_in)
|
|
|
f96e0b |
|
|
|
f96e0b |
#if defined (GENERATE_MODE) && defined (GRUB_MACHINE_EMU)
|
|
|
f96e0b |
if (genfd < 0)
|
|
|
f96e0b |
- genfd = open ("checksums.c", O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
|
|
|
f96e0b |
+ genfd = open ("checksums.h", O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
|
|
|
f96e0b |
if (genfd >= 0)
|
|
|
f96e0b |
{
|
|
|
f96e0b |
char buf[400];
|
|
|
f96e0b |
--
|
|
|
f96e0b |
1.8.2.1
|
|
|
f96e0b |
|