Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
and add it as source to functional_test module.
This commit is contained in:
parent
aa73d688e7
commit
8cec7bd40b
4 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
|
||||||
|
|
||||||
|
Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
|
||||||
|
and add it as source to functional_test module.
|
||||||
|
|
||||||
2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
|
2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
|
* grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
|
||||||
|
|
|
@ -1731,6 +1731,7 @@ module = {
|
||||||
name = functional_test;
|
name = functional_test;
|
||||||
common = tests/lib/functional_test.c;
|
common = tests/lib/functional_test.c;
|
||||||
common = tests/lib/test.c;
|
common = tests/lib/test.c;
|
||||||
|
common = tests/checksums.h;
|
||||||
common = tests/video_checksum.c;
|
common = tests/video_checksum.c;
|
||||||
common = tests/fake_input.c;
|
common = tests/fake_input.c;
|
||||||
common = video/capture.c;
|
common = video/capture.c;
|
||||||
|
|
|
@ -613,7 +613,7 @@ struct checksum_desc
|
||||||
};
|
};
|
||||||
|
|
||||||
const struct checksum_desc checksum_table[] = {
|
const struct checksum_desc checksum_table[] = {
|
||||||
#include "checksums.c"
|
#include "checksums.h"
|
||||||
};
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -625,7 +625,7 @@ grub_video_checksum (const char *basename_in)
|
||||||
|
|
||||||
#if defined (GENERATE_MODE) && defined (GRUB_MACHINE_EMU)
|
#if defined (GENERATE_MODE) && defined (GRUB_MACHINE_EMU)
|
||||||
if (genfd < 0)
|
if (genfd < 0)
|
||||||
genfd = open ("checksums.c", O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
|
genfd = open ("checksums.h", O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
|
||||||
if (genfd >= 0)
|
if (genfd >= 0)
|
||||||
{
|
{
|
||||||
char buf[400];
|
char buf[400];
|
||||||
|
|
Loading…
Reference in a new issue