Recently, I wrote some test cases which were based on lzma sdk 1900.
These examples were mainly used to test Compression and Decompress API.
Here are what I modified:
1. Add a Testcase.c and three files (including src.jpg / src.mp4 / src.txt) to the C/Util/Lzma diretory.
2. Modify the makefile.gcc to generate an executable tese_cases file and run it.
cd C/Util/Lzma
make check -f makefile.gcc
The Result:
1. Compare the size between the source and compressed files.
2. Check whether the content is consistent between the source file and the extracted file.
The patch
tips:
The three files' name below are fixed in Testcase.c, you need to change the file name manually, if you want to compress the specified file.
Last edit: Bruce Stark 2019-06-11
The three files (including src.jpg / src.mp4 / src.txt)