Update NEWS for 5.0.1.
[xz/debian.git] / tests / test_block.c
blob0352dce2c7ca325c330a561cf548ca0c4c2093e0
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 /// \file test_block.c
4 /// \brief Tests Block coders
5 //
6 // Author: Lasse Collin
7 //
8 // This file has been put into the public domain.
9 // You can do whatever you want with this file.
11 ///////////////////////////////////////////////////////////////////////////////
13 #include "tests.h"
16 static uint8_t text[] = "Hello world!";
17 static uint8_t buffer[4096];
18 static lzma_options_block block_options;
19 static lzma_stream strm = LZMA_STREAM_INIT;
22 static void
23 test1(void)
29 int
30 main()
32 lzma_init();
34 block_options = (lzma_options_block){
35 .check_type = LZMA_CHECK_NONE,
36 .has_eopm = true,
37 .has_uncompressed_size_in_footer = false,
38 .has_backward_size = false,
39 .handle_padding = false,
40 .total_size = LZMA_VLI_UNKNOWN,
41 .compressed_size = LZMA_VLI_UNKNOWN,
42 .uncompressed_size = LZMA_VLI_UNKNOWN,
43 .header_size = 5,
45 block_options.filters[0].id = LZMA_VLI_UNKNOWN;
46 block_options.filters[0].options = NULL;
49 lzma_end(&strm);
51 return 0;