[zlib bench] Add check option modifier --check-binary

Per CL:3591994 if the --check option is given, compress the input file
and output the length and crc32 of the compressed data.

Add check option modifier: --check-binary, which writes the compressed
data to the output as well.

Also normalize the check output compression details: use the base-name
of the input file, instead of its full-path name.

Bug: 798943,1316541
Change-Id: Ia27f09b1ad583bda8e9c82c62a5b24b619f6713a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3616433
Commit-Queue: Noel Gordon <noel@chromium.org>
Auto-Submit: Noel Gordon <noel@chromium.org>
Reviewed-by: Adenilson Cavalcanti <cavalcantii@chromium.org>
Commit-Queue: Adenilson Cavalcanti <cavalcantii@chromium.org>
Cr-Commit-Position: refs/heads/main@{#998055}
NOKEYCHECK=True
GitOrigin-RevId: 5ae6f05e848868027ac1a78f191c4a43919e8c94
1 file changed