android_packages_modules_Vi.../zipfuse/testdata
Jiyong Park d40f7bb904 zipfuse: add a test for deflate
Add a new test case for the deflate algorithm. Use the zip file that is
created using soong_zip as the input, mount the zip file using zipfuse
and then check the files.

Bug: 186377508
Test: cargo test
Test: atest  ZipFuseTest
Change-Id: I62e9e8af535d8d867b4bc720c636d2dc45ed9953
2021-05-24 07:51:32 +09:00
..
dir zipfuse: add a test for deflate 2021-05-24 07:51:32 +09:00
README zipfuse: add a test for deflate 2021-05-24 07:51:32 +09:00
test.zip zipfuse: add a test for deflate 2021-05-24 07:51:32 +09:00

README

The test data is generated as follows:

$ mkdir dir
$ base64 /dev/urandom | head -c 100000 > dir/file1
$ base64 /dev/urandom | head -c 100000 > dir/file2
$ soong_zip -o test.zip -D dir

Running zipinfo shows that the files are compressed using deflate (defN)
$ zipinfo test.zip
Archive:  test.zip
Zip file size: 151594 bytes, number of entries: 2
-rw-------  2.0 unx   100000 bl defN 08-Jan-01 00:00 dir/file1
-rw-------  2.0 unx   100000 bl defN 08-Jan-01 00:00 dir/file2
2 files, 200000 bytes uncompressed, 151352 bytes compressed:  24.3%