Skip to content

Commit

Permalink
Added lzham test files.
Browse files Browse the repository at this point in the history
  • Loading branch information
KOLANICH committed Oct 12, 2021
1 parent 2258028 commit ffb3795
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Binary file added _test/compressed/25k_uuids.lzham
Binary file not shown.
Binary file added _test/compressed/90_a.lzham
Binary file not shown.
Binary file added _test/compressed/ascii_text.lzham
Binary file not shown.
4 changes: 4 additions & 0 deletions _test/generate-data
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,8 @@ for I in uncompressed/*.dat; do

echo "$BASE.hadoop.sz"
python3 -c "import sys, snappy; from pathlib import Path; i = Path(sys.argv[1]).open('rb'); o = Path(sys.argv[2]).open('wb'); snappy.hadoop_stream_compress(i, o); i.close(); o.close();" $I compressed/$BASE.hadoop.sz

echo "$BASE.lzham"
# https://github.com/richgel999/lzham_codec/blob/master/lzhamtest/lzhamtest.cpp
lzhamtest -m4 -d29 -u -x -o -e -h0 c $I compressed/$BASE.lzham
done

0 comments on commit ffb3795

Please sign in to comment.