|
@@ -78,6 +78,12 @@ DEFLATE ( literal, DEFLATE_RAW,
|
78
|
78
|
DATA ( 0x01, 0x04, 0x00, 0xfb, 0xff, 0x69, 0x50, 0x58, 0x45 ),
|
79
|
79
|
DATA ( 0x69, 0x50, 0x58, 0x45 ) );
|
80
|
80
|
|
|
81
|
+/* "iPXE" string, no compression, split into two literals */
|
|
82
|
+DEFLATE ( split_literal, DEFLATE_RAW,
|
|
83
|
+ DATA ( 0x00, 0x02, 0x00, 0xfd, 0xff, 0x69, 0x50, 0x01, 0x02, 0x00,
|
|
84
|
+ 0xfd, 0xff, 0x58, 0x45 ),
|
|
85
|
+ DATA ( 0x69, 0x50, 0x58, 0x45 ) );
|
|
86
|
+
|
81
|
87
|
/* Empty file */
|
82
|
88
|
DEFLATE ( empty, DEFLATE_RAW, DATA ( 0x03, 0x00 ), DATA() );
|
83
|
89
|
|
|
@@ -215,6 +221,7 @@ static void deflate_test_exec ( void ) {
|
215
|
221
|
/* Test as a single pass */
|
216
|
222
|
deflate_ok ( deflate, &empty_literal, NULL );
|
217
|
223
|
deflate_ok ( deflate, &literal, NULL );
|
|
224
|
+ deflate_ok ( deflate, &split_literal, NULL );
|
218
|
225
|
deflate_ok ( deflate, &empty, NULL );
|
219
|
226
|
deflate_ok ( deflate, &hello_world, NULL );
|
220
|
227
|
deflate_ok ( deflate, &hello_hello_world, NULL );
|