|
iPXE
|
zlib image tests More...
Go to the source code of this file.
Data Structures | |
| struct | zlib_test |
| A zlib test. More... | |
Macros | |
| #define | DATA(...) { __VA_ARGS__ } |
| Define inline data. More... | |
| #define | ZLIB(name, COMPRESSED, EXPECTED) |
| Define a zlib test. More... | |
| #define | zlib_ok(test) zlib_okx ( test, __FILE__, __LINE__ ) |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| ZLIB (hello_world, DATA(0x78, 0x9c, 0xf3, 0x48, 0xcd, 0xc9, 0xc9, 0x57, 0x28, 0xcf, 0x2f, 0xca, 0x49, 0x01, 0x00, 0x18, 0xab, 0x04, 0x3d), DATA(0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x20, 0x77, 0x6f, 0x72, 0x6c, 0x64)) | |
| "Hello world" More... | |
| static void | zlib_okx (struct zlib_test *test, const char *file, unsigned int line) |
| Report zlib test result. More... | |
| static void | zlib_test_exec (void) |
| Perform zlib self-test. More... | |
Variables | |
| struct self_test zlib_test | __self_test |
| zlib self-test More... | |
zlib image tests
Definition in file zlib_test.c.
| #define DATA | ( | ... | ) | { __VA_ARGS__ } |
Define inline data.
Definition at line 57 of file zlib_test.c.
Define a zlib test.
Definition at line 60 of file zlib_test.c.
Definition at line 116 of file zlib_test.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| ZLIB | ( | hello_world | , |
| DATA(0x78, 0x9c, 0xf3, 0x48, 0xcd, 0xc9, 0xc9, 0x57, 0x28, 0xcf, 0x2f, 0xca, 0x49, 0x01, 0x00, 0x18, 0xab, 0x04, 0x3d) | , | ||
| DATA(0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x20, 0x77, 0x6f, 0x72, 0x6c, 0x64) | |||
| ) |
"Hello world"
|
static |
Report zlib test result.
| test | zlib test |
| file | Test code file |
| line | Test code line |
Definition at line 86 of file zlib_test.c.
References image::data, image_extract(), image_memory(), image::len, memcmp(), image::name, NULL, okx, strcmp(), test, image::type, and unregister_image().
|
static |
zlib self-test
Definition at line 128 of file zlib_test.c.
1.8.15